CVE-2025-40340
Last modified
CVE-2025-40340 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix oops in xe_gem_fault when running core_hotunplug test. I saw an oops in xe_gem_fault when running the xe-fast-feedback testlist against the realtime kernel without debug options enabled. The panic happens after core_hotunplug unbind-rebind finishes. Presumably what happens is that a process mmaps, unlocks because of the FAULT_FLAG_RETRY_NOWAIT logic, has no process memory left, causing ttm_bo_vm_dummy_page() to return VM_FAULT_NOPAGE, since there was nothing left to populate, and then oopses in "mem_type_is_vram(tbo->resource->mem_type)" because tbo->resource is NULL. It's convoluted, but fits the data and explains the oops after the test exits.. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix oops in xe_gem_fault when running core_hotunplug test. I saw an oops in xe_gem_fault when running the xe-fast-feedback testlist against the realtime kernel without debug options enabled. The panic happens after core_hotunplug unbind-rebind finishes. Presumably what happens is that a process mmaps, unlocks because of the FAULT_FLAG_RETRY_NOWAIT logic, has no process memory left, causing ttm_bo_vm_dummy_page() to return VM_FAULT_NOPAGE, since there was nothing left to populate, and then oopses in "mem_type_is_vram(tbo->resource->mem_type)" because tbo->resource is NULL. It's convoluted, but fits the data and explains the oops after the test exits.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= dd08ebf6c3525a7ea2186e636df064ea47281987, < 99428bd6123d5676209dfb1d7a8f176cc830b665; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < 29a3064f9c5a908aaf0b39cd6ed30374db11840d; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < 1cda3c755bb7770be07d75949bb0f45fb88651f6 |
| Linux | Linux | 6.8 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40340?
How severe is CVE-2025-40340?
How do I fix CVE-2025-40340?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40335In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40336In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40337In the Linux kernel, the following vulnerability has been re…8.2
- CVE-2025-40338In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40339In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4034A vulnerability classified as critical was found in projectw…9.8
- CVE-2025-40341In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40342In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40343In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2025-40344In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40345In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40346In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40340?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
