VDB

CVE-2026-68368

CVE-2026-68368 PUBLISHED

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

VendorProductVersions
LinuxLinux2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52
LinuxLinux5.9, 0, 5.10.265
linuxlinux_kernel5.9, 5.9, 5.9
LinuxLinux2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, 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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›