Skip to main content
EPSS 0.1%top 96%

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_rndis: Refactor bind path to use __free() After an bind/unbind… (CVE-2025-40095)

0
High
Published: 10/30/2025 (10/30/2025, 12:31:10 UTC)
Source: GCVE Database

Description

A high-severity vulnerability in the Linux kernel's USB gadget function f_rndis has been resolved. The issue involves stale memory references after a bind/unbind cycle, which can lead to a NULL pointer dereference during error handling. This occurs when the system attempts to free a stale request, causing potential kernel crashes or denial of service. The fix refactors the bind path to use an automatic cleanup mechanism to prevent this stale reference.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:24:33 UTC

Technical Analysis

CVE-2025-40095 is a vulnerability in the Linux kernel's usb gadget f_rndis driver where after a bind/unbind cycle, the notify_req pointer remains stale. If a subsequent bind operation fails, the error handling code attempts to free this stale request, leading to a NULL pointer dereference when accessing ep->ops->free_request. This can cause kernel crashes or denial of service. The issue is addressed by refactoring the bind path to use the __free() automatic cleanup mechanism, ensuring proper release of resources and preventing stale pointer dereferences.

Potential Impact

This vulnerability can cause a NULL pointer dereference in the Linux kernel, leading to system crashes or denial of service conditions. It affects kernel stability and reliability when using the f_rndis USB gadget driver during bind/unbind operations.

Mitigation Recommendations

A fix has been implemented in the Linux kernel that refactors the bind path to use the __free() automatic cleanup mechanism, preventing stale pointer dereferences. Users should apply the official kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor or Linux kernel advisory for the current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-6m5m-pcmh-qg5r
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40095"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a6b72d69c2644c7f847aeeb

Added to database: 07/30/2026, 15:50:46 UTC

Last enriched: 07/30/2026, 16:24:33 UTC

Last updated: 09/10/2026, 19:26:54 UTC

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses