Kernel memory corruption via duplicate request processing
Published Jul 12, 2024 · Updated May 11, 2026
Use-after-free in CacheFiles on-demand mode in Linux 6.8 through 6.9.5 allows local users to corrupt kernel memory via a restore race. cachefiles_ondemand_restore re-marks a live request as new, allowing a second reader to retain it after cachefiles_ondemand_copen completes and frees it. The race requires an active on-demand cache and overlapping restore and open-request processing; successful exploitation can crash the kernel or alter protected memory.
Summary
What happened
Use-after-free in CacheFiles on-demand mode in Linux 6.8 through 6.9.5 allows local users to corrupt kernel memory via a restore race. cachefiles_ondemand_restore re-marks a live request as new, allowing a second reader to retain it after cachefiles_ondemand_copen completes and frees it. The race requires an active on-demand cache and overlapping restore and open-request processing; successful exploitation can crash the kernel or alter protected memory.
The record
- CVE
- CVE-2024-40899
- Published
- Jul 12, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 12, 2024CVE 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=6.8
- Affected versionversion=9f5fa40f0924e9de85b16c6d1aea80327ce647d8 <a6de82765e12fb1201ab607f0d3ffe3309b30fc0
- Affected versionversion=a0cc87f86698174aacc083c4652d2606007dd902 <99e9c5bd27ddefa0f9db88625bf5e31c1e833d62
- Affected versionversion=e73fa11a356ca0905c3cc648eaacc6f0f2d2c8b3 <1d902d9a3aa4f2a8bda698294e34be788be012fc
- Affected versionversion=e73fa11a356ca0905c3cc648eaacc6f0f2d2c8b3 <de3e26f9e5b76fc628077578c001c4a51bf54d06
What conditions does exploitation require?
What is affected?
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