Skip to main content

Linux Kernel CVE-2025-40095

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 access
  2. Delivery
    Perform USB gadget bind/unbind cycle
  3. Exploit
    Leave notify_req stale
  4. Execution
    Trigger a failing rebind
  5. Persist
    Error path frees stale request
  6. Impact
    NULL pointer dereference panics kernel

Vulnerability Assessment

Exploitation Conditions

Requires local access to a Linux system whose kernel is built with the USB gadget RNDIS function (f_rndis / CONFIG_USB_CONFIGFS_RNDIS) and the ability to control gadget bind/unbind (e.g., via configfs and the UDC). The exact trigger is a bind/unbind cycle that leaves rndis->notify_req stale, followed by a subsequent bind that FAILS, which drives the unified error label into freeing the stale request. Limiting factors: no network vector (AV:L) and privileges are needed (PR:L) to manipulate gadget configuration, no default-configuration remote path exists, and only kernels compiled with the RNDIS gadget function are affected - devices without USB gadget/RNDIS are not exploitable.

Impact

The supplied CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H, base 7.8) reflects the generic kernel-local-crash template, but the actual impact per the description and the 'Denial Of Service' tag is a NULL pointer dereference - a crash, not confidentiality or integrity loss - so the C:H/I:H rating overstates real impact; availability (A:H) is the realistic outcome. All signals point to low real-world priority: EPSS is 0.19% (9th percentile), there is no POC and no KEV listing, and exploitation requires local privileges plus the ability to drive USB gadget bind/unbind sequences (configfs/UDC control), which is not a default or remotely reachable capability. Treat as routine kernel patch hygiene rather than an actively exploited threat. Conflict to verify: CVSS claims full CIA impact while the description and tags describe a DoS-only NULL deref - the DoS reading should govern prioritization.

Exploit ScenarioDerived

On an embedded or mobile device that exposes USB gadget configuration, a local user with privileges to bind and unbind USB gadgets performs a bind/unbind cycle to leave notify_req stale, then induces a bind that fails so the shared error path frees the stale request and dereferences it, panicking the kernel and denying service. Given AV:L/AC:L, the sequence is straightforward for anyone with the requisite local gadget-control access, but no public exploit code has been identified.

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's USB gadget RNDIS function driver (f_rndis) lets a local privileged user crash the kernel via a NULL pointer dereference. After a bind/unbind cycle leaves rndis->notify_req stale, a subsequently failing bind reaches a unified error path that calls free_request on the stale request, dereferencing ep->ops->free_request on freed/NULL state. Tagged as Denial of Service; no public exploit is identified, EPSS is low (0.19%, 9th percentile), and it is not on CISA KEV.

RemediationAI

Upstream fix available (stable commits); a specific released tag is not provided in the input, so apply the distribution kernel update that incorporates the referenced stable commits (08228941436047bdcd35a612c1aec0912a29d8cd, 380353c3a92be7d928e6f973bd065c5b79755ac3, 5f65c8ad8c7292ed7e3716343fcd590a51818cc3, a8366263b7e5b663d7fb489d3a9ba1e2600049a6, ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1) via git.kernel.org, or upgrade to your vendor's patched kernel once it lands. If immediate patching is not possible, the practical compensating control is to avoid the vulnerable code path: do not build/load the RNDIS gadget function (disable CONFIG_USB_CONFIGFS_RNDIS or unload f_rndis) on devices that do not require USB RNDIS networking, and restrict access to USB gadget configuration (configfs UDC bind/unbind) to trusted administrators only - the trade-off is loss of USB RNDIS Ethernet-over-USB functionality on affected devices. Because exploitation is local and privileged, tightening who can drive gadget bind/unbind cycles meaningfully reduces exposure.

Affected ProductsAI

The affected product is the Linux kernel, specifically the USB gadget RNDIS function driver (f_rndis). The input provides no explicit affected version range or CPE; the five git.kernel.org/stable commit references (08228941, 380353c3, 5f65c8ad, a8366263, ef81226b) indicate the fix was backported across multiple stable branches, implying several maintained kernel series contained the stale notify_req handling before the fix. Only builds that enable USB gadget support with the RNDIS function (CONFIG_USB_CONFIGFS_RNDIS / f_rndis) and expose bind/unbind control are practically affected. Authoritative commit list: https://git.kernel.org/stable/c/ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1 (and the four sibling stable commits).

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 RNDIS function (drivers/usb/gadget/function/f_rndis.c), which implements Microsoft's Remote NDIS protocol to expose a USB-attached device as an Ethernet interface (commonly on embedded/Android USB gadget devices configured via configfs). During the gadget bind path the driver allocates an interrupt notification endpoint request (notify_req); after an unbind this pointer is not cleared, so it is left dangling. A later bind attempt that fails jumps to a shared cleanup label that unconditionally frees notify_req, dereferencing the endpoint's ep->ops->free_request through a stale pointer. Although the NVD lists no CWE, this is fundamentally a NULL pointer dereference (CWE-476) rooted in improper cleanup of a stale resource pointer (CWE-459/dangling state). The fix refactors the bind error handling to use the kernel's __free() scope-based automatic cleanup so the request is released deterministically and the stale-pointer path is eliminated.

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 5.5 MEDIUM

Local gadget-config control needed (AV:L/PR:L); NULL deref yields only a kernel crash, so C:N/I:N and A:H rather than the input's full CIA impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/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_rndis: Refactor bind path to use __free()

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

The Linux kernel's USB gadget RNDIS function driver (f_rndis) contains a denial-of-service vulnerability allowing privileged local users to crash affected systems. This impacts organizations operating embedded Linux devices, IoT systems, and development infrastructure relying on USB gadget functionality, creating risk of unplanned service interruptions. Immediate inventory and access control review are required to assess organizational exposure.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable the f_rndis kernel module on systems where USB gadget RNDIS functionality is not required; restrict local privileged account access and monitor for unauthorized privilege escalation attempts; isolate affected systems or enforce strict local access controls.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel runs everywhere, though only USB-gadget RNDIS builds are affected
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