CVE-2025-37761 json
drm/xe: Fix an out-of-bounds shift when invalidating TLB
published 2025-05-01 18 mo ago modified 2026-10-15 24 d ago also EUVD-2025-13052
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 11%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Fix an out-of-bounds shift when invalidating TLB
When the size of the range invalidated is larger than rounddown_pow_of_two(ULONG_MAX), The function macro roundup_pow_of_two(length) will hit an out-of-bounds shift [1].
Use a full TLB invalidation for such cases. v2: - Use a define for the range size limit over which we use a full TLB invalidation. (Lucas) - Use a better calculation of the limit.
[1]: [ 39.202421] ------------[ cut here ]------------ [ 39.202657] UBSAN: shift-out-of-bounds in ./include/linux/log2.h:57:13 [ 39.202673] shift exponent 64 is too large for 64-bit type 'long unsigned int' [ 39.202688] CPU: 8 UID: 0 PID: 3129 Comm: xe_exec_system_ Tainted: G U 6.14.0+ #10 [ 39.202690] Tainted: [U]=USER [ 39.202690] Hardware name: ASUS System Product Name/PRIME B560M-A AC, BIOS 2001 02/01/2023 [ 39.202691] Call Trace: [ 39.202692] <TASK> [ 39.202695] dump_stack_lvl+0x6e/0xa0 [ 39.202699] ubsan_epilogue+0x5/0x30 [ 39.202701] __ubsan_handle_shift_out_of_bounds.cold+0x61/0xe6 [ 39.202705] xe_gt_tlb_invalidation_range.cold+0x1d/0x3a [xe] [ 39.202800] ? find_held_lock+0x2b/0x80 [ 39.202803] ? mark_held_locks+0x40/0x70 [ 39.202806] xe_svm_invalidate+0x459/0x700 [xe] [ 39.202897] drm_gpusvm_notifier_invalidate+0x4d/0x70 [drm_gpusvm] [ 39.202900] __mmu_notifier_release+0x1f5/0x270 [ 39.202905] exit_mmap+0x40e/0x450 [ 39.202912] __mmput+0x45/0x110 [ 39.202914] exit_mm+0xc5/0x130 [ 39.202916] do_exit+0x21c/0x500 [ 39.202918] ? lockdep_hardirqs_on_prepare+0xdb/0x190 [ 39.202920] do_group_exit+0x36/0xa0 [ 39.202922] get_signal+0x8f8/0x900 [ 39.202926] arch_do_signal_or_restart+0x35/0x100 [ 39.202930] syscall_exit_to_user_mode+0x1fc/0x290 [ 39.202932] do_syscall_64+0xa1/0x180 [ 39.202934] ? do_user_addr_fault+0x59f/0x8a0 [ 39.202937] ? lock_release+0xd2/0x2a0 [ 39.202939] ? do_user_addr_fault+0x5a9/0x8a0 [ 39.202942] ? trace_hardirqs_off+0x4b/0xc0 [ 39.202944] ? clear_bhb_loop+0x25/0x80 [ 39.202946] ? clear_bhb_loop+0x25/0x80 [ 39.202947] ? clear_bhb_loop+0x25/0x80 [ 39.202950] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 39.202952] RIP: 0033:0x7fa945e543e1 [ 39.202961] Code: Unable to access opcode bytes at 0x7fa945e543b7. [ 39.202962] RSP: 002b:00007ffca8fb4170 EFLAGS: 00000293 [ 39.202963] RAX: 000000000000003d RBX: 0000000000000000 RCX: 00007fa945e543e3 [ 39.202964] RDX: 0000000000000000 RSI: 00007ffca8fb41ac RDI: 00000000ffffffff [ 39.202964] RBP: 00007ffca8fb4190 R08: 0000000000000000 R09: 00007fa945f600a0 [ 39.202965] R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 [ 39.202966] R13: 00007fa9460dd310 R14: 00007ffca8fb41ac R15: 0000000000000000 [ 39.202970] </TASK> [ 39.202970] ---[ end trace ]---
(cherry picked from commit b88f48f86500bc0b44b4f73ac66d500a40d320ad)
Patch / fix
- Linux Linux 6.12.25, 6.14.4, 6.15
- linux Debian 14, Debian 13 6.12.25-1
debian advisories DEBIAN-CVE-2025-37761
- linux Ubuntu 24.04 LTS 6.8.0-100.100
- linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
- linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1044.44
- linux-azure Ubuntu 24.04 LTS 6.8.0-1046.52
- linux-gkeop Ubuntu 24.04 LTS 6.8.0-1030.33
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1047.51
ubuntu advisories UBUNTU-CVE-2025-37761
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
- rv enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
- perf enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
- rtla enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
- libperf enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
- kernel-rt enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
- kernel-64k enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
- kernel-core enterprise linux eus 10.0 6.12.0-55.55.1.el10_0
red hat advisories RHSA-2026:1236RHSA-2026:1194
- kernel-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-syms-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-source-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.6.1
- kernel-syms SLE Module for Development Tools 15 SP7 6.4.0-150700.53.6.1
- kernel-source SLE Module for Development Tools 15 SP7, SLE Module for Basesystem 15 SP7 6.4.0-150700.53.6.1
- kernel-default SLE Workstation Extension 15 SP7, SLE Module for Legacy 15 SP7, SLE Module for Basesystem 15 SP7 +2 more 6.4.0-150700.53.6.1
- kernel-zfcpdump SLE Module for Basesystem 15 SP7 6.4.0-150700.53.6.1
suse advisories SUSE-SU-2025:02333-1SUSE-SU-2025:02307-1SUSE-SU-2025:02254-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-37761 updated cvss 7.1
kernel: Linux kernel drm/xe: Out-of-bounds shift in TLB invalidation
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 more Red Hat Enterprise Linux 10 kernelaffected: no fix available
-
Red Hat CodeReady Linux Builder EUS (v.9.6) libperf 5.14.0-570.81.1.el9_6, kernel-debuginfo-common-s390x 5.14.0-570.81.1.el9_6, kernel-debuginfo-common-x86_64 5.14.0-570.81.1.el9_6, kernel-debuginfo-common-aarch64 5.14.0-570.81.1.el9_6, kernel-debuginfo-common-ppc64le 5.14.0-570.81.1.el9_6fixed: vendor fix RHSA-2026:1194
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) rv 6.12.0-55.55.1.el10_0, perf 6.12.0-55.55.1.el10_0, rtla 6.12.0-55.55.1.el10_0, python3-perf 6.12.0-55.55.1.el10_0, kernel-devel-matched 6.12.0-55.55.1.el10_0, kernel-64k-devel-matched 6.12.0-55.55.1.el10_0, +7 morefixed: vendor fix RHSA-2026:1236
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) rv 5.14.0-570.81.1.el9_6, perf 5.14.0-570.81.1.el9_6, rtla 5.14.0-570.81.1.el9_6, python3-perf 5.14.0-570.81.1.el9_6, kernel-devel-matched 5.14.0-570.81.1.el9_6, kernel-64k-devel-matched 5.14.0-570.81.1.el9_6, +7 morefixed: vendor fix RHSA-2026:1194
-
Red Hat Enterprise Linux BaseOS EUS (v. 10.0) kernel 6.12.0-55.55.1.el10_0, kernel-64k 6.12.0-55.55.1.el10_0, kernel-core 6.12.0-55.55.1.el10_0, kernel-tools 6.12.0-55.55.1.el10_0, kernel-modules 6.12.0-55.55.1.el10_0, kernel-64k-core 6.12.0-55.55.1.el10_0, +27 morefixed: vendor fix RHSA-2026:1236
-
Red Hat Enterprise Linux BaseOS EUS (v.9.6) kernel 5.14.0-570.81.1.el9_6, kernel-64k 5.14.0-570.81.1.el9_6, kernel-core 5.14.0-570.81.1.el9_6, kernel-tools 5.14.0-570.81.1.el9_6, kernel-modules 5.14.0-570.81.1.el9_6, kernel-64k-core 5.14.0-570.81.1.el9_6, +27 morefixed: vendor fix RHSA-2026:1194
-
Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) libperf 6.12.0-55.55.1.el10_0, kernel-debuginfo-common-s390x 6.12.0-55.55.1.el10_0, kernel-debuginfo-common-x86_64 6.12.0-55.55.1.el10_0, kernel-debuginfo-common-aarch64 6.12.0-55.55.1.el10_0, kernel-debuginfo-common-ppc64le 6.12.0-55.55.1.el10_0 Red Hat Enterprise Linux Real Time EUS (v. 10.0) kernel-rt 6.12.0-55.55.1.el10_0, kernel-rt-64k 6.12.0-55.55.1.el10_0, kernel-rt-core 6.12.0-55.55.1.el10_0, kernel-rt-modules 6.12.0-55.55.1.el10_0, kernel-rt-64k-core 6.12.0-55.55.1.el10_0, kernel-rt-debug-core 6.12.0-55.55.1.el10_0, +14 morefixed: vendor fix RHSA-2026:1236
-
Red Hat Enterprise Linux Real Time EUS (v.9.6) kernel-rt 5.14.0-570.81.1.el9_6, kernel-rt-64k 5.14.0-570.81.1.el9_6, kernel-rt-core 5.14.0-570.81.1.el9_6, kernel-rt-modules 5.14.0-570.81.1.el9_6, kernel-rt-64k-core 5.14.0-570.81.1.el9_6, kernel-rt-debug-core 5.14.0-570.81.1.el9_6, +14 morefixed: vendor fix RHSA-2026:1194
show 3 moreshow fewer
-
Red Hat Enterprise Linux Real Time for NFV EUS (v. 10.0) kernel-rt 6.12.0-55.55.1.el10_0, kernel-rt-kvm 6.12.0-55.55.1.el10_0, kernel-rt-core 6.12.0-55.55.1.el10_0, kernel-rt-modules 6.12.0-55.55.1.el10_0, kernel-rt-debug-kvm 6.12.0-55.55.1.el10_0, kernel-rt-debug-core 6.12.0-55.55.1.el10_0, +6 morefixed: vendor fix RHSA-2026:1236
-
Red Hat Enterprise Linux Real Time for NFV EUS (v.9.6) kernel-rt 5.14.0-570.81.1.el9_6, kernel-rt-kvm 5.14.0-570.81.1.el9_6, kernel-rt-core 5.14.0-570.81.1.el9_6, kernel-rt-modules 5.14.0-570.81.1.el9_6, kernel-rt-debug-kvm 5.14.0-570.81.1.el9_6, kernel-rt-debug-core 5.14.0-570.81.1.el9_6, +6 morefixed: vendor fix RHSA-2026:1194
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-selftests-internalnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 24 d ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
Sources
- CVE List CVE-2025-37761
- NVD CVE-2025-37761
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.