Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-35797

published high CVSS 3.1 · 7.1

mm: cachestat: fix two shmem bugs

Published
17 May 2024, 13:23:08 UTC
Updated
05 Aug 2026, 11:30:00 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxcf264e1329fb0307e044f7675849f9f38b44c11a to < b79f9e1ff27c994a4c452235ba09e672ec698e23 · cf264e1329fb0307e044f7675849f9f38b44c11a to < d962f6c583458037dc7e529659b2b02b9dd3d94b · cf264e1329fb0307e044f7675849f9f38b44c11a to < 24a0e73d544439bb9329fbbafac44299e548a677 · cf264e1329fb0307e044f7675849f9f38b44c11a to < d5d39c707a4cf0bcc84680178677b97aa2cb2627 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.6.24 through 6.6.* (unaffected · semver) · 6.7.12 through 6.7.* (unaffected · semver) · 6.8.3 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 9 bpftool Advisory build 7.3.0-427.35.1.el9_4 ALSA-2024:6567
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.3.0-427.35.1.el9_4 ELSA-2024-6567
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.3.0-427.35.1.el9_4 RHSA-2024:6567
AlmaLinux 9 kernel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 9 kernel-64k Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-doc Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-headers Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-tools Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 libperf Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 perf Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 python3-perf Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 rtla Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 rv Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.3.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-modulesx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-modules-corex86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-modules-extrax86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-toolsaarch64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-toolsx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-tools-libsaarch64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-tools-libsx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-tools-libs-develaarch64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-tools-libs-develx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 kernel-uki-virtx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 libperfx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 perfaarch64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 perfx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 python3-perfaarch64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 python3-perfx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 rtlax86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567
Oracle Linux 9 rvx86_64 Advisory build 0:5.14.0-427.35.1.el9_4 ELSA-2024-6567

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: mm: cachestat: fix two shmem bugs When cachestat on shmem races with swapping and invalidation, there are two possible bugs: 1) A swapin error can have resulted in a poisoned swap entry in the shmem inode's xarray. Calling get_shadow_from_swap_cache() on it will result in an out-of-bounds access to swapper_spaces[]. Validate the entry with non_swap_entry() before going further. 2) When we find a valid swap entry in the shmem's inode, the shadow entry in the swapcache might not exist yet: swap IO is still in progress and we're before __remove_mapping; swapin, invalidation, or swapoff have removed the shadow from swapcache after we saw the shmem swap entry. This will send a NULL to workingset_test_recent(). The latter purely operates on pointer bits, so it won't crash - node 0, memcg ID 0, eviction timestamp 0, etc. are all valid inputs - but it's a bogus test. In theory that could result in a false "recently evicted" count. Such a false positive wouldn't be the end of the world. But for code clarity and (future) robustness, be explicit about this case. Bail on get_shadow_from_swap_cache() returning NULL.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

10

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: AV:L - The vulnerability is reached only through the `cachestat(2)` syscall on a local file descriptor for a shmem/tmpfs mapping (memfd, /dev/shm, or any readable tmpfs file). There is no network or remote-peer path into `filemap_cachestat()`. AC:L - Once a poisoned swap entry exists in a shmem inode it persists until truncate, and every `cachestat()` call covering that index deterministically and repeatably performs the out-of-bounds `swapper_spaces[]` access; the attacker additionally controls both sides of the cachestat-vs-swapping/invalidation race and can drive unbounded shmem swap I/O (large tmpfs files plus memory pressure) to provoke the swapin error, which is routine on flash-backed embedded/IoT swap and network-backed swap in diskless/cloud deployments. PR:L - `cachestat(2)` performs only `fdget()` with no capability or permission check whatsoever in the affected versions, and any unprivileged user can create a shmem mapping via `memfd_create()` or `/dev/shm`. No elevated privileges or namespace tricks are needed. UI:N - The attacker triggers the flaw entirely from their own process with a single syscall on a file descriptor they already hold. No action by any other user or victim process is required. S:U - The out-of-bounds access, wild dereference and resulting oops are all confined to the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The read past the end of `swapper_spaces[]` yields an unvalidated non-pointer value that is dereferenced as a `struct address_space` and walked as an xarray, so the kernel reads memory at an address it never bounds-checked; the value derived from that walk feeds `workingset_test_recent()` whose outcome is reflected in the `nr_recently_evicted` field copied back to userspace, forming a kernel-memory disclosure oracle. This is an unbounded out-of-bounds read, not a read strictly limited to a few bytes. I:N - The faulty path only performs reads (`xa_load`), and the memcg reference taken in `workingset_test_recent()` is released on all paths, so no kernel memory is written or corrupted and no write or control-flow-hijack primitive is produced. The only integrity effect is an inaccurate statistics counter returned to the caller. A:H - The out-of-bounds `swapper_spaces[31]` value is almost always zero (or unmapped garbage), producing a NULL/wild pointer dereference and kernel oops inside an `rcu_read_lock()` critical section; the leaked RCU nesting on task death can escalate to RCU stalls and a system-wide hang, and `panic_on_oops` systems panic outright.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 5.3 medium CISA-ADP · adp CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux cf264e1329fb0307e044f7675849f9f38b44c11a to < b79f9e1ff27c994a4c452235ba09e672ec698e23 (affected · git)cf264e1329fb0307e044f7675849f9f38b44c11a to < d962f6c583458037dc7e529659b2b02b9dd3d94b (affected · git)cf264e1329fb0307e044f7675849f9f38b44c11a to < 24a0e73d544439bb9329fbbafac44299e548a677 (affected · git)cf264e1329fb0307e044f7675849f9f38b44c11a to < d5d39c707a4cf0bcc84680178677b97aa2cb2627 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.5 (affected)0 to < 6.5 (unaffected · semver)6.6.24 through 6.6.* (unaffected · semver)6.7.12 through 6.7.* (unaffected · semver)6.8.3 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-787 CWE-787 Out-of-bounds Write (CISA-ADP · adp)

References

4

Provider assertions

3

Linux · cna

mm: cachestat: fix two shmem bugs

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
2f1cfde1c2d014d0ac05aad0b3aeb1397fd8d08d2b061458786a70fe72767a50
Ingested
23 Sep 2026, 08:23:51 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected