Skip to main content

Linux kernel CVE-2025-40092

HIGH
2025-10-30 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Access
    Gain local privileged access to gadget configfs
  2. Delivery
    Bind NCM gadget then unbind (notify_req left stale)
  3. Exploit
    Trigger a subsequent bind that fails
  4. Execution
    Error path frees stale notify_req
  5. Persist
    NULL deref in usb_ep_free_request
  6. Impact
    Kernel panic / denial of service

Vulnerability Assessment

Exploitation Conditions

Requires the device to run the Linux kernel in USB peripheral/gadget mode with the CDC NCM function (f_ncm) configured via configfs composite gadget. The concrete trigger is a bind/unbind cycle that leaves ncm->notify_req stale, followed by a subsequent bind that FAILS, so the unified error label frees the already-stale request. Limiting factors: the attacker needs local privileged control over the USB gadget configfs to drive these bind/unbind transitions (per PR:L/PR:H, not remote unauthenticated), the vulnerable f_ncm code path must be present and NCM must be in use (non-default on general-purpose servers/desktops), and a bind failure must occur - making this practical mainly on gadget-mode embedded/Android-class hardware rather than typical host deployments.

Impact

The supplied CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8) reflects the Linux kernel project's conservative practice of scoring memory-safety bugs with full CIA impact, but the actual described effect is a NULL pointer dereference causing a kernel crash - an availability (DoS) issue, not confidential data disclosure or code execution. This is corroborated by the 'Denial Of Service' tag. Realistically the confidentiality and integrity impact is overstated: this is a crash, so I assess A:H but C:N/I:N. Exploitation also is not trivially AC:L - it requires a specific bind/unbind/failed-rebind sequence on a gadget-mode device, and the operator must already have privilege to manipulate USB gadget configfs, arguing for PR:H and AC:H. EPSS is low (0.19%, 9th percentile), the CVE is NOT in CISA KEV, and no POC is referenced, so this is a low-real-world-priority hardening fix rather than an urgent threat. The gap between the AV:L/AC:L network-less-but-easy scoring and the config-dependent local reality should be verified against the actual gadget deployment.

Exploit ScenarioDerived

On an embedded or mobile Linux device operating as a USB NCM gadget, a local privileged user (or automated device-mode switching logic) performs a bind, an unbind, then triggers a bind that fails during setup. The stale ncm->notify_req is freed on the shared error path, dereferencing a NULL endpoint pointer and panicking the kernel, causing a denial of service. No public exploit code is referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 30, 2026

Local denial of service in the Linux kernel USB gadget NCM function driver (f_ncm) allows a privileged local user managing a USB peripheral-mode gadget to crash the kernel via a NULL pointer dereference. After a bind/unbind cycle leaves ncm->notify_req stale, a subsequent failing bind reaches a unified error path that frees the stale request, dereferencing ep->ops->free_request on a NULL endpoint. Tagged as Denial of Service; no public exploit identified at time of analysis and EPSS is low (0.19%).

RemediationAI

Upstream fix available across six stable-branch commits; a released patched version is not stated in the input, so update to the latest stable/LTS kernel point release for your branch that includes the f_ncm __free() bind-path refactor (verify by cherry-pick hash, e.g. 185193a4714a or the branch-matching commit from the list above). No tagged marketing version is provided, so confirm inclusion via your distribution's changelog. As a compensating control where patching is deferred, avoid or restrict use of the NCM gadget function: do not configure f_ncm in configfs composite gadgets, or restrict who can create/bind gadget configurations (root/configfs access) since triggering requires privileged manipulation of the gadget lifecycle - trade-off is loss of USB Ethernet-over-NCM functionality on affected devices. Avoid repeated bind/unbind cycles on NCM gadgets until patched.

Affected ProductsAI

The vulnerability affects the Linux kernel USB gadget f_ncm function driver. The input does not enumerate exact vulnerable version ranges or CPE strings, but the six git.kernel.org/stable fix commits indicate the bug was present in multiple maintained stable branches and backported broadly. Affected deployments are specifically those running the kernel in USB peripheral/gadget mode with the CDC NCM function enabled. Fix commits: https://git.kernel.org/stable/c/185193a4714aa9c78437a7a1858fbe5771f0f45c , https://git.kernel.org/stable/c/1cde4516295a030cb8ab4c93114ca3b6c3c6a1e2 , https://git.kernel.org/stable/c/75a5b8d4ddd4eb6b16cb0b475d14ff4ae64295ef , https://git.kernel.org/stable/c/d3fe7143928d8dfa2ec7bac9f906b48bc75b98ee , https://git.kernel.org/stable/c/ed78f4d6079d872432b1ed54f155ef61965d3137 , and https://git.kernel.org/stable/c/f37de8dec6a4c379b4b8486003a1de00ff8cff3b .

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 flaw lives in drivers/usb/gadget/function/f_ncm.c, the CDC NCM (Network Control Model) function used when a Linux device operates in USB peripheral/gadget mode via configfs composite gadgets (commonly on embedded boards, SBCs, and Android-class devices using controllers such as dwc3). During ncm_bind the driver allocates a notification request (notify_req). The reported call trace (usb_ep_free_request -> ncm_bind -> usb_add_function -> configfs_composite_bind -> gadget_bind_driver -> dwc3_gadget_init) shows the crash occurring while probing the gadget driver. The root cause is a use-after-lifecycle/stale-pointer bug: notify_req is not cleared after unbind, so the shared error label in a later failed bind frees an already-invalid request. No CWE was assigned in the input, but this is functionally a NULL pointer dereference (CWE-476) stemming from improper state cleanup; the fix refactors the bind error handling to use the kernel __free() scope-based automatic cleanup mechanism so partially initialized resources are released correctly.

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

Sources disagree (Low–High)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 4.1 MEDIUM

Requires local privileged control of gadget configfs (PR:H) and a specific bind/unbind/failed-rebind race (AC:H); impact is a kernel crash only, so A:H with C:N/I:N.

3.1 AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 4.4 MEDIUM
AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.5 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_ncm: Refactor bind path to use __free()

After an bind/unbind cycle, the ncm->notify_req is left stale. If a subsequent bind fails, the unified error label attempts to free this stale request, leading to a NULL pointer dereference when accessing ep->ops->free_request.

Refactor the error handling in the bind path to use the __free() automatic cleanup mechanism.

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020 Call trace: usb_ep_free_request+0x2c/0xec ncm_bind+0x39c/0x3dc usb_add_function+0xcc/0x1f0 configfs_composite_bind+0x468/0x588 gadget_bind_driver+0x104/0x270 really_probe+0x190/0x374 __driver_probe_device+0xa0/0x12c driver_probe_device+0x3c/0x218 __device_attach_driver+0x14c/0x188 bus_for_each_drv+0x10c/0x168 __device_attach+0xfc/0x198 device_initial_probe+0x14/0x24 bus_probe_device+0x94/0x11c device_add+0x268/0x48c usb_add_gadget+0x198/0x28c dwc3_gadget_init+0x700/0x858 __dwc3_set_mode+0x3cc/0x664 process_scheduled_works+0x1d8/0x488 worker_thread+0x244/0x334 kthread+0x114/0x1bc ret_from_fork+0x10/0x20

Executive ViewAI

Why It Matters

CVE-2025-40092 is a local denial-of-service vulnerability in the Linux kernel's USB gadget NCM driver that allows privileged local users to crash affected systems. Organizations deploying USB peripheral-mode gadget functionality face service disruption risk, though exploitation requires local administrative access and zero public exploits are currently documented. With an EPSS of 0.2%, practical threat remains low despite the HIGH severity rating.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict local access to USB gadget configuration to privileged system administrators only; (2) disable USB peripheral-mode gadget support entirely if not operationally required; (3) monitor kernel logs and system metrics for unexpected device bind/unbind events; (4) enforce principle of least privilege limiting local user capabilities; (5) maintain updated kernel source monitoring subscriptions to expedite patch deployment when available.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
Linux kernel ubiquitous, but NCM gadget mode limited to peripheral-mode embedded/mobile devices
Data Quality
4 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected

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