Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-21939— drm/xe/hmm: Don't dereference struct page pointers without notifier lock

CVSS 7.8 · High EPSS 0.20% · P10

Possible ATT&CK Techniques 1AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 8

VendorProductVersion RangeStatus
LinuxLinux81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3< 2a24c98f0e4cc994334598d4f3a851972064809daffected
81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3< f9326f529da7298a95643c3267f1c0fdb0db55ebaffected
81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3< 0a98219bcc961edd3388960576e4353e123b4a51affected
6.10affected
< 6.10unaffected
6.12.19≤ 6.12.*unaffected
6.13.7≤ 6.13.*unaffected
6.14≤ *unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-21939

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
drm/xe/hmm: Don't dereference struct page pointers without notifier lock
Source: CVE Program / CVE List V5
Vulnerability 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)
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未持有通知锁情况下解引用struct page指针。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 81e058a3e7fd8593d076b4f26f7b8bb49f1d61e3 ~ 2a24c98f0e4cc994334598d4f3a851972064809d -
LinuxLinux 6.10 -

II. Public POCs for CVE-2025-21939

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-21939

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-04-01 · 93 CVEs total

CVE-2025-219279.8 CRITICALnvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu()
CVE-2025-219549.8 CRITICALnetmem: prevent TX of unreadable skbs
CVE-2025-219698.8 HIGHBluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd
CVE-2025-219678.8 HIGHksmbd: fix use-after-free in ksmbd_free_work_struct
CVE-2025-219458.8 HIGHksmbd: fix use-after-free in smb2_lock
CVE-2025-219468.8 HIGHksmbd: fix out-of-bounds in parse_sec_desc()
CVE-2025-219728.8 HIGHnet: mctp: unshare packets when reassembling
CVE-2025-219558.8 HIGHksmbd: prevent connection release during oplock break notification
CVE-2025-219478.1 HIGHksmbd: fix type confusion via race condition when using ipc_msg_send_request
CVE-2025-219017.8 HIGHRDMA/bnxt_re: Add sanity checks on rdev validity
CVE-2025-219857.8 HIGHdrm/amd/display: Fix out-of-bound accesses
CVE-2025-219657.8 HIGHsched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
CVE-2025-219587.8 HIGHRevert "openvswitch: switch to per-action label counting in conntrack"
CVE-2025-219147.8 HIGHslimbus: messaging: Free transaction ID in delayed interrupt scenario
CVE-2025-219497.8 HIGHLoongArch: Set hugetlb mmap base address aligned with pmd size
CVE-2025-219197.8 HIGHsched/fair: Fix potential memory corruption in child_cfs_rq_on_list
CVE-2025-219347.8 HIGHrapidio: fix an API misues when rio_add_net() fails
CVE-2025-219237.8 HIGHHID: hid-steam: Fix use-after-free when detaching device
CVE-2025-219247.8 HIGHnet: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an e
CVE-2025-219267.8 HIGHnet: gso: fix ownership in __udp_gso_segment

Showing top 20 of 93 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-21939

No comments yet


Leave a comment