Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-63950

published high CVSS 3.1 · 7.8

mm/rmap: initialize nr_pages to 1 at loop start in try_to_unmap_one

Published
19 Jul 2026, 14:55:43 UTC
Updated
05 Aug 2026, 12:37:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux354dffd29575cdf13154e8fb787322354aa9efc4 to < 0fcc34d0d8fefca4fea349e45c10e3a3d90350eb · 354dffd29575cdf13154e8fb787322354aa9efc4 to < f611db9b771b2b6775357555d2517af044fca4f0 · 354dffd29575cdf13154e8fb787322354aa9efc4 to < 3f8968e9cbf95d5d87d32218906cab0b9b9eddbe · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.18.35 through 6.18.* (unaffected · semver) · 7.0.12 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1881 Fixed Not stated Amazon Linux assessment
Ubuntu noble linux-azure-7.0 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-azure-7.0-cloud-tools-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-azure-7.0-headers-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble linux-azure-7.0-tools-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-buildinfo-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-buildinfo-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-buildinfo-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-buildinfo-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-buildinfo-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-buildinfo-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-buildinfo-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-cloud-tools-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-gcp-7.0 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-gcp-7.0-headers-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-gcp-7.0-tools-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-headers-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-headers-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-headers-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-headers-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-image-unsigned-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-image-unsigned-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-image-unsigned-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-image-unsigned-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-modules-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-modules-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-modules-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-modules-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-modules-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-iwlwifi-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0-headers-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0-tools-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-oracle-7.0 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-oracle-7.0-headers-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-oracle-7.0-tools-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-tools-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-tools-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-tools-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-tools-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu resolute linux-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-cloud-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-headers-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-cloud-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-cloud-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-headers-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-headers-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1008-oracle-64k Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1010-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-buildinfo-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-buildinfo-7.0.0-2016-nvidia-bos Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-buildinfo-7.0.0-2016-nvidia-bos-64k Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-cloud-tools-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1008-oracle-64k Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1010-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-headers-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-headers-7.0.0-2016-nvidia-bos Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-headers-7.0.0-2016-nvidia-bos-64k Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-ibm-headers-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-ibm-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-image-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-image-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-image-unsigned-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: mm/rmap: initialize nr_pages to 1 at loop start in try_to_unmap_one Initialize nr_pages to 1 at the start of each loop iteration, like folio_referenced_one() does. Without this, nr_pages computed by a previous folio_unmap_pte_batch() call can be reused on a later iteration that does not run folio_unmap_pte_batch() again. mmap a 64K large folio with MAP_ANONYMOUS | MAP_DROPPABLE, then call madvise(MADV_FREE), then make the last page device-exclusive via HMM_DMIRROR_EXCLUSIVE. Trigger node reclaim through sysfs. Now, in try_to_unmap_one(), we will first clear the first 15 out of 16 entries mapping the lazyfree folio. This will set nr_pages to 15. In the next pvmw walk, this nr_pages gets reused on a device-exclusive pte, thus potentially corrupting folio refcount/mapcount. At the moment, I have a userspace program which can make the kernel spit out a trace, but the blow up is in folio_referenced_one(), because there are existing bugs in the interaction between device-private and rmap (which too I am investigating). I did a one liner kernel change to avoid going into folio_referenced_one(), and the kernel blows up at folio_remove_rmap_ptes in try_to_unmap_one which is what I wanted. Note that the bug is there not since file folio batching but lazyfree folio batching, since device-exclusive only works for anonymous folios. Userspace visible effect is simply kernel crashing somewhere due to refcount/mapcount corruption.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

10

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Exploitation requires local syscalls (mmap with MAP_DROPPABLE, madvise MADV_FREE/MADV_PAGEOUT, and a device-exclusive ioctl such as HMM_DMIRROR_EXCLUSIVE or GPU SVM) that drive kernel memory reclaim into try_to_unmap_one(); there is no network-facing entry point. AC:L - The reporter provides a deterministic userspace reproducer and the attacker fully controls the memory layout (64K lazyfree large folio with one device-exclusive PTE) and reclaim triggering; no race or layout condition outside attacker control is required beyond having DEVICE_PRIVATE/THP enabled. PR:L - A normal unprivileged local process can perform the required mmap/madvise sequence and trigger reclaim via MADV_PAGEOUT or memory pressure; marking a page device-exclusive only needs access to a GPU render node or hmm_dmirror test device, which is routinely granted to unprivileged users on GPU-equipped systems. UI:N - No victim interaction is required; the attacker runs the exploit sequence in their own process to corrupt folio refcount/mapcount during reclaim. S:U - Impact is confined to kernel memory management within the same security authority; this is standard kernel memory corruption/privilege-escalation territory, not a VM escape or cross-authority boundary bypass. C:H - Stale nr_pages causes folio_remove_rmap_ptes() and folio_put_refs() to operate on the wrong page count, corrupting mapcount and refcount; the author confirms refcount/mapcount corruption and this class of bug can yield use-after-free with arbitrary read primitives. I:H - Incorrect multi-page rmap removal and reference dropping on a single device-exclusive PTE is exploitable memory corruption that can lead to use-after-free and arbitrary kernel write/control-flow hijack, not merely a bounded modification. A:H - The fix commit and reporter explicitly state the userspace-visible effect is kernel crashes (oops/panic) from refcount/mapcount corruption, observed at folio_remove_rmap_ptes in try_to_unmap_one.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 354dffd29575cdf13154e8fb787322354aa9efc4 to < 0fcc34d0d8fefca4fea349e45c10e3a3d90350eb (affected · git)354dffd29575cdf13154e8fb787322354aa9efc4 to < f611db9b771b2b6775357555d2517af044fca4f0 (affected · git)354dffd29575cdf13154e8fb787322354aa9efc4 to < 3f8968e9cbf95d5d87d32218906cab0b9b9eddbe (affected · git)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.18.35 through 6.18.* (unaffected · semver)7.0.12 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

mm/rmap: initialize nr_pages to 1 at loop start in try_to_unmap_one

Provenance

Schema
5.2
Searchable
yes
Content hash
cfcf1747bf47e109f3866332ca63958df92e9a438760fdf7ef0694100e58096f
Ingested
23 Sep 2026, 09:25:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected