# CVE-2026-68368: usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 7% of CVEs (2026-11-30)
- Published: 2026-08-10T12:03:45.579Z
- Modified: 2026-11-06T17:19:31.043Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: 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; from 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 before 1febec7e47cdcd01f43fb0211094e3010474666e; f7e0611e207d8908c4f2858e244370529a76dbf7; b88ad6e714284b33a47834f5f2a294c2b37c66aa; 471b23586387a32857778c511be60ab31c98dcfd; 4f529c4d1e436230d3af7c09a3239677a14d2b46; and 13 more (not affected: before 5.9; from 5.10.265 up to 5.10.*; from 5.15.216 up to 5.15.*; from 6.1.183 up to 6.1.*; from 6.6.148 up to 6.6.*; from 6.12.101 up to 6.12.*; from 6.18.42 up to 6.18.*; from 7.1.6 up to 7.1.*; from 7.2 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-68368](https://www.cve.org/CVERecord?id=CVE-2026-68368), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-68368](https://nvd.nist.gov/vuln/detail/CVE-2026-68368), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-68368 · Whole record: https://cve.day/CVE-2026-68368.json · Rebuilt by cve.day 2026-11-25T22:59:32.102Z
