Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
PendingCVE-2026-138830

mm/shmem: don't release a swapin-error marker as a swap entry

Published 30/11/2026 · Updated 30/11/2026 · Linux

Description

In the Linux kernel, the following vulnerability has been resolved: mm/shmem: don't release a swapin-error marker as a swap entry A failed shmem swapin (eg, EIO) frees the swap slot and leaves a PTE_MARKER_POISONED entry in the page cache. On truncate or eviction shmem_free_swap() passes that marker to swap_put_entries_direct(), which warns because it is not a swap entry. There is nothing left to release either way. Skip the release for non-swap entries, as every other caller already does.

Affected products and versions

Linux Linuxac2d3268284ba4e254e4ca346bf6d63fb8a17518 – < b08ff965d67a083e23262a87738bab222150085f · ac2d3268284ba4e254e4ca346bf6d63fb8a17518 – < 477c6e65a18a13b38b3036f65465bbcc9264b38f · ac2d3268284ba4e254e4ca346bf6d63fb8a17518 – < e4b92891aaca0d37b5973362dd14747a65406650Fixed in: b08ff965d67a083e23262a87738bab222150085f · 477c6e65a18a13b38b3036f65465bbcc9264b38f · e4b92891aaca0d37b5973362dd14747a65406650
Linux Linux6.15Fixed in: 6.18.64 · 7.3.4 · 7.4-rc1

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.