CVE-2026-68368usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()
Updated under an hour ago ()
Does this affect you?
It affects Linux. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb() When unpacking host-supplied NTBs, ncm_unwrap_ntb() checks datagram length against frame_max but does not verify that the datagram fits within the declared block length. Additionally, when decoding multiple NTBs from a single socket buffer, subsequent block lengths are not checked against the actual remaining buffer data. With these checks missing, a malicious USB host can specify datagram offsets and lengths that point beyond the block, or supply secondary NTB headers declaring lengths larger than the buffer. skb_put_data() then copies adjacent kernel memory from skb_shared_info into the network skb. Fix this by verifying that sufficient buffer space remains for the NTB header before parsing, handling zero-length block declarations, ensuring that block lengths never exceed the remaining buffer space, and verifying that each datagram payload stays strictly within the block boundary.
- CVSS
- Not yet scored
- Weakness (CWE)
- Not given
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Linux
- NVD analysis
- Received
- Record last updated
- Aug 19, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Linux Linux linux:linux (from the name) | from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before 35d15bbaec0557330e774ec31412ef508de6e0e0; from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before 6b2be489eaa6293e60549005d91f15ceb150510f; from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before f87ed889f0f7417b8938c98d8833f559b755373c; from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f; from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before fff1059d139ef798bab917990524faaf25854ca8; from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before 40c706a0224bde194667e3378c689b542fec4b44; from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before 41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c; 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 builds before 1febec7e47cdcd01f43fb0211094e3010474666e; and 16 more ranges | CNA record |
References
- https://git.kernel.org/stable/c/35d15bbaec0557330e774ec31412ef508de6e0e0
- https://git.kernel.org/stable/c/6b2be489eaa6293e60549005d91f15ceb150510f
- https://git.kernel.org/stable/c/f87ed889f0f7417b8938c98d8833f559b755373c
- https://git.kernel.org/stable/c/e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f
- https://git.kernel.org/stable/c/fff1059d139ef798bab917990524faaf25854ca8
- https://git.kernel.org/stable/c/40c706a0224bde194667e3378c689b542fec4b44
- https://git.kernel.org/stable/c/41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c
- https://git.kernel.org/stable/c/1febec7e47cdcd01f43fb0211094e3010474666e
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.