{"id":"CVE-2026-99461","aliases":[],"cve":{"records":[{"id":"CVE-2026-99461","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.416Z","published":"2026-11-19T14:42:08.945Z","modified":"2026-11-19T14:42:08.945Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-19T14:42:08.945Z"}],"references":[{"url":"https://git.kernel.org/stable/c/384c524e066459c91a8750a055fe70d56b334437","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/c4252273ead984541eb9313667f2924f2ff8d0e0","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/9efc8d0c9c81094cfa99667154f5682d487e9b63","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/942c8ec27aa4ffc587511650718349964e1696e6","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"mm: khugepaged: fix swap entry value to folio_pfn()","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: khugepaged: fix swap entry value to folio_pfn()\n\nPatch series \"mm: khugepaged: fix tracepoint UAF\", v5.\n\nThe khugepaged tracepoints take a folio pointer and call folio_pfn(), but\nby then the folio may no longer be valid: freed after folio_put(),\nfolio_unlock() or pte_unmap_unlock(), or not a folio at all but an\nxarray-encoded swap entry.  On classic SPARSEMEM, dereferencing it oopses\nkhugepaged as soon as the trace event is enabled; on other memory models\nit merely prints a bogus pfn.\n\nPass the pfn to the tracepoints directly, captured while the folio is\nstill pinned, closing the use-after-free windows in\nmm_khugepaged_scan_file(), mm_khugepaged_scan_pmd() and\nmm_khugepaged_collapse_file().\n\n\nThis patch (of 3):\n\nWhen the swap entries found exceed max_ptes_swap, the loop is left via\nbreak with folio still holding the xarray value that encodes the swap\nentry, not valid folio pointer.\n\nThat value is passed to trace_mm_khugepaged_scan_file(), which feeds it to\nfolio_pfn().  On FLATMEM and SPARSEMEM_VMEMMAP, the page_to_pfn() is plain\npointer arithmetic, so the trace event merely prints bogus scan_pfn.  On\nclassic SPARSEMEM, the page_to_pfn() reads page->flags, dereferencing the\ntiny encoded integer and oopsing khugepaged whenever the trace event is\nenabled.\n\nSo when folio is the swap entry value, simply set pfn to -1, just like\nexhausted scan naturally.\n\nAnd the folio_put() has maybe dropped the last reference of folio.  The\ntrace_mm_khugepaged_scan_file() is left with a dangling folio pointer.  so\nusing the folio_pfn() before dropping the reference, closing\nuse-after-free window.","score":null,"severity":"unknown","published":"2026-11-19T14:42:08.945Z","modified":"2026-11-19T14:42:08.945Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"d41fd2016ed07a630da2817b76c98eeab7931e1e","status":"affected","lessThan":"384c524e066459c91a8750a055fe70d56b334437","versionType":"git"},{"version":"d41fd2016ed07a630da2817b76c98eeab7931e1e","status":"affected","lessThan":"c4252273ead984541eb9313667f2924f2ff8d0e0","versionType":"git"},{"version":"d41fd2016ed07a630da2817b76c98eeab7931e1e","status":"affected","lessThan":"9efc8d0c9c81094cfa99667154f5682d487e9b63","versionType":"git"},{"version":"d41fd2016ed07a630da2817b76c98eeab7931e1e","status":"affected","lessThan":"942c8ec27aa4ffc587511650718349964e1696e6","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99461"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99461"}],"remediation":[],"references":["https://git.kernel.org/stable/c/384c524e066459c91a8750a055fe70d56b334437","https://git.kernel.org/stable/c/c4252273ead984541eb9313667f2924f2ff8d0e0","https://git.kernel.org/stable/c/9efc8d0c9c81094cfa99667154f5682d487e9b63","https://git.kernel.org/stable/c/942c8ec27aa4ffc587511650718349964e1696e6"],"sources":[{"name":"CVE","id":"CVE-2026-99461","modified":"2026-11-19T14:42:08.945Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99461"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-19T14:57:37.909Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T12:35:32.252Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-22T04:45:33.560Z","attemptedAt":"2026-11-22T04:45:33.560Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-22T04:30:35.798Z","attemptedAt":"2026-11-22T04:30:35.798Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-22T04:05:40.120Z","attemptedAt":"2026-11-22T04:05:40.120Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-22T03:40:33.143Z","attemptedAt":"2026-11-22T03:40:33.143Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-99461","url":"https://www.first.org/epss/","probability":0.00168,"percentile":0.06234,"date":"2026-11-21","checkedAt":"2026-11-22T03:40:33.143Z"},{"source":"ENISA EUVD","id":"EUVD-2026-130128","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130128","modified":"Nov 19, 2026, 2:42:08 PM","checkedAt":"2026-11-22T04:05:40.120Z"},{"source":"GitHub Advisory Database","id":"GHSA-2m22-xjj2-6cjx","url":"https://github.com/advisories/GHSA-2m22-xjj2-6cjx","modified":"2026-11-19T15:31:28Z","checkedAt":"2026-11-22T04:30:35.798Z"},{"source":"NVD","id":"CVE-2026-99461","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99461","modified":"2026-11-19T15:18:00.190","checkedAt":"2026-11-22T04:45:33.560Z"}],"aiSummary":null}