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

Published Nov 30, 2026
·
Updated

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 PTEMARKERPOISONED entry in the page cache. On truncate or eviction shmemfreeswap() passes that marker to swapputentriesdirect(), 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 Software

5 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.15.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description
Data Sourced
via OSV·01:25 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Under what conditions can this occur?

It requires a shmem swap-in failure, such as an EIO error. The failed swap-in must leave a PTE_MARKER_POISONED entry in the page cache, followed by truncation or eviction of that shmem data.

2

What is the practical impact of reaching the affected path?

The swap slot has already been freed after the failed swap-in, so there is no remaining swap entry to release. The affected cleanup path passes the non-swap marker to swap_put_entries_direct(), causing a warning.

3

Is there a workaround if the fix cannot be applied immediately?

The provided information does not identify a configuration workaround. Reducing or resolving the underlying shmem swap-in I/O failures may prevent the triggering condition, but the supplied data does not specify an operational mitigation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203