{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "91ab656ece137c368a3189dfd42f8c9203a6285c"
            },
            {
              "fixed": "680afc486db200e7b08307cb28be4f90766afcff"
            },
            {
              "fixed": "f4ce23b1feef16d435aa1188b6c2a637a5373ed5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.17.0"
            },
            {
              "fixed": "7.3.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99738.json"
  },
  "details": "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.",
  "id": "CVE-2026-99738",
  "modified": "2026-11-20T06:45:57.184283832Z",
  "published": "2026-11-20T05:51:11.250Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/680afc486db200e7b08307cb28be4f90766afcff"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f4ce23b1feef16d435aa1188b6c2a637a5373ed5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99738.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99738"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/shmem: preserve allocation errors when swapping in large entries"
}