CVE-2026-99738: mm/shmem: preserve allocation errors when swapping in large entries

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/shmem: preserve allocation errors when swapping in large entries

shmemswapinfolio() adjusts swap to the requested slot within a large swap entry before allocating a folio. If allocation or charging fails, the error path compares this adjusted value with the original entry still stored in the XArray in shmemconfirmswap().

Unless the index is at the start of the entry, this turns -ENOMEM into -EEXIST even though nothing changed.

The caller retries -EEXIST, so persistent allocation failures can leave the task spinning instead of returning the error.

Restore swap to indexentry on allocation failure so the existing error path checks the original entry. This preserves the allocation error if the entry is unchanged and still retries if it changed concurrently.

Affected Software

3 affected componentsFixes available
linux/kernel>=6.17.0<7.3.5
7.3.5
debian/linux*
debian/linux<=7.3.4-1
6.1.176-16.1.192-26.12.107-16.12.117-17.3.5-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 7.3.5
  2. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.5-1

Event History

Nov 20, 2026
CVE Published
via MITRE·05:51 AM
Data Sourced
via MITRE·05:51 AM
Description
Data Sourced
via OSV·05:51 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the task spin?

A swap-in of a large swap entry must request an index that is not at the start of that entry, and folio allocation or memory charging must fail persistently. Under those conditions, the failure can be misreported as -EEXIST and retried repeatedly.

2

What is the operational impact of this issue?

A task encountering persistent allocation or charging failures while swapping in the affected large entries may spin instead of receiving the allocation error. This can prevent the affected operation from making progress while the failure persists.

3

How does the fix change behavior during concurrent changes?

On allocation failure, the fix restores the original swap entry before the existing validation path runs. It preserves the allocation error when the entry is unchanged, while retaining retry behavior if the entry changed concurrently.

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