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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:22.927Z
- Modified: 2026-11-30T14:17:37.357Z
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ac2d3268284ba4e254e4ca346bf6d63fb8a17518 before b08ff965d67a083e23262a87738bab222150085f; from ac2d3268284ba4e254e4ca346bf6d63fb8a17518 before 477c6e65a18a13b38b3036f65465bbcc9264b38f; from ac2d3268284ba4e254e4ca346bf6d63fb8a17518 before e4b92891aaca0d37b5973362dd14747a65406650; 6.15 (not affected: before 6.15; from 6.18.64 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b08ff965d67a083e23262a87738bab222150085f>
- <https://git.kernel.org/stable/c/477c6e65a18a13b38b3036f65465bbcc9264b38f>
- <https://git.kernel.org/stable/c/e4b92891aaca0d37b5973362dd14747a65406650>

## Sources

- CVE List: [CVE-2026-138830](https://www.cve.org/CVERecord?id=CVE-2026-138830), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138830](https://nvd.nist.gov/vuln/detail/CVE-2026-138830), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138830 · Whole record: https://cve.day/CVE-2026-138830.json · Rebuilt by cve.day 2026-11-30T14:32:46.688Z
