CVE-2026-99668 (GCVE-0-2026-99668)

Vulnerability from cvelistv5 – Published: 2026-11-20 05:50 – Updated: 2026-11-22 11:09
VLAI
Title
mm/huge_memory: fix zapping migration entries for device-private THPs
Summary
In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: fix zapping migration entries for device-private THPs A PMD migration entry can refer to a device-private folio. zap_huge_pmd_folio() checks the folio type instead of the entry type, so it treats such a migration entry as a device-private entry. Installing the migration entry already removed the reverse mapping and dropped the mapping reference. Zapping it must not repeat those operations. Concurrent MADV_DONTNEED during migration back to system memory can trigger this. Check the PMD entry type using pmd_is_device_private_entry(). Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description ]
Impacted products
Vendor Product Version
Linux Linux Affected: 368076f52ebeecd33e10a9f80905d7508b6b6149 , < 2d7e94a16d0d33ce2cce5ea06cf61079c392d351 (git)
Affected: 368076f52ebeecd33e10a9f80905d7508b6b6149 , < 63a940541358d09cc9f02d40b71eb8d3917a21c0 (git)
Create a notification for this product.
Linux Linux Affected: 6.19
Unaffected: 0 , < 6.19 (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/huge_memory.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2d7e94a16d0d33ce2cce5ea06cf61079c392d351",
              "status": "affected",
              "version": "368076f52ebeecd33e10a9f80905d7508b6b6149",
              "versionType": "git"
            },
            {
              "lessThan": "63a940541358d09cc9f02d40b71eb8d3917a21c0",
              "status": "affected",
              "version": "368076f52ebeecd33e10a9f80905d7508b6b6149",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "mm/huge_memory.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.19"
            },
            {
              "lessThan": "6.19",
              "status": "unaffected",
              "version": "0",
              "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"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: fix zapping migration entries for device-private THPs\n\nA PMD migration entry can refer to a device-private folio.\nzap_huge_pmd_folio() checks the folio type instead of the entry type,\nso it treats such a migration entry as a device-private entry.\n\nInstalling the migration entry already removed the reverse mapping and\ndropped the mapping reference. Zapping it must not repeat those\noperations. Concurrent MADV_DONTNEED during migration back to system\nmemory can trigger this.\n\nCheck the PMD entry type using pmd_is_device_private_entry().\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: simplify description ]"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - madvise(MADV_DONTNEED) reaches the buggy check in zap_huge_pmd_folio through do_madvise, madvise_dontneed_single_vma, zap_vma_range_batched and zap_pmd_range. The zapped PMD is a migration entry that set_pmd_migration_entry wrote into the caller\u0027s page tables during do_huge_pmd_device_private.\nAC:L - The attacker first moves their own anonymous THP to device-private memory through GPU HMM, then faults it so __handle_mm_fault calls do_huge_pmd_device_private and migrate_vma_setup. set_pmd_migration_entry leaves the migration PMD installed across the device-to-RAM copy, and a second thread of the same process calls MADV_DONTNEED into that window.\nPR:L - Both the fault and madvise run as an unprivileged process on an anonymous VMA it owns. GPU HMM drivers (nouveau_dmem_migrate_to_ram, svm_migrate_to_ram) install the device-private THP for a render-node client, and zap_huge_pmd_folio does not consult capabilities.\nUI:N - The attacker calls madvise and generates the migrate-back fault on a device-private THP mapping that their own process already created.\nS:U - The repeated folio_put and folio_remove_rmap_pmd corrupt the device-private folio in the calling kernel. The damaged state is that kernel\u0027s folio refcount and mapcount, the same authority as the vulnerable mm code.\nC:H - set_pmd_migration_entry already called folio_put to drop the mapping pin. zap_huge_pmd_folio takes the folio_is_device_private(folio) branch and puts again, so the refcount hits zero and free_zone_device_folio runs while do_huge_pmd_device_private still holds the folio and will folio_unlock and folio_put it. That is a use-after-free of the folio.\nI:H - The extra folio_put returns the device-private folio to the driver free list (nouveau_dmem_folio_free) while migration still has it locked, so the later folio_unlock and folio_put modify the lock and refcount of whatever client reallocates that folio. The extra folio_remove_rmap_pmd also writes a negative _large_mapcount and underflows _nr_pages_mapped.\nA:H - free_zone_device_folio drops a folio that migrate_vma_finalize and do_huge_pmd_device_private still lock and put, which oopses the kernel or unlocks a live reallocated folio. The second folio_remove_rmap_pmd also feeds a huge negative delta, nr_pages plus ENTIRELY_MAPPED, into __folio_mod_stat."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:09:33.041Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/2d7e94a16d0d33ce2cce5ea06cf61079c392d351"
        },
        {
          "url": "https://git.kernel.org/stable/c/63a940541358d09cc9f02d40b71eb8d3917a21c0"
        }
      ],
      "title": "mm/huge_memory: fix zapping migration entries for device-private THPs",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99668",
    "datePublished": "2026-11-20T05:50:18.124Z",
    "dateReserved": "2026-09-25T10:25:14.428Z",
    "dateUpdated": "2026-11-22T11:09:33.041Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99668",
      "date": "2026-11-24",
      "epss": "0.00153",
      "percentile": "0.04345"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "mm/huge_memory.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "2d7e94a16d0d33ce2cce5ea06cf61079c392d351",
                    "status": "affected",
                    "version": "368076f52ebeecd33e10a9f80905d7508b6b6149",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "63a940541358d09cc9f02d40b71eb8d3917a21c0",
                    "status": "affected",
                    "version": "368076f52ebeecd33e10a9f80905d7508b6b6149",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "mm/huge_memory.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.19"
                  },
                  {
                    "lessThan": "6.19",
                    "status": "unaffected",
                    "version": "0",
                    "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"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: fix zapping migration entries for device-private THPs\n\nA PMD migration entry can refer to a device-private folio.\nzap_huge_pmd_folio() checks the folio type instead of the entry type,\nso it treats such a migration entry as a device-private entry.\n\nInstalling the migration entry already removed the reverse mapping and\ndropped the mapping reference. Zapping it must not repeat those\noperations. Concurrent MADV_DONTNEED during migration back to system\nmemory can trigger this.\n\nCheck the PMD entry type using pmd_is_device_private_entry().\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: simplify description ]"
          }
        ],
        "id": "CVE-2026-99668",
        "lastModified": "2026-11-22T11:17:05.320",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-20T06:18:01.197",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/2d7e94a16d0d33ce2cce5ea06cf61079c392d351"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/63a940541358d09cc9f02d40b71eb8d3917a21c0"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-24T23:43:57+00:00",
      "cve": "CVE-2026-99668",
      "id": "CVE-2026-99668",
      "initial_release_date": "2026-11-20T05:50:18.124000+00:00",
      "product_status:known_affected": "77",
      "product_status:known_not_affected": "203",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via improper handling of device-private THP migration entries",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99668.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "not set",
      "current_release_date": "2026-11-20T17:43:10Z",
      "cve": "CVE-2026-99668",
      "id": "CVE-2026-99668",
      "initial_release_date": "2026-11-20T17:43:10Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99668",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99668.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…