CVE-2026-23177
kernel: mm, shmem: prevent infinite loop on truncate race
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 14, 2026
Updated · March 6, 2026
Description
An infinite loop vulnerability was found in the Linux kernel's shmem (shared memory) truncate handling. When truncating a large swap entry where the index points to the middle of the entry, the code can enter an infinite loop repeatedly finding and failing to free the same entry, causing a system hang.
Statement
This affects systems using tmpfs/shmem with large folios and swap. A local user can trigger the infinite loop by performing truncate operations on shmem files with specific swap entry alignments. The result is denial of service but no privilege escalation or data exposure.
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-835 · Loop with Unreachable Exit Condition ('Infinite Loop')