CVE-2026-31617 — usb: gadget: f_ncm: validate minimum block_len in ncm_unwrap_ntb()
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.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- EPSS 0.2% (30-day exploitation probability)+1
- Technical severity (medium)+3
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Linux Linux, Linux Linux Kernel).
- Apply the fixed version or the patch documented under Remediation.
- Search available logs for exploit probes matching the vulnerability class (memory corruption), errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Linux | Linux |
≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 74908b0318d1df1188457040b8714ff4d4b68126version 5.9≥ 5.8.6 and < 5.9≥ 5.4.62 and < 5.5≥ 4.19.143 and < 4.20≥ 4.14.196 and < 4.15≥ 4.9.235 and < 4.10version ae6a5394d9fbe118bc95cfe376d6a9d91d7547e8 and 12 moreversion 4f529c4d1e436230d3af7c09a3239677a14d2b46version 471b23586387a32857778c511be60ab31c98dcfdversion b88ad6e714284b33a47834f5f2a294c2b37c66aaversion f7e0611e207d8908c4f2858e244370529a76dbf7≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 8f993d30b95dc9557a8a96ceca11abed674c8acb≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < d58ba8f6546232f8414f396c189297dbee03f1a7≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 6762f8a95772265dd0c2ffe7f400493f3115b135≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 8757a2593631443648218244b9788e193ae0fdc1≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 0f156bb5334e588034ca68ac2ee92b23f66e56e7≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 1425655c2870054c3ab4712e2b6dbdd331597ada≥ 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 and < 068a7f2749fff6462a0a908ec415b885fe430f50 |
Vulnerable | CVE Program (cve.org) e CISA ADP |
| Linux | Linux Kernel | ≥ 5.9 and < 6.6.136≥ 7.0 and < 7.0.1≥ 6.19 and < 6.19.14≥ 6.13 and < 6.18.24≥ 6.12 and < 6.12.83 | Vulnerable | NIST National Vulnerability Database |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 5.5 | CVSS 3.1 | Medium | 1.8 | 3.6 | nvd@nist.gov via NIST National Vulnerability Database |
| 5.5 | CVSS 3.1 | Medium | 1.8 | 3.6 | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c via NIST National Vulnerability Database |
| 5.5 | CVSS 3.1 | Medium | — | — | GitHub, Inc. via GitHub Security Advisories |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (score shown at the top: nvd@nist.gov) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
EPSS over time FIRST
Oct 13, 2026 → Oct 15, 2026 · 3 reading(s) · max 0.18%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Local/physical vector: focus on endpoint telemetry (EDR) from affected hosts.
- Correlate service crashes/restarts with inbound traffic; repeated crashes may indicate attempts.
Timeline
What happened to this CVE, newest first.
- 2026
- Affected products added · linux/linux
- Record published
- Fix documented
- CVSS changed · 5.5
- Source status changed · → Modified
- Record created in this database
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 2× References added · Oct 14, 2026 – Oct 14, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
15 on the record
- git.kernel.org/stable/c/74908b0318d1df1188457040b8714ff4d4b68126
- git.kernel.org/stable/c/8f993d30b95dc9557a8a96ceca11abed674c8acb
- git.kernel.org/stable/c/0f156bb5334e588034ca68ac2ee92b23f66e56e7
- git.kernel.org/stable/c/8757a2593631443648218244b9788e193ae0fdc1
- git.kernel.org/stable/c/6762f8a95772265dd0c2ffe7f400493f3115b135
- git.kernel.org/stable/c/d58ba8f6546232f8414f396c189297dbee03f1a7
- git.kernel.org/stable/c/1425655c2870054c3ab4712e2b6dbdd331597ada
- bugzilla.redhat.com/show_bug.cgi
- access.redhat.com/security/cve/CVE-2026-31617
- git.kernel.org/stable/c/8b3b7bd3c02f98634baaf36c7fc7ac915f6517ca
- github.com/advisories/GHSA-v24g-wpq8-cwqx
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31617.json
- nvd.nist.gov/vuln/detail/CVE-2026-31617
- cert-portal.siemens.com/productcert/html/ssa-784472.html
- git.kernel.org/stable/c/068a7f2749fff6462a0a908ec415b885fe430f50
Elsewhere on this site
Related CVEs (same products)
- Critical CVE-2026-99999 ipv4: validate checksum_start before completing checksum 15h
- Unknown CVE-2026-98432 ipv4: free inet_opt and ireq_opt after an RCU grace period 15h
- Unknown CVE-2026-98431 RDMA/uverbs: Fix mmap_lock/disassociation_lock circular dependency 1d
- Unknown CVE-2026-98430 RDMA/efa: Keep admin queues alive while IRQ is registered 1d
- Unknown CVE-2026-98429 RDMA/efa: Keep EQ resources alive while IRQ is registered 1d
- Unknown CVE-2026-98428 ALSA: usb: 6fire: Avoid embedded URBs 1d
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No CISA SSVC assessment.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2026-31617 is "usb: gadget: f_ncm: validate minimum block_len in ncm_unwrap_ntb()", rated Medium. It affects Linux (Linux); versions are in the scope table. It is not in CISA KEV, which does not rule out exploitation. CVSS 5.5 describes technical severity. EPSS 0.18% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.