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-2026-23161

published high CVSS 3.1 · 7.3

mm/shmem, swap: fix race of truncate and swap entry split

Published
14 Feb 2026, 16:01:26 UTC
Updated
05 Aug 2026, 12:20:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux809bc86517cc408b5b8cb8e08e69096639432bc8 to < a99f9a4669a04662c8f9efe0e62cafc598153139 · 809bc86517cc408b5b8cb8e08e69096639432bc8 to < b23bee8cdb7aabce5701a7f57414db5a354ae8ed · 809bc86517cc408b5b8cb8e08e69096639432bc8 to < 8a1968bd997f45a9b11aefeabdd1232e1b6c7184 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.69 through 6.12.* (unaffected · semver) · 6.18.9 through 6.18.* (unaffected · semver) · 6.19 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
Amazon Linux AL2023 Release evaluationALAS2023-2026-1487 Fixed Not stated Amazon Linux assessment
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-docaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-docaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-docaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-201.74.2.1.el10uek ELSA-2026-50232
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-204.92.4.2.el10uek ELSA-2026-50372
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-200.74.27.el10uek ELSA-2026-50160

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/shmem, swap: fix race of truncate and swap entry split The helper for shmem swap freeing is not handling the order of swap entries correctly. It uses xa_cmpxchg_irq to erase the swap entry, but it gets the entry order before that using xa_get_order without lock protection, and it may get an outdated order value if the entry is split or changed in other ways after the xa_get_order and before the xa_cmpxchg_irq. And besides, the order could grow and be larger than expected, and cause truncation to erase data beyond the end border. For example, if the target entry and following entries are swapped in or freed, then a large folio was added in place and swapped out, using the same entry, the xa_cmpxchg_irq will still succeed, it's very unlikely to happen though. To fix that, open code the Xarray cmpxchg and put the order retrieval and value checking in the same critical section. Also, ensure the order won't exceed the end border, skip it if the entry goes across the border. Skipping large swap entries crosses the end border is safe here. Shmem truncate iterates the range twice, in the first iteration, find_lock_entries already filtered such entries, and shmem will swapin the entries that cross the end border and partially truncate the folio (split the folio or at least zero part of it). So in the second loop here, if we see a swap entry that crosses the end order, it must at least have its content erased already. I observed random swapoff hangs and kernel panics when stress testing ZSWAP with shmem. After applying this patch, all problems are gone.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

21

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.3 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
Scenarios
en: AV:L - The vulnerability is in shmem/tmpfs truncation code, reachable through local syscalls (ftruncate, fallocate, truncate) on tmpfs or memfd files. No network path exists. AC:L - The attacker controls both sides of the race — one thread performs truncation while another triggers large folio swap-out that changes the entry order. The race is repeatable and the attacker creates the conditions. PR:L - Any unprivileged local user can create shmem/tmpfs files via memfd_create() or /dev/shm and perform truncate/fallocate operations on them. No special privileges required. UI:N - No user interaction is needed. The attacker independently creates the race condition by performing concurrent operations on their own shmem files. S:U - The vulnerability operates within the kernel's own security authority. There is no crossing of a virtualization or sandbox boundary. C:L - Freed swap entries could be reused by other processes, and subsequent swapin of the original file pages could read stale or foreign data, but this is an indirect and limited information leak path. I:H - The bug causes truncation to erase data beyond the intended border by freeing swap entries that shouldn't be freed, directly corrupting file data integrity. A:H - The commit author directly observed kernel panics and swapoff hangs during stress testing. The incorrect swap entry freeing causes crashes and system hangs.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 809bc86517cc408b5b8cb8e08e69096639432bc8 to < a99f9a4669a04662c8f9efe0e62cafc598153139 (affected · git)809bc86517cc408b5b8cb8e08e69096639432bc8 to < b23bee8cdb7aabce5701a7f57414db5a354ae8ed (affected · git)809bc86517cc408b5b8cb8e08e69096639432bc8 to < 8a1968bd997f45a9b11aefeabdd1232e1b6c7184 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.69 through 6.12.* (unaffected · semver)6.18.9 through 6.18.* (unaffected · semver)6.19 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

mm/shmem, swap: fix race of truncate and swap entry split

Provenance

Schema
5.2
Searchable
yes
Content hash
9c593379e99a9922f38cf88fafeeb7dabc809e4c138e0df6fcd31c65d7c4b429
Ingested
23 Sep 2026, 09:05:46 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