CVE-2026-68368
usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()
Reported by linux · Published August 10, 2026
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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 |
| Linux | Linux | 5.9, 0, 5.10.265 |
| linux | linux_kernel | 5.9, 5.9, 5.9 |
| Linux | Linux | 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 |
Timeline
- Aug 10, 2026 Coalition ESS Score
- Aug 10, 2026 CVE Published
- Aug 16, 2026 Security Advisory
- Aug 24, 2026 EPSS Score (17 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-68368
vulnetix vdb fixes CVE-2026-68368
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68368/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart