{
  "id": "CVE-2026-99477",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-99477",
  "published_at": "2026-11-19T14:43:11.195Z",
  "title": "fs/proc/task_mmu: pin mm_users in do_pagemap_scan()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-11-29T21:09:42Z",
    "first_seen_at": "2026-11-30T02:13:28.36Z",
    "days_after_publication": 10.3,
    "repo": "Adiakys/CVE-2026-99477",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nfs/proc/task_mmu: pin mm_users in do_pagemap_scan()\n\nThe PAGEMAP_SCAN ioctl takes mmap_read_lock() on an mm obtained from\n/proc/\u003cpid\u003e/pagemap without holding a reference to mm_users.\n\nproc_mem_open() deliberately grabs only mm_count, so a consumer that\ntouches the address space has to call mmget_not_zero() first.  Every other\nconsumer in this file does -- m_start(), do_procmap_query(),\nshow_smaps_rollup() and pagemap_read() -- but do_pagemap_scan() does not.\n\nWithout that reference the target can reach exit_mmap() concurrently, and\nexit_mmap() calls unmap_vmas() while holding mmap_lock only for reading,\nwhich does not exclude the scanner.  For ordinary VMAs this is harmless,\nas free_pgtables() and remove_vma() run afterwards under mmap_write_lock. \nA shared hugetlb VMA is different: __hugetlb_zap_end() frees the VMA's\nhugetlb_vma_lock inside the read-locked phase.\n\nwalk_hugetlb_range() can therefore load vma-\u003evm_private_data, have the\nlock freed underneath it, and then down_read() a freed rw_semaphore.  The\nload happens before the freeing side clears the pointer, so this is a\nuse-after-free and not a NULL dereference.  Any unprivileged user can\nreach it with no huge pages configured, as hugetlb_reserve_pages()\nallocates the lock before the VM_NORESERVE early return.\n\nPin mm_users across the scan, the way the other consumers do.  mmput()\nfrom the exiting task can then no longer reach exit_mmap() while a walk is\nin progress.\n\n[akpm@linux-foundation.org: remove unneeded \u0026 undesirable test for !mm]",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [
    {
      "repo": "Adiakys/CVE-2026-99477",
      "url": "https://github.com/Adiakys/CVE-2026-99477",
      "created_at": "2026-11-29T21:09:42Z",
      "first_seen_at": "2026-11-30T02:13:28.36Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2018-07-01T12:23:45Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \u003c 6e2299a9356de3364e193d6eaf123b90d7698c1d",
          "\u003e= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \u003c abc9c0f4f850d23e55f4230cd0f54938a64267bf",
          "\u003e= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \u003c 14a853bf3e6f0dd62ff479a36613411237dec24c",
          "\u003e= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \u003c 4fb975471717c953f912776bb60301add1ffae11"
        ],
        "fixed_in": [
          "6e2299a9356de3364e193d6eaf123b90d7698c1d",
          "abc9c0f4f850d23e55f4230cd0f54938a64267bf",
          "14a853bf3e6f0dd62ff479a36613411237dec24c",
          "4fb975471717c953f912776bb60301add1ffae11"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.7"
        ],
        "fixed_in": [
          "0",
          "6.12.117",
          "6.18.61",
          "7.3.2",
          "7.4-rc1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 6e2299a9356de3364e193d6eaf123b90d7698c1d or abc9c0f4f850d23e55f4230cd0f54938a64267bf or 14a853bf3e6f0dd62ff479a36613411237dec24c or 4fb975471717c953f912776bb60301add1ffae11 or later.",
      "Upgrade Linux to 0 or 6.12.117 or 6.18.61 or 7.3.2 or 7.4-rc1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
