CVE-2026-68368
usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()
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.
INFO
Published Date :
Aug. 10, 2026, 1:20 p.m.
Last Modified :
Aug. 10, 2026, 1:20 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products
The following products are affected by CVE-2026-68368
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Verify sufficient buffer space for NTB header.
- Handle zero-length block declarations.
- Ensure block lengths do not exceed buffer.
- Validate datagrams stay within block boundary.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-68368.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-68368 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-68368
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-68368 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-68368 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 10, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2b74b0a04d3e9f9f08ff026e5663dce88ff94e52', 'lessThan': 'e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f', 'versionType': 'git'}, {'status': 'affected', 'version': '2b74b0a04d3e9f9f08ff026e5663dce88ff94e52', 'lessThan': 'fff1059d139ef798bab917990524faaf25854ca8', 'versionType': 'git'}, {'status': 'affected', 'version': '2b74b0a04d3e9f9f08ff026e5663dce88ff94e52', 'lessThan': '40c706a0224bde194667e3378c689b542fec4b44', 'versionType': 'git'}, {'status': 'affected', 'version': '2b74b0a04d3e9f9f08ff026e5663dce88ff94e52', 'lessThan': '41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c', 'versionType': 'git'}, {'status': 'affected', 'version': '2b74b0a04d3e9f9f08ff026e5663dce88ff94e52', 'lessThan': '1febec7e47cdcd01f43fb0211094e3010474666e', 'versionType': 'git'}, {'status': 'affected', 'version': 'f7e0611e207d8908c4f2858e244370529a76dbf7', 'versionType': 'git'}, {'status': 'affected', 'version': 'b88ad6e714284b33a47834f5f2a294c2b37c66aa', 'versionType': 'git'}, {'status': 'affected', 'version': '471b23586387a32857778c511be60ab31c98dcfd', 'versionType': 'git'}, {'status': 'affected', 'version': '4f529c4d1e436230d3af7c09a3239677a14d2b46', 'versionType': 'git'}, {'status': 'affected', 'version': 'ae6a5394d9fbe118bc95cfe376d6a9d91d7547e8', 'versionType': 'git'}, {'status': 'affected', 'version': '5bdf93a2f5459f944b416b188178ca4a92fd206f', 'versionType': 'git'}, {'status': 'affected', 'version': 'ff3ba016263ee93a1c6209bf5ab1599de7ab1512', 'versionType': 'git'}, {'status': 'affected', 'version': 'e7ca00f35d8a17af1ae19d529193ebc21bfda164', 'versionType': 'git'}, {'status': 'affected', 'version': '4.9.235', 'lessThan': '4.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.14.196', 'lessThan': '4.15', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.19.143', 'lessThan': '4.20', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.4.62', 'lessThan': '5.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.8.6', 'lessThan': '5.9', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.14.328', 'lessThan': '4.15', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.19.297', 'lessThan': '4.20', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.4.259', 'lessThan': '5.5', 'versionType': 'semver'}], 'programFiles': ['drivers/usb/gadget/function/f_ncm.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.9'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.9', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.148', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.101', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc5', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/usb/gadget/function/f_ncm.c'], 'defaultStatus': 'affected'}] Added 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. Added Reference https://git.kernel.org/stable/c/1febec7e47cdcd01f43fb0211094e3010474666e Added Reference https://git.kernel.org/stable/c/40c706a0224bde194667e3378c689b542fec4b44 Added Reference https://git.kernel.org/stable/c/41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c Added Reference https://git.kernel.org/stable/c/e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f Added Reference https://git.kernel.org/stable/c/fff1059d139ef798bab917990524faaf25854ca8