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
- git.kernel.org/stable/c/b08ff965d67a083e23262a87738bab222150085f
- git.kernel.org/stable/c/477c6e65a18a13b38b3036f65465bbcc9264b38f
- git.kernel.org/stable/c/e4b92891aaca0d37b5973362dd14747a65406650
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.