{"affected":[{"defaultStatus":"unaffected","product":"Linux","source":"CNA: Linux","vendor":"Linux","versions":[{"lessThan":"265dfa2525817d3be437576505186beb623384bf","status":"affected","version":"91ab656ece137c368a3189dfd42f8c9203a6285c","versionType":"git"},{"lessThan":"680afc486db200e7b08307cb28be4f90766afcff","status":"affected","version":"91ab656ece137c368a3189dfd42f8c9203a6285c","versionType":"git"},{"lessThan":"f4ce23b1feef16d435aa1188b6c2a637a5373ed5","status":"affected","version":"91ab656ece137c368a3189dfd42f8c9203a6285c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","source":"CNA: Linux","vendor":"Linux","versions":[{"status":"affected","version":"6.17"},{"lessThan":"6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cveId":"CVE-2026-99738","cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/shmem: preserve allocation errors when swapping in large entries\n\nshmem_swapin_folio() adjusts swap to the requested slot within a large\nswap entry before allocating a folio. If allocation or charging fails,\nthe error path compares this adjusted value with the original entry\nstill stored in the XArray in shmem_confirm_swap().\n\nUnless the index is at the start of the entry, this turns -ENOMEM into\n-EEXIST even though nothing changed.\n\nThe caller retries -EEXIST, so persistent allocation failures can leave\nthe task spinning instead of returning the error.\n\nRestore swap to index_entry on allocation failure so the existing error\npath checks the original entry. This preserves the allocation error if\nthe entry is unchanged and still retries if it changed concurrently.","epss":{"date":"2026-11-22","percentile":0.04717,"score":0.00156},"exploits":[],"kev":null,"metrics":[],"modifiedAt":1795421205949,"publishedAt":1795153871250,"references":[{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/265dfa2525817d3be437576505186beb623384bf"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/680afc486db200e7b08307cb28be4f90766afcff"},{"source":"CNA: Linux","tags":[],"url":"https://git.kernel.org/stable/c/f4ce23b1feef16d435aa1188b6c2a637a5373ed5"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/680afc486db200e7b08307cb28be4f90766afcff"},{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"url":"https://git.kernel.org/stable/c/f4ce23b1feef16d435aa1188b6c2a637a5373ed5"}],"remediation":[],"revision":"bb863d14af714360b16073e7354ef3473b2c031ea5c2fdd4657896b440160484","sources":[{"modifiedAt":1795421205949,"name":"CNA: Linux","retrievedAt":1795425446811,"url":"https://www.cve.org/CVERecord?id=CVE-2026-99738"},{"modifiedAt":1795155491470,"name":"NVD","retrievedAt":1795177045628,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99738"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795417347265,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99738"}],"ssvc":null,"status":"published","title":"mm/shmem: preserve allocation errors when swapping in large entries","updatedAt":1795425446811}