Skip to main content

Linux Kernel CVE-2025-40093

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

Attack ChainAIDerived

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

  1. Access
    Obtain local privileged gadget/configfs access
  2. Delivery
    Bind then unbind ECM gadget function
  3. Exploit
    Trigger a failing subsequent bind
  4. Execution
    Kernel frees stale notify_req via NULL endpoint
  5. Impact
    NULL pointer dereference crashes kernel (DoS)

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to a Linux system running in USB gadget mode with the CDC ECM function (f_ecm) configured, and the ability to control gadget bind/unbind through configfs/UDC - a privileged operation. The specific trigger is a bind/unbind cycle followed by a subsequent bind that fails, at which point the stale ecm->notify_req is freed and the NULL endpoint pointer is dereferenced. Limiting factors: it only affects devices actually using the ECM gadget function (not general servers/desktops), it needs privileged configfs access, and the outcome is a crash rather than code execution - there is no network vector (AV:L) and no user interaction.

Impact

Signals conflict and should be weighed carefully. The supplied CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) scores full confidentiality, integrity and availability impact, but the code path is a NULL pointer dereference and the intelligence tag is explicitly 'Denial Of Service' - the realistic outcome is a kernel oops/crash, so C:H/I:H is almost certainly Linux CNA over-scoring and the true impact is availability-only. EPSS is very low (0.19%, 9th percentile), there is no CISA KEV listing, and no POC is referenced - consistent with a low-urgency, hard-to-weaponize bug. Exploitation is local only and requires the ability to drive USB gadget bind/unbind (configfs/UDC control), which is a privileged operation, further limiting real-world risk. Net: a genuine bug worth patching in embedded/gadget-capable systems, but not an emergency; treat as a routine stable-kernel maintenance update rather than a high-priority threat.

Exploit ScenarioDerived

A local operator with access to the USB gadget configfs interface repeatedly binds and unbinds an ECM gadget configuration, then triggers a bind that fails (for example under resource pressure), causing the kernel to free the stale notify_req and dereference a NULL endpoint pointer. The result is a kernel oops that crashes or hangs the device, denying service. No public exploit is referenced and the local, privileged prerequisites make weaponization unlikely.

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

Denial of service in the Linux kernel USB gadget CDC ECM function driver (f_ecm) allows a local privileged operator to crash the kernel via a NULL pointer dereference. After a USB gadget bind/unbind cycle, ecm->notify_req is left stale; if a later bind attempt fails, the shared error path tries to free the stale request and dereferences ep->ops->free_request through a NULL endpoint pointer. No public exploit identified at time of analysis and the practical impact is a kernel crash rather than the full confidentiality/integrity loss implied by the assigned 7.8 CVSS score.

RemediationAI

Upstream fix available (commit/backport); a specific tagged release version was not provided in the input, so update to the latest stable kernel in your series that includes the f_ecm __free() refactor, referencing the mainline and stable commits at git.kernel.org/stable/c/070f341d86cf2c098d63e484a86c7c1d2696a868, /15b9faf53ba8719700596e7ef78879ce200e8c2e, /42988380ac67c76bb9dff8f77d7ef3eefd50b7b5, /4630c68bade82f087eaaab22e9a361da2f18d139 and /d3745aaef19198d0c81637a7dd50ef53c4f879b7. Where immediate patching is not possible, compensating controls include disabling or not loading the ECM gadget function (avoid CONFIG_USB_ECM / do not configure the ecm function via configfs), restricting access to the USB gadget configfs interface and UDC controls to trusted root-only tooling, and preventing untrusted local users from repeatedly binding/unbinding gadget configurations; the trade-off is loss of USB Ethernet gadget functionality on affected devices. Rebuild/reboot into the fixed kernel to fully close the issue.

Affected ProductsAI

The Linux kernel is affected, specifically builds compiling the USB gadget CDC ECM function driver (f_ecm / CONFIG_USB_ECM) in USB device/gadget mode - typically embedded, Android, and OTG-capable systems. The input provides no explicit fixed version numbers or CPE strings; affected version ranges must be derived from the five referenced stable-tree commits (e.g. git.kernel.org/stable/c/070f341d86cf2c098d63e484a86c7c1d2696a868 and 15b9faf53ba8719700596e7ef78879ce200e8c2e), which indicate the fix was backported across multiple stable branches. Consult the specific stable series changelogs to map exact vulnerable-to-fixed versions for your kernel.

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 the USB gadget subsystem's f_ecm.c, which implements the CDC Ethernet Control Model (ECM) function used to expose a device as a USB network adapter. During ecm_bind() a notify_req interrupt request is allocated against a control endpoint; on unbind this pointer is not cleared, so it becomes stale. The consolidated error label in the bind path then calls usb_ep_free_request() on that stale request during a subsequent failed bind, and because the associated endpoint is no longer valid the call dereferences ep->ops->free_request off a NULL pointer. The root cause class is a NULL pointer dereference / stale-pointer misuse (CWE-476, not populated in the input); the fix refactors bind error handling to use the scope-based __free() automatic cleanup macro so the request is never double-managed.

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

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.4 MEDIUM

Local-only NULL-deref crash requiring privileged configfs/gadget control (PR:H), no confidentiality or integrity impact (C:N/I:N), availability-only DoS (A:H).

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

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

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_ecm: Refactor bind path to use __free()

After an bind/unbind cycle, the ecm->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.

Executive ViewAI

Why It Matters

CVE-2025-40093 affects the Linux kernel's USB gadget CDC ECM driver, enabling denial-of-service via kernel crashes when local privileged users perform gadget bind/unbind operations; no public exploit identified at time of analysis. Systems using USB gadget CDC ECM functionality face an availability risk, particularly in development or device emulation environments. No vendor-released patch identified at time of analysis; organizations should prioritize implementing compensating controls immediately.

Business Impact: High
Compensating Controls

Disable the CDC ECM USB gadget driver on systems where it is not operationally required. Restrict local privileged access via sudo/RBAC controls to prevent unprivileged users from triggering gadget bind/unbind operations. Deploy kernel crash monitoring and alerting to detect and respond to unexpected system failures. Isolate affected systems using containerization or hypervisor segmentation if gadget functionality is essential.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
Linux kernel is ubiquitous but the ECM gadget driver is limited to embedded/OTG 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 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected

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