CVE-2026-23447: net: usb: cdc_ncm: add ndpoffset to NDP32 nframes bounds check
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: usb: cdc_ncm: add ndpoffset to NDP32 nframes bounds check
The same bounds-check bug fixed for NDP16 in the previous patch also exists in cdc_ncm_rx_verify_ndp32(). The DPE array size is validated against the total skb length without accounting for ndpoffset, allowing out-of-bounds reads when the NDP32 is placed near the end of the NTB.
Add ndpoffset to the nframes bounds check and use struct_size_t() to express the NDP-plus-DPE-array size more clearly.
Compile-tested only.
The Linux kernel CVE team has assigned CVE-2026-23447 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 0fa81b304a7973a499f844176ca031109487dd31 and fixed in 6.6.130 with commit 125f932a76a97904ef8a555f1dd53e5d0e288c54 Issue introduced in 5.7 with commit 0fa81b304a7973a499f844176ca031109487dd31 and fixed in 6.12.78 with commit af0d1613d6751489dbf9f69aac1123f0b1e566e5 Issue introduced in 5.7 with commit 0fa81b304a7973a499f844176ca031109487dd31 and fixed in 6.18.20 with commit a5bd5a2710310c965ea4153cba4210988a3454e2 Issue introduced in 5.7 with commit 0fa81b304a7973a499f844176ca031109487dd31 and fixed in 6.19.10 with commit de70da1fb1d152e981ecb3157f7ec2b633005c16 Issue introduced in 5.7 with commit 0fa81b304a7973a499f844176ca031109487dd31 and fixed in 7.0-rc5 with commit 77914255155e68a20aa41175edeecf8121dac391 Issue introduced in 4.14.317 with commit 8cf7db86a8984ffa3a3388a8df12bc0aa4c79bd7 Issue introduced in 4.19.285 with commit 4ca8b8855264cf1439cdab3da7049bd1e3c2a9e6 Issue introduced in 5.4.245 with commit a270ca35a9499b58366d696d3290eaa4697a42db
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23447
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/usb/cdc_ncm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/125f932a76a97904ef8a555f1dd53e5d0e288c54 https://git.kernel.org/stable/c/af0d1613d6751489dbf9f69aac1123f0b1e566e5 https://git.kernel.org/stable/c/a5bd5a2710310c965ea4153cba4210988a3454e2 https://git.kernel.org/stable/c/de70da1fb1d152e981ecb3157f7ec2b633005c16 https://git.kernel.org/stable/c/77914255155e68a20aa41175edeecf8121dac391