Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-31617

MEDIUM 5.5EPSS 5%

usb: gadget: f_ncm: validate minimum block_len in ncm_unwrap_ntb()

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 068a7f2749fff6462a0a908ec415b885fe430f50; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 1425655c2870054c3ab4712e2b6dbdd331597ada; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 0f156bb5334e588034ca68ac2ee92b23f66e56e7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8757a2593631443648218244b9788e193ae0fdc1; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 6762f8a95772265dd0c2ffe7f400493f3115b135; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < d58ba8f6546232f8414f396c189297dbee03f1a7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 74908b0318d1df1188457040b8714ff4d4b68126; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8f993d30b95dc9557a8a96ceca11abed674c8acb; f7e0611e207d8908c4f2858e244370529a76dbf7; …
  • Anyone running Linux 5.9

Vulnerability facts

Affected
Linux >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 068a7f2749fff6462a0a908ec415b885fe430f50; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 1425655c2870054c3ab4712e2b6dbdd331597ada; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 0f156bb5334e588034ca68ac2ee92b23f66e56e7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8757a2593631443648218244b9788e193ae0fdc1; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 6762f8a95772265dd0c2ffe7f400493f3115b135; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < d58ba8f6546232f8414f396c189297dbee03f1a7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 74908b0318d1df1188457040b8714ff4d4b68126; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8f993d30b95dc9557a8a96ceca11abed674c8acb; f7e0611e207d8908c4f2858e244370529a76dbf7; …; Linux 5.9
Fixed in
Linux 068a7f2749fff6462a0a908ec415b885fe430f50, Linux 1425655c2870054c3ab4712e2b6dbdd331597ada, Linux 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca, Linux 0f156bb5334e588034ca68ac2ee92b23f66e56e7, Linux 8757a2593631443648218244b9788e193ae0fdc1, Linux 6762f8a95772265dd0c2ffe7f400493f3115b135, Linux 74908b0318d1df1188457040b8714ff4d4b68126, Linux 8f993d30b95dc9557a8a96ceca11abed674c8acb
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.18% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-191
Published
Modified

Description

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

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 068a7f2749fff6462a0a908ec415b885fe430f50; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 1425655c2870054c3ab4712e2b6dbdd331597ada; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 0f156bb5334e588034ca68ac2ee92b23f66e56e7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8757a2593631443648218244b9788e193ae0fdc1; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 6762f8a95772265dd0c2ffe7f400493f3115b135; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < d58ba8f6546232f8414f396c189297dbee03f1a7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 74908b0318d1df1188457040b8714ff4d4b68126; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8f993d30b95dc9557a8a96ceca11abed674c8acb; f7e0611e207d8908c4f2858e244370529a76dbf7; …—cvelist
Linux5.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-31617. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31617.md
Affected: Linux >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 068a7f2749fff6462a0a908ec415b885fe430f50; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 1425655c2870054c3ab4712e2b6dbdd331597ada; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca; >= 2b74b0a04d3e9f9f08ff026…
Fixed in: Linux 068a7f2749fff6462a0a908ec415b885fe430f50, Linux 1425655c2870054c3ab4712e2b6dbdd331597ada, Linux 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca, Linux 0f156bb5334e588034ca68ac2ee92b23f66e56e7, Linux 8757a2593631443648218244b9788e193ae0fdc1, Linux 6762f8a95772265dd0c2ffe7f400493f3115b135, Linux 74908…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-31617 being exploited?

There is no confirmed exploitation: CVE-2026-31617 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-31617?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-31617?

Linux >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 068a7f2749fff6462a0a908ec415b885fe430f50; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 1425655c2870054c3ab4712e2b6dbdd331597ada; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 0f156bb5334e588034ca68ac2ee92b23f66e56e7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8757a2593631443648218244b9788e193ae0fdc1; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 6762f8a95772265dd0c2ffe7f400493f3115b135; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < d58ba8f6546232f8414f396c189297dbee03f1a7; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 74908b0318d1df1188457040b8714ff4d4b68126; >= 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52, < 8f993d30b95dc9557a8a96ceca11abed674c8acb; f7e0611e207d8908c4f2858e244370529a76dbf7; …; Linux 5.9.

Is there a fix for CVE-2026-31617?

Yes. Fixed in Linux 068a7f2749fff6462a0a908ec415b885fe430f50, Linux 1425655c2870054c3ab4712e2b6dbdd331597ada, Linux 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca, Linux 0f156bb5334e588034ca68ac2ee92b23f66e56e7, Linux 8757a2593631443648218244b9788e193ae0fdc1, Linux 6762f8a95772265dd0c2ffe7f400493f3115b135, Linux 74908b0318d1df1188457040b8714ff4d4b68126, Linux 8f993d30b95dc9557a8a96ceca11abed674c8acb. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2026-31617?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors