CVE-2026-23161
Race Condition in Linux Kernel shmem Swap Causes Data Corruption
Publication date: 2026-02-14
Last updated on: 2026-04-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 6.19 |
| linux | linux_kernel | 6.19 |
| linux | linux_kernel | 6.19 |
| linux | linux_kernel | 6.19 |
| linux | linux_kernel | 6.19 |
| linux | linux_kernel | 6.19 |
| linux | linux_kernel | 6.19 |
| linux | linux_kernel | From 6.13 (inc) to 6.18.9 (exc) |
| linux | linux_kernel | From 6.12 (inc) to 6.12.69 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-362 | The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's memory management subsystem, specifically in the handling of shared memory (shmem) swap entries. The issue arises because the helper function that frees shmem swap entries does not correctly handle the order of these entries. It retrieves the order of a swap entry without proper locking, which can lead to using outdated order values if the entry is split or changed concurrently.
Additionally, the order value can grow larger than expected, potentially causing truncation operations to erase data beyond the intended boundary. This can happen if swap entries are swapped in or freed and then replaced by a large memory folio that is swapped out using the same entry.
The fix involves combining the retrieval of the order and the value checking into a single critical section to prevent race conditions, and ensuring that entries crossing the end boundary are skipped safely to avoid data corruption.
How can this vulnerability impact me? :
This vulnerability can lead to data corruption or loss due to improper handling of swap entries in shared memory. Specifically, truncation operations might erase data beyond the intended boundaries, potentially affecting system stability and data integrity.
In practical terms, this could cause random system hangs or kernel panics, especially under stress conditions involving memory swapping (such as with ZSWAP and shmem). This instability can disrupt normal system operations and may result in loss of unsaved data.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know