製品・ソフトウェアに関する情報
LinuxのLinux KernelにおけるNULL ポインタデリファレンスに関する脆弱性
Title LinuxのLinux KernelにおけるNULL ポインタデリファレンスに関する脆弱性
Summary

Linuxカーネルにおいて、以下の脆弱性が修正されました。ublk_ctrl_set_size()関数に存在したNULLポインタ参照の問題です。ublk_ctrl_set_size()は、ub-ub_diskがNULLかどうかを確認せずにset_capacity_and_notify()経由で無条件に参照していました。ub-ub_diskは、UBLK_CMD_START_DEVが完了する前(ublk_ctrl_start_dev()内でのみ割り当てられます)およびUBLK_CMD_STOP_DEVが実行された後(ublk_detach_disk()がNULLに設定します)にはNULLになります。UBLK_CMD_UPDATE_SIZEハンドラは状態検証を行わないため、ユーザーは追加されたがまだ開始されていないデバイス、もしくは停止されたデバイスにUPDATE_SIZEを送信することでNULLポインタ参照を引き起こす可能性がありました。対策として、参照前にub-mutexの下でub-ub_diskをチェックし、ディスクが利用できない場合は-ENODEVを返すように修正しました。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date May 8, 2026, midnight
Registration Date May 18, 2026, 11:26 a.m.
Last Update May 18, 2026, 11:26 a.m.
CVSS3.0 : 警告
Score 5.5
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected System
Linux
Linux Kernel 6.16 以上 6.18.20 未満
Linux Kernel 6.19 以上 6.19.9 未満
Linux Kernel 7.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2026年05月18日]
  掲載
May 18, 2026, 11:26 a.m.

NVD Vulnerability Information
CVE-2026-43364
Summary

In the Linux kernel, the following vulnerability has been resolved:

ublk: fix NULL pointer dereference in ublk_ctrl_set_size()

ublk_ctrl_set_size() unconditionally dereferences ub->ub_disk via
set_capacity_and_notify() without checking if it is NULL.

ub->ub_disk is NULL before UBLK_CMD_START_DEV completes (it is only
assigned in ublk_ctrl_start_dev()) and after UBLK_CMD_STOP_DEV runs
(ublk_detach_disk() sets it to NULL). Since the UBLK_CMD_UPDATE_SIZE
handler performs no state validation, a user can trigger a NULL pointer
dereference by sending UPDATE_SIZE to a device that has been added but
not yet started, or one that has been stopped.

Fix this by checking ub->ub_disk under ub->mutex before dereferencing
it, and returning -ENODEV if the disk is not available.

Publication Date May 9, 2026, 12:16 a.m.
Registration Date May 9, 2026, 4:14 a.m.
Last Update May 12, 2026, 11:10 p.m.
Related information, measures and tools
Common Vulnerabilities List