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)
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.
AI Analysis
Technical Summary
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.
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)
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
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.