Kernel memory corruption via CacheFiles withdrawal race
Published Jul 29, 2024 · Updated Aug 5, 2026
Use-after-free in Linux allows local users to corrupt kernel memory during concurrent CacheFiles volume lookup and cache withdrawal. cachefiles_withdraw_cache() frees a CacheFiles volume before an in-flight cookie lookup increments the cache object count, so cachefiles_withdraw_cookie() later dereferences the freed volume. Local access and an active CacheFiles backend are required to win the withdrawal race; the resulting kernel fault exposes or alters kernel data or crashes the system.
Summary
What happened
Use-after-free in Linux allows local users to corrupt kernel memory during concurrent CacheFiles volume lookup and cache withdrawal. cachefiles_withdraw_cache() frees a CacheFiles volume before an in-flight cookie lookup increments the cache object count, so cachefiles_withdraw_cookie() later dereferences the freed volume. Local access and an active CacheFiles backend are required to win the withdrawal race; the resulting kernel fault exposes or alters kernel data or crashes the system.
The record
- CVE
- CVE-2024-41057
- Published
- Jul 29, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 29, 2024CVE 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=5.17
- Affected versionversion=fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 <5d8f805789072ea7fd39504694b7bd17e5f751c4
- Affected versionversion=fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 <8de253177112a47c9af157d23ae934779188b4e1
- Affected versionversion=fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 <9e67589a4a7b7e5660b524d1d5fe61242bcbcc11
- Affected versionversion=fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 <ef81340401e8a371d6b17f69e76d861920972cfe
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