Memory disclosure via poisoned shmem swap entry
Published May 17, 2024 · Updated Aug 5, 2026
Out-of-bounds access in Linux kernel cachestat starting in 6.5 allows local users to read kernel memory or interrupt service. get_shadow_from_swap_cache() indexes swapper_spaces[] without first rejecting a poisoned shmem swap entry, and a missing swap-cache shadow is passed to workingset_test_recent(). Reachability requires cachestat on shared memory to race with swapping or invalidation; the second fault can instead report a false recently-evicted count.
Summary
What happened
Out-of-bounds access in Linux kernel cachestat starting in 6.5 allows local users to read kernel memory or interrupt service. get_shadow_from_swap_cache() indexes swapper_spaces[] without first rejecting a poisoned shmem swap entry, and a missing swap-cache shadow is passed to workingset_test_recent(). Reachability requires cachestat on shared memory to race with swapping or invalidation; the second fault can instead report a false recently-evicted count.
The record
- CVE
- CVE-2024-35797
- Published
- May 17, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 17, 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=6.5
- Affected versionversion=cf264e1329fb0307e044f7675849f9f38b44c11a <24a0e73d544439bb9329fbbafac44299e548a677
- Affected versionversion=cf264e1329fb0307e044f7675849f9f38b44c11a <b79f9e1ff27c994a4c452235ba09e672ec698e23
- Affected versionversion=cf264e1329fb0307e044f7675849f9f38b44c11a <d5d39c707a4cf0bcc84680178677b97aa2cb2627
- Affected versionversion=cf264e1329fb0307e044f7675849f9f38b44c11a <d962f6c583458037dc7e529659b2b02b9dd3d94b
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