CVE-2026-23161
kernel: mm/shmem, swap: fix race of truncate and swap entry split
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 14, 2026
Updated · August 5, 2026
Description
A race condition was found in the Linux kernel's shmem/swap handling during truncate operations. The swap entry order is retrieved without proper lock protection, allowing it to become stale before the subsequent xa_cmpxchg_irq operation. This can cause truncation to erase data beyond the intended end border or lead to swapoff hangs and kernel panics.
Statement
This race condition requires specific timing between truncate operations and swap entry splits under ZSWAP stress. While it can cause kernel panics, it's difficult to trigger reliably and primarily affects systems using ZSWAP with shmem/tmpfs under heavy memory pressure. No data confidentiality or integrity impact beyond the crash.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition