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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 6.5 | 6.6.24 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.7.12-1 | — |
| Debian 13 | linux | 6.7.12-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu 24.04 LTS | linux-aws | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu 24.04 LTS | linux-azure | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu 24.04 LTS | linux-gcp | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu 24.04 LTS | linux-gke | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu 24.04 LTS | linux-ibm +2 | 6.8.0-1006.6 | USN-6878-1, USN-6817-2, USN-6816-1 |
| Ubuntu 24.04 LTS | linux-raspi | 6.8.0-1005.5 | USN-6816-1 |
| Ubuntu 24.04 LTS | linux-riscv +1 | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu 22.04 LTS | linux-riscv +32 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +13 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro Realtime 24.04 LTS | linux-raspi-realtime | 6.8.0-2004.4 | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime | 6.8.1-1002.2 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | bpftool | 7.3.0-427.35.1.el9_4 | RHSA-2024:6567 |
| RHEL 9 | rv +64 | 5.14.0-427.35.1.el9_4 | RHSA-2024:6567 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | bpftool | 7.3.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux 9 | rv +60 | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | kernel | 5.14.0-427.35.1.el9_4 | RXSA-2024:6567, RLSA-2024:6567 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | bpftool | 7.3.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux 9 | rv +27 | 5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
Advisories 12
- WID-SEC-2024-1188 Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Nov 9, 2026
- ALSA-2024:6567 Moderate: kernel security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-6878-1 linux-oracle vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6816-1 linux, linux-ibm, linux-lowlatency, linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6817-3 linux-azure, linux-gke vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6817-1 linux-aws, linux-gcp vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6817-2 linux-oem-6.8 vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- RHSA-2024:6567 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RLSA-2024:6567 Moderate: kernel security update Rocky Linux Security Advisories · Feb 5, 2026
- RXSA-2024:6567 Moderate: kernel security update Rocky Linux Security Advisories · Feb 4, 2026
- WID-SEC-2025-1293 IBM DataPower Gateway: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 3, 2025
- ELSA-2024-6567 Moderate: kernel security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Sep 11, 2024