Kernel crash via md device lifetime race
Published Oct 7, 2025 · Updated Oct 7, 2025
Use-after-free in the Linux kernel md subsystem 6.5 allows local users to crash the kernel by racing RAID device addition and removal. After export_rdev() frees the last rdev and can release mddev, rdev_attr_store() continues into mddev_unlock(), which dereferences the stale mddev pointer. Triggering requires local access that can repeatedly add and remove an md RAID device through sysfs; winning the low-rate race produces a general protection fault and can interrupt the host.
Summary
What happened
Use-after-free in the Linux kernel md subsystem 6.5 allows local users to crash the kernel by racing RAID device addition and removal. After export_rdev() frees the last rdev and can release mddev, rdev_attr_store() continues into mddev_unlock(), which dereferences the stale mddev pointer. Triggering requires local access that can repeatedly add and remove an md RAID device through sysfs; winning the low-rate race produces a general protection fault and can interrupt the host.
The record
- CVE
- CVE-2023-53665
- Published
- Oct 7, 2025
- Updated
- Oct 7, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 7, 2025CVE publishedPublication date reported by the CVE source.
- Oct 7, 2025Record 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=3ce94ce5d05ae89190a23f6187f64d8f4b2d3782 <7deac114be5fb25a4e865212ed0feaf5f85f2a28
- Affected versionversion=3ce94ce5d05ae89190a23f6187f64d8f4b2d3782 <ad430ad0669d2757377373390d68e1454fc7a344
- Affected versionversion=6.5
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
- mdadm tests/23rdev-lifetime reproducerproof of concept · demonstrated
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