Skip to main content

Linux Kernel CVE-2025-40094

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 then unbind ACM gadget function
  3. Exploit
    Trigger a subsequent failing bind
  4. Execution
    Stale notify_req freed, NULL deref in usb_ep_free_request
  5. Impact
    Kernel panic and denial of service

Vulnerability Assessment

Exploitation Conditions

Requires the device to operate in USB peripheral/gadget mode with the CDC-ACM function (f_acm) configured via configfs and a UDC such as dwc3, plus local privileged access to manipulate the gadget bind lifecycle. The specific trigger is a bind/unbind cycle followed by a subsequent bind that FAILS, which causes the stale acm->notify_req to be freed on the unified error label. Limiting factors: it is not remotely reachable (AV:L), needs privileges to control configfs/UDC binding (PR:L/PR:H), needs no user interaction, and only affects builds with USB gadget ACM support enabled - predominantly embedded, IoT, and Android-style devices rather than typical servers or desktops.

Impact

The signals conflict and should be read with care. 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) is the generic template routinely auto-applied to Linux kernel CVEs and overstates impact: the described defect is a NULL pointer dereference that crashes the kernel, i.e. an availability/DoS issue with no realistic confidentiality or integrity impact, and the Denial Of Service tag confirms this. EPSS is low (0.19%, 9th percentile), there is no POC, and it is not in KEV, so this is not an urgent, widely-exploited threat. Exploitation also requires local privileged control of the USB gadget configfs/UDC to force a bind, unbind, then failing bind - an operation normally restricted to root on embedded/Android-style peripheral devices - so real-world risk is low despite the high nominal CVSS. Note explicitly: CVSS claims C:H/I:H, but the description supports only A (crash); treat the 7.8 as inflated and prioritize accordingly.

Exploit ScenarioDerived

On an embedded or Android-class device running in USB gadget mode, a local privileged operator (or compromised root process) scripts a USB gadget configfs sequence: bind an ACM gadget, unbind it, then trigger a bind that fails. The stale acm->notify_req is freed on the error path, dereferencing a NULL pointer and panicking the kernel, denying service to the device. No public exploit is currently available and the operation requires local privileged control of the gadget stack.

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

Kernel NULL pointer dereference in the Linux USB gadget ACM function (f_acm) allows a local privileged operator to crash the kernel after a USB gadget bind/unbind cycle. After unbind, acm->notify_req is left stale; if a subsequent bind fails, the shared error path frees the stale request and dereferences a NULL ep->ops->free_request pointer in usb_ep_free_request(), producing a fatal oops. Tagged as a Denial of Service issue; EPSS is low (0.19%, 9th percentile), no public exploit is identified, and it is not listed in CISA KEV.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the kernel update that includes the f_acm bind-path __free() refactor, tracked by the stable commits at https://git.kernel.org/stable/c/201a66d8e6630762e760e1d78f1d149da1691e7b and its sibling backports (2b1546f7c5fc..., 47b2116e54b4..., c4301e4dd6b3..., c5d116862dd3..., e348d18fb012...); pull the fixed point release for your distribution's stable series once tagged. As a compensating control on systems that do not need USB peripheral/device mode, avoid loading or configuring the ACM gadget function (do not create configfs gadgets binding f_acm) or disable USB gadget/configfs support, which removes the vulnerable code path at the cost of losing USB device-mode serial functionality. Because triggering requires privileged local configfs/UDC access, restrict root and physical/administrative access to the affected devices to reduce exposure until patched.

Affected ProductsAI

The affected product is the Linux kernel, specifically the USB gadget CDC-ACM function driver (f_acm). No exact fixed release version is provided in the input; the six git.kernel.org/stable references (commits 201a66d8, 2b1546f7, 47b2116e, c4301e4d, c5d11686, e348d18f) are backport/fix commits across multiple stable branches, indicating several maintained kernel series are affected on builds that enable CONFIG_USB_CONFIGFS/USB gadget ACM support. No CPE strings were supplied, so precise version ranges cannot be enumerated from this data; the fix landing across multiple stable trees implies both mainline and long-term stable kernels prior to those commits are impacted.

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 CDC-ACM function driver (drivers/usb/gadget/function/f_acm.c), which exposes a USB serial (modem/ACM) interface when a device operates in USB peripheral/gadget mode via configfs and a UDC such as dwc3. During acm_bind(), the driver allocates a notification endpoint request (acm->notify_req); on unbind this pointer is not cleared, so it becomes stale. On a later failed bind, the unified error label calls gs_free_req() → usb_ep_free_request() on the stale/NULL-backed request, dereferencing ep->ops->free_request at offset 0x20. The root cause class is a NULL pointer dereference (CWE-476) arising from stale-pointer lifecycle mismanagement across bind/unbind; the fix refactors the bind error handling to use the kernel's __free() scope-based automatic cleanup 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

Local privileged control of gadget configfs (PR:H, AV:L) and a race-like failing-bind precondition (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.3 MEDIUM
AV:P/AC:L/PR:L/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_acm: Refactor bind path to use __free()

After an bind/unbind cycle, the acm->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 gs_free_req+0x30/0x44 acm_bind+0x1b8/0x1f4 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-40094 is a denial-of-service vulnerability affecting Linux systems using USB gadget ACM functions, allowing local privileged users to trigger kernel crashes through USB gadget bind/unbind cycles. With no identified public exploits and minimal exploitation probability (EPSS 0.2%), the risk is limited but warrants monitoring for available patches.

Business Impact: Medium
Compensating Controls

Disable USB gadget ACM function if not operationally required; restrict USB gadget configuration access to privileged administrative roles only; implement monitoring and logging of USB gadget bind/unbind operations; consider operating affected systems in non-gadget mode where feasible.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel runs everywhere, though vulnerable USB gadget ACM path is embedded/Android-only
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

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