Skip to main content

Linux Kernel EUVDEUVD-2026-25510

| CVE-2026-31617 MEDIUM
Integer Underflow (CWE-191)
2026-04-24 Linux GHSA-v24g-wpq8-cwqx
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    USB device enumeration
  2. Delivery
    NCM gadget driver loads NTB header
  3. Exploit
    Supply undersized block_len value
  4. Install
    Trigger integer underflow in bounds check
  5. C2
    Calculate out-of-bounds ndp_index
  6. Execute
    Execute skb_put_data with kernel memory address
  7. Impact
    Leak kernel memory to network buffer

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
Exploitation Conditions

The vulnerability requires that the Linux kernel has USB gadget support enabled (CONFIG_USB_GADGET=y) and specifically the NCM gadget driver compiled in or loaded as a module (CONFIG_USB_F_NCM). The attack depends on either physical attachment of a malicious USB device acting as an NCM host, or local ability to configure USB gadgets (typically requires root or membership in a privileged group). The vulnerability does not activate if the NCM gadget is not loaded or if the system does not expose USB gadget functionality. Default kernel configurations on typical servers and desktops do not enable USB_GADGET by default, limiting exposure to specialized deployments such as IoT gateways, edge computing nodes, industrial systems, or developer machines with USB gadget mode enabled.

Impact

CVSS 5.5 (AV:L/AC:L/PR:L/UI:N) indicates local privilege escalation context with moderate severity, but the threat model is nuanced. EPSS at 0.02% (5th percentile) suggests very low likelihood of widespread automated exploitation, primarily because successful exploitation requires either physical USB device attachment or prior local access to configure a USB gadget - both limiting factors in typical production environments. The vulnerability is a memory read (information disclosure) rather than code execution, which reduces impact scope but remains concerning for kernel information leakage that could defeat ASLR. The attack vector (AV:L) and privilege requirement (PR:L) confirm this is not a remote network-exploitable vulnerability; attackers must either attach malicious USB hardware locally or have already gained user-level access to gadget configuration. No CISA KEV status or public POC confirms active wild exploitation at this stage. Real-world risk is constrained by the requirement for USB device attachment or prior administrative access, making this a lower-priority patch for datacenter/server deployments but a legitimate concern for edge computing, IoT gateways, and systems where USB gadget functionality is enabled and untrusted USB devices are physically accessible.

Exploit ScenarioDerived

An attacker with physical access to a system's USB port attaches a malicious USB device that acts as a CDC-NCM compliant host. The device sends specially crafted NTB headers with block_len values smaller than the NDP size (opts->ndp_size), triggering integer underflow in the kernel's ncm_unwrap_ntb() bounds check. The attacker crafts ndp_index values pointing to kernel memory adjacent to the intended network buffer and triggers skb_put_data() to copy kernel memory into the network stack, leaking sensitive kernel pointers or data. Alternatively, an unprivileged local user with access to gadget configuration could configure the NCM gadget with a malicious host device to replicate this attack.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 28, 2026

Integer underflow in the Linux kernel's USB NCM gadget driver allows a malicious USB host to bypass buffer boundary checks and copy adjacent kernel memory into network packet buffers. The vulnerability exists in ncm_unwrap_ntb() where block_len values smaller than the NDP size cause unsigned integer underflow in bounds validation, enabling out-of-bounds memory read and potential information disclosure. Affected versions prior to Linux 6.12.83, 6.18.24, 6.19.14, and 7.0.1 require patching; exploitation requires local USB device attachment or administrative USB gadget configuration.

RemediationAI

Apply the vendor-released patch available in Linux 6.12.83 (and later 6.19.14, 7.0.1 branches). System administrators should update to the latest stable kernel version containing commit 8757a2593631443648218244b9788e193ae0fdc1 or equivalent. For systems unable to update immediately, disable USB gadget functionality if not required, or restrict USB device attachment via physical security or kernel configuration (CONFIG_USB_GADGET and CONFIG_USB_F_NCM can be disabled at compile time). Additionally, on systems where USB gadgets are enabled, apply strict access controls to prevent unprivileged users from loading malicious gadget configurations. Monitor systems with NCM gadgets enabled for unexpected kernel memory disclosure or system crashes related to USB device enumeration. Patches for specific distributions should be obtained from their respective kernel maintainers and applied as soon as available.

Affected VersionsENISA

Linux patch: 6.18.24
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d58ba8f6546232f8414f396c189297dbee03f1a7
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <74908b0318d1df1188457040b8714ff4d4b68126
Linux patch: 7.0.1
Linux patch: 6.19.14
Linux patch: 6.12.83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6762f8a95772265dd0c2ffe7f400493f3115b135
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8757a2593631443648218244b9788e193ae0fdc1

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability occurs in the USB Communications Device Class (CDC) Network Control Model (NCM) gadget implementation within the Linux kernel. The NCM protocol defines a Network Transfer Block (NTB) header structure with configurable sizes for the Network Datagram Pointer (NDP) and datagram packet element (dpe). When the host supplies a block_len value in the NTB header, the kernel validates it against a maximum (ntb_max) but omitted a minimum bound check. The vulnerability is rooted in CWE-190 (Integer Underflow), where block_len - opts->ndp_size and block_len - opts->dpe_size computations underflow when block_len is smaller than the respective option sizes. This produces a huge unsigned integer that any legitimate ndp_index can never exceed, completely neutralizing the out-of-bounds protection. The fix (commit 8f993d30b95dc9557a8a96ceca11abed674c8acb and related commits) enforces a minimum block_len that must accommodate the NTB header plus at least one NDP entry.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 7.0 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Apr 28, 2026 - 17:37 NVD
5.5 (MEDIUM)
Patch released
Apr 28, 2026 - 17:27 nvd
Patch available
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
MEDIUM 5.5

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy