Kernel memory corruption via mc_dev double-free
Published Jul 10, 2025 · Updated May 11, 2026
Double-free in the Linux kernel fsl-mc bus driver allows local users to corrupt kernel memory during DPRC device addition. On the device-addition error path, mc_dev aliases a field of a newly allocated mc_bus, but cleanup frees both mc_bus and the aliased mc_dev. Reaching this path requires root or CAP_SYS_ADMIN access to rescan fsl-mc plus an error that the attacker cannot directly invoke; the corruption can crash the host.
Summary
What happened
Double-free in the Linux kernel fsl-mc bus driver allows local users to corrupt kernel memory during DPRC device addition. On the device-addition error path, mc_dev aliases a field of a newly allocated mc_bus, but cleanup frees both mc_bus and the aliased mc_dev. Reaching this path requires root or CAP_SYS_ADMIN access to rescan fsl-mc plus an error that the attacker cannot directly invoke; the corruption can crash the host.
The record
- CVE
- CVE-2025-38313
- Published
- Jul 10, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-415, T1499
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Jul 10, 2025CVE publishedPublication date reported by the CVE source.
- May 11, 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=4.13
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <12e4431e5078847791936820bd39df9e1ee26d2e
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <1d5baab39e5b09a76870b345cdee7933871b881f
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <3135e03a92f6b5259d0a7f25f728e9e7866ede3f
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <4b23c46eb2d88924b93aca647bde9a4b9cf62cf9
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <7002b954c4a8b9965ba0f139812ee4a6f71beac8
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <873d47114fd5e5a1cad2018843671537cc71ac84
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <b2057374f326303c86d8423415ab58656eebc695
- Affected versionversion=a042fbed02904493ae6df26ec836045f5a7d3ce2 <d694bf8a9acdbd061596f3e7549bc8cb70750a60
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.
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