Local privilege escalation via stale RNDIS request free
Published Oct 30, 2025 · Updated Aug 5, 2026
Memory corruption in the Linux kernel RNDIS gadget function allows local users to escalate privileges through a failed rebind. A bind/unbind cycle leaves rndis->notify_req stale, and the failed rebind error path frees that request again before dereferencing its endpoint operations. Exploitation requires local write access to the USB gadget configfs UDC control; the same corruption can disclose or write kernel memory or panic the system.
Summary
What happened
Memory corruption in the Linux kernel RNDIS gadget function allows local users to escalate privileges through a failed rebind. A bind/unbind cycle leaves rndis->notify_req stale, and the failed rebind error path frees that request again before dereferencing its endpoint operations. Exploitation requires local write access to the USB gadget configfs UDC control; the same corruption can disclose or write kernel memory or panic the system.
The record
- CVE
- CVE-2025-40095
- Published
- Oct 30, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 30, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.6.27
- Affected versionversion=45fe3b8e5342cd1ce307099459c74011d8e01986 <08228941436047bdcd35a612c1aec0912a29d8cd
- Affected versionversion=45fe3b8e5342cd1ce307099459c74011d8e01986 <380353c3a92be7d928e6f973bd065c5b79755ac3
- Affected versionversion=45fe3b8e5342cd1ce307099459c74011d8e01986 <5f65c8ad8c7292ed7e3716343fcd590a51818cc3
- Affected versionversion=45fe3b8e5342cd1ce307099459c74011d8e01986 <a8366263b7e5b663d7fb489d3a9ba1e2600049a6
- Affected versionversion=45fe3b8e5342cd1ce307099459c74011d8e01986 <ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo