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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxac2d3268284ba4e254e4ca346bf6d63fb8a17518 to before b08ff965d67a083e23262a87738bab222150085f Affectedac2d3268284ba4e254e4ca346bf6d63fb8a17518 to before 477c6e65a18a13b38b3036f65465bbcc9264b38f Affectedac2d3268284ba4e254e4ca346bf6d63fb8a17518 to before e4b92891aaca0d37b5973362dd14747a65406650 Affected
Linux Linux6.15 Affectedbefore 6.15 Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.