CVE-2026-31617
MediumIn the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ncm: validate minimum block_len in ncm_unwrap_ntb() The block_len read from the host-supplied NTB header is checked against ntb_max but has no lower bound. When block_len is smaller than opts->ndp_size, the bounds check of: ndp_index > (block_len - opts->ndp_size) will underflow producing a huge unsigned value that ndp_index can never exceed, defeating the check entirely. The same underflow occurs in the datagram index checks against block_len - opts->dpe_size. With those checks neutered, a malicious USB host can choose ndp_index and datagram offsets that point past the actual transfer, and the skb_put_data() copies adjacent kernel memory into the network skb. Fix this by rejecting block lengths that cannot hold at least the NTB header plus one NDP. This will make block_len - opts->ndp_size and block_len - opts->dpe_size both well-defined. Commit 8d2b1a1ec9f5 ("CDC-NCM: avoid overflow in sanity checking") fixed a related class of issues on the host side of NCM.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected versions
Linux kernel versions
4.9.235,
4.14.196,
4.19.143,
5.4.62,
5.8.6,
5.9
and later are affected. Fixed in
5.10.258,
5.15.209,
6.1.175,
6.6.136,
6.12.83,
6.18.24,
6.19.14,
7.0.1,
7.1-rc1
and their respective stable series.
References
The following references provide additional information about CVE-2026-31617 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/068a7f2749fff6462a0a908ec415b885fe430f50
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0f156bb5334e588034ca68ac2ee92b23f66e56e7
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1425655c2870054c3ab4712e2b6dbdd331597ada
Frequently asked questions
-
What is CVE-2026-31617?
CVE-2026-31617 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 4.9.235 onward and has been patched in 5.10.258, 5.15.209, 6.1.175 and others. CVE-2026-31617 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2026-31617?
CVE-2026-31617 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2026-31617?
Yes — CVE-2026-31617 has been patched. Fixed versions include 5.10.258, 5.15.209, 6.1.175 and others. If you are running Linux kernel 4.9.235 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-31617 actively exploited?
No — CVE-2026-31617 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.