製品・ソフトウェアに関する情報
LinuxのLinux Kernelにおける不特定の脆弱性
Title LinuxのLinux Kernelにおける不特定の脆弱性
Summary

Linuxカーネルにおいて、以下の脆弱性が修正されました。usb:gadget:f_ncmのncm_unwrap_ntb()内での最小block_lenの検証に問題がありました。ホストから提供されるNTBヘッダーのblock_lenはntb_maxと比較してチェックされますが、下限は設けられていませんでした。block_lenがopts-ndp_sizeより小さい場合、ndp_index (block_len - opts-ndp_size)の境界チェックでアンダーフローが発生し、非常に大きな符号なし値となります。そのため、ndp_indexがこの値を超えることはなく、チェックが完全に無効化されます。同様のアンダーフローは、datagramインデックスのblock_len - opts-dpe_sizeに対する検査でも発生しました。これらのチェックが無効化された結果、悪意のあるUSBホストはndp_indexやdatagramのオフセットを実際の転送範囲外に設定可能であり、skb_put_data()が隣接するカーネルメモリをネットワークskbにコピーする事態が生じていました。この問題は、NTBヘッダーに加えて1つのNDPを少なくとも保持できるblock_lenのみを受け入れることで修正されました。これにより、block_len - opts-ndp_sizeおよびblock_len - opts-dpe_sizeの両方が適切に定義されるようになりました。関連する問題として、Commit 8d2b1a1ec9f5("CDC-NCM: avoid overflow in sanity checking")がNCMのホスト側で類似の問題を解決しています。

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

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

Publication Date April 24, 2026, midnight
Registration Date April 30, 2026, 11:04 a.m.
Last Update April 30, 2026, 11:04 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 5.9 以上 6.6.136 未満
Linux Kernel 6.12 以上 6.12.83 未満
Linux Kernel 6.13 以上 6.18.24 未満
Linux Kernel 6.19 以上 6.19.14 未満
Linux Kernel 7.0 以上 7.0.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2026年04月30日]
  掲載
April 30, 2026, 11:04 a.m.

NVD Vulnerability Information
CVE-2026-31617
Summary

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

usb: gadget: f_ncm: validate minimum block_len in ncm_unwrap_ntb()

The block_len read from the host-supplied NTB header is checked against
ntb_max but has no lower bound. When block_len is smaller than
opts->ndp_size, the bounds check of:
ndp_index > (block_len - opts->ndp_size)
will underflow producing a huge unsigned value that ndp_index can never
exceed, defeating the check entirely.

The same underflow occurs in the datagram index checks against block_len
- opts->dpe_size. With those checks neutered, a malicious USB host can
choose ndp_index and datagram offsets that point past the actual
transfer, and the skb_put_data() copies adjacent kernel memory into the
network skb.

Fix this by rejecting block lengths that cannot hold at least the NTB
header plus one NDP. This will make block_len - opts->ndp_size and
block_len - opts->dpe_size both well-defined.

Commit 8d2b1a1ec9f5 ("CDC-NCM: avoid overflow in sanity checking") fixed
a related class of issues on the host side of NCM.

Publication Date April 25, 2026, 12:16 a.m.
Registration Date April 25, 2026, 4:07 a.m.
Last Update April 29, 2026, 2:27 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.9 6.6.136
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.12 6.12.83
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.13 6.18.24
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.19 6.19.14
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 7.0 7.0.1
Related information, measures and tools
Common Vulnerabilities List