Security mailing lists by PureSourceCode

CVE-2026-99738

not scored yet

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

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

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

shmem_swapin_folio() 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 shmem_confirm_swap().

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 index_entry 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.

Published
20 Nov 2026
Last modified
23 Nov 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 91ab656ece137c368a3189dfd42f8c9203a6285c, < 265dfa2525817d3be437576505186beb623384bf; >= 91ab656ece137c368a3189dfd42f8c9203a6285c, < 680afc486db200e7b08307cb28be4f90766afcff; >= 91ab656ece137c368a3189dfd42f8c9203a6285c, < f4ce23b1feef16d435aa1188b6c2a637a5373ed5 265dfa2525817d3be437576505186beb623384bf, 680afc486db200e7b08307cb28be4f90766afcff, f4ce23b1feef16d435aa1188b6c2a637a5373ed5
CVE List Linux Linux = 6.17

References

History

  • 25 Nov 2026 20:33 UTC · CVE List: first stored (published 20 Nov 2026)
  • 25 Nov 2026 20:11 UTC · NVD: first stored (published 20 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.