{
  "affected": [
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:12",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:13",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.12.117-1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:14",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.3.4-1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "details": "In the Linux kernel, the following vulnerability has been resolved:  mm/madvise: atomically clear the young bit on THP MADV_COLD  As-is, madvise_cold_or_pageout_pte_range() discards the hardware young bit by invalidating the PMD, doing pmd_mkold() and subsequently writing to the pmd again.  However, it does so in a racy manner, looking at a possibly-stale snapshot.  It's entirely possible that a write elsewhere set the hardware D bit, which this logic now loses.  Fix it by using pmdp_test_and_clear_young().  This is an atomic modification of the PMD entry, and thus safe against any possible racing writes.  As a (nice) side-effect, this elides one non-required TLB flush in pmdp_invalidate().  This bug can interact with the swapping system in complicated ways, leading to data loss.  For instance, if a folio is marked lazyfree, but was later read from, and then MADV_COLD'd while racing a write to that same THP, dropping the dirty bit may lead to data loss as reclaim/MADV_PAGEOUT drops the \"clean\" anon folio:  T0                                T1 ================================================================ MADV_FREE(thp)\t\t\t|   folio marked lazyfree\t\t| read(thp)\t\t\t|   PMD marked young by hardware\t| \t\t\t\t| MADV_COLD(thp) write(thp)\t\t\t|   if (pmd_young(pmd)) {   PMD marked dirty by hardware\t|     set(pmdp, pmd_mkold(pmd)); MADV_PAGEOUT/reclaim\t\t|   dirty bit may or may not be   |   set\t\t\t\t|     reclaim/pageout may drop    |     the folio\t\t\t|",
  "id": "DEBIAN-CVE-2026-99918",
  "modified": "2026-12-01T03:47:34.755795850Z",
  "published": "2026-11-30T14:20:27.877Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://security-tracker.debian.org/tracker/CVE-2026-99918"
    }
  ],
  "upstream": [
    "CVE-2026-99918"
  ]
}