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-2025-21939

published high CVSS 3.1 · 7.8

drm/xe/hmm: Don't dereference struct page pointers without notifier lock

Published
01 Apr 2025, 15:41:05 UTC
Updated
15 Oct 2026, 21:51:55 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 to < 2a24c98f0e4cc994334598d4f3a851972064809d · 81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 to < f9326f529da7298a95643c3267f1c0fdb0db55eb · 81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 to < 0a98219bcc961edd3388960576e4353e123b4a51 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.19 through 6.12.* (unaffected · semver) · 6.13.7 through 6.13.* (unaffected · semver) · 6.14 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
SUSE / openSUSE SLE-15-SP7 cluster-md-kmp-defaultaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
Ubuntu noble linux-azure-6.11 Advisory build 6.11.0-1018.18~24.04.1 USN-7628-1
SUSE / openSUSE SLE-15-SP7 cluster-md-kmp-defaultppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 cluster-md-kmp-defaults390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-15-SP7 cluster-md-kmp-defaultx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 cluster-md-kmp-rtx86_64 Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 dlm-kmp-defaultaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 dlm-kmp-defaultppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 dlm-kmp-defaults390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 dlm-kmp-defaultx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 dlm-kmp-rtx86_64 Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 gfs2-kmp-defaultaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 gfs2-kmp-defaultppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 gfs2-kmp-defaults390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 gfs2-kmp-defaultx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 gfs2-kmp-rtx86_64 Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 kernel-64kbaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-64kb-develaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-azureaarch64 Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-azurex86_64 Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-azure-develaarch64 Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-azure-develx86_64 Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-defaultaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-defaultppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-defaults390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-defaultx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-baseaarch64 Advisory build 6.4.0-150700.53.6.1.150700.17.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-baseppc64le Advisory build 6.4.0-150700.53.6.1.150700.17.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-basex86_64 Advisory build 6.4.0-150700.53.6.1.150700.17.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-develaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-develppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-devels390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-develx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-extrax86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-livepatchppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-livepatchs390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-livepatchx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-livepatch-develppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-livepatch-devels390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-default-livepatch-develx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-develnoarch Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-devel-azurenoarch Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-devel-rtnoarch Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 kernel-docsnoarch Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-livepatch-6_4_0-150700_53_6-defaultppc64le Advisory build 1-150700.15.3.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-livepatch-6_4_0-150700_53_6-defaults390x Advisory build 1-150700.15.3.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-livepatch-6_4_0-150700_53_6-defaultx86_64 Advisory build 1-150700.15.3.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-livepatch-6_4_0-150700_7_8-rtx86_64 Advisory build 1-150700.1.5.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 kernel-macrosnoarch Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-obs-buildaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-obs-buildppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-obs-builds390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-obs-buildx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-rtx86_64 Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 kernel-rt-develx86_64 Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 kernel-sourcenoarch Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-source-azurenoarch Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-source-rtnoarch Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 kernel-symsaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-symsppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-symss390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-symsx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 kernel-syms-azureaarch64 Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-syms-azurex86_64 Advisory build 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SUSE / openSUSE SLE-15-SP7 kernel-syms-rtx86_64 Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 kernel-zfcpdumps390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 ocfs2-kmp-defaultaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 ocfs2-kmp-defaultppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 ocfs2-kmp-defaults390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 ocfs2-kmp-defaultx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 ocfs2-kmp-rtx86_64 Advisory build 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE / openSUSE SLE-15-SP7 reiserfs-kmp-defaultaarch64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 reiserfs-kmp-defaultppc64le Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 reiserfs-kmp-defaults390x Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SUSE / openSUSE SLE-15-SP7 reiserfs-kmp-defaultx86_64 Advisory build 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
Ubuntu noble linux-azure-6.11-cloud-tools-6.11.0-1018 Advisory build 6.11.0-1018.18~24.04.1 USN-7628-1
Ubuntu noble linux-azure-6.11-headers-6.11.0-1018 Advisory build 6.11.0-1018.18~24.04.1 USN-7628-1
Ubuntu noble linux-azure-6.11-tools-6.11.0-1018 Advisory build 6.11.0-1018.18~24.04.1 USN-7628-1
Ubuntu noble linux-buildinfo-6.11.0-1015-lowlatency Advisory build 6.11.0-1015.16~24.04.2 USN-7605-2
Ubuntu noble linux-buildinfo-6.11.0-1015-lowlatency-64k Advisory build 6.11.0-1015.16~24.04.2 USN-7605-2
Ubuntu noble linux-buildinfo-6.11.0-1016-gcp Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-buildinfo-6.11.0-1016-gcp-64k Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-buildinfo-6.11.0-1018-azure Advisory build 6.11.0-1018.18~24.04.1 USN-7628-1
Ubuntu noble linux-buildinfo-6.11.0-1024-oem Advisory build 6.11.0-1024.24 USN-7606-1
Ubuntu noble linux-buildinfo-6.11.0-28-generic Advisory build 6.11.0-28.28~24.04.1 USN-7605-1
Ubuntu noble linux-buildinfo-6.11.0-28-generic-64k Advisory build 6.11.0-28.28~24.04.1 USN-7605-1
Ubuntu noble linux-cloud-tools-6.11.0-1015-lowlatency Advisory build 6.11.0-1015.16~24.04.2 USN-7605-2
Ubuntu noble linux-cloud-tools-6.11.0-1018-azure Advisory build 6.11.0-1018.18~24.04.1 USN-7628-1
Ubuntu noble linux-cloud-tools-6.11.0-28-generic Advisory build 6.11.0-28.28~24.04.1 USN-7605-1
Ubuntu noble linux-gcp-6.11 Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-gcp-6.11-headers-6.11.0-1016 Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-gcp-6.11-lib-rust-6.11.0-1016-gcp Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-gcp-6.11-tools-6.11.0-1016 Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-headers-6.11.0-1015-lowlatency Advisory build 6.11.0-1015.16~24.04.2 USN-7605-2
Ubuntu noble linux-headers-6.11.0-1015-lowlatency-64k Advisory build 6.11.0-1015.16~24.04.2 USN-7605-2
Ubuntu noble linux-headers-6.11.0-1016-gcp Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-headers-6.11.0-1016-gcp-64k Advisory build 6.11.0-1016.16~24.04.1 USN-7605-1
Ubuntu noble linux-headers-6.11.0-1018-azure Advisory build 6.11.0-1018.18~24.04.1 USN-7628-1
Ubuntu noble linux-headers-6.11.0-1024-oem Advisory build 6.11.0-1024.24 USN-7606-1
Ubuntu noble linux-headers-6.11.0-28-generic Advisory build 6.11.0-28.28~24.04.1 USN-7605-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: drm/xe/hmm: Don't dereference struct page pointers without notifier lock The pnfs that we obtain from hmm_range_fault() point to pages that we don't have a reference on, and the guarantee that they are still in the cpu page-tables is that the notifier lock must be held and the notifier seqno is still valid. So while building the sg table and marking the pages accesses / dirty we need to hold this lock with a validated seqno. However, the lock is reclaim tainted which makes sg_alloc_table_from_pages_segment() unusable, since it internally allocates memory. Instead build the sg-table manually. For the non-iommu case this might lead to fewer coalesces, but if that's a problem it can be fixed up later in the resource cursor code. For the iommu case, the whole sg-table may still be coalesced to a single contigous device va region. This avoids marking pages that we don't own dirty and accessed, and it also avoid dereferencing struct pages that we don't own. v2: - Use assert to check whether hmm pfns are valid (Matthew Auld) - Take into account that large pages may cross range boundaries (Matthew Auld) v3: - Don't unnecessarily check for a non-freed sg-table. (Matthew Auld) - Add a missing up_read() in an error path. (Matthew Auld) (cherry picked from commit ea3e66d280ce2576664a862693d1da8fd324c317)

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

7

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 - The vulnerable path is reached only through Intel Xe DRM ioctls (`DRM_IOCTL_XE_VM_BIND`, `DRM_IOCTL_XE_EXEC`) or GPU page faults raised by the attacker's own submitted workload, all requiring an open handle on the local `/dev/dri/renderD*` node. There is no remote or adjacent-network reachability. AC:L - The attacker controls both sides of the race — one thread issues the userptr bind/exec while another munmaps, MADV_DONTNEEDs, or migrates the same user range — and can widen the window arbitrarily by sizing the userptr range so the intervening `kvmalloc_array()` and `sg_alloc_table_from_pages_segment()` GFP_KERNEL allocations enter direct reclaim. No condition outside the attacker's influence is required. PR:L - An unprivileged local account with render-node access is sufficient; these are all DRM_RENDER_ALLOW ioctls, and render nodes are granted to ordinary logged-in desktop users, Android apps, and GPU-passthrough containers by default. No CAP_SYS_ADMIN or root is needed. UI:N - The attacker triggers the entire sequence from its own threads via ioctls and memory-management syscalls on its own address space. No action by any other user is required. S:U - The corruption occurs in kernel page/folio metadata and kernel-managed DMA mappings, within the same security authority as the vulnerable driver. Standard kernel memory corruption leading to local privilege escalation does not cross a scope boundary. C:H - This is a use-after-free on unreferenced pages: freed pages can be reallocated to other processes or the kernel and are still DMA-mapped DMA_BIDIRECTIONAL for the GPU and read via struct page dereferences, giving an attacker who grooms the reallocation a path to read memory belonging to other security contexts. I:H - `set_page_dirty_lock()` on a reallocated folio calls `mapping->a_ops->dirty_folio()` through a function pointer read from memory the driver no longer owns — a control-flow hijack primitive — and also wrongly dirties foreign page-cache folios (causing writeback of unintended data) while `mark_page_accessed()` corrupts LRU lists. Per kernel UAF guidance this yields arbitrary-write/code-execution potential. A:H - Even without full exploitation, LRU list manipulation on a freed folio, breaking another owner's page lock via `folio_unlock()`, and refcount assertions on zero-refcount pages produce list-debug BUGs, oopses, and kernel panics. Any local user with render-node access can trigger this repeatedly.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 to < 2a24c98f0e4cc994334598d4f3a851972064809d (affected · git)81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 to < f9326f529da7298a95643c3267f1c0fdb0db55eb (affected · git)81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 to < 0a98219bcc961edd3388960576e4353e123b4a51 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.19 through 6.12.* (unaffected · semver)6.13.7 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

2

Linux · cna

drm/xe/hmm: Don't dereference struct page pointers without notifier lock

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
64714328bb9b2e81908258fdba454eb37062e64d3e2fb67b6f1b9d551a2ef608
Ingested
15 Oct 2026, 23:26:24 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