{"id":"CVE-2025-40340","aliases":["CVE-2025-40340"],"related":[],"kind":"vulnerability","state":"published","title":"drm/xe: Fix oops in xe_gem_fault when running core_hotunplug test.","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Fix oops in xe_gem_fault when running core_hotunplug test.\n\nI saw an oops in xe_gem_fault when running the xe-fast-feedback\ntestlist against the realtime kernel without debug options enabled.\n\nThe panic happens after core_hotunplug unbind-rebind finishes.\nPresumably what happens is that a process mmaps, unlocks because\nof the FAULT_FLAG_RETRY_NOWAIT logic, has no process memory left,\ncausing ttm_bo_vm_dummy_page() to return VM_FAULT_NOPAGE, since\nthere was nothing left to populate, and then oopses in\n\"mem_type_is_vram(tbo->resource->mem_type)\" because tbo->resource\nis NULL.\n\nIt's convoluted, but fits the data and explains the oops after\nthe test exits.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Fix oops in xe_gem_fault when running core_hotunplug test.\n\nI saw an oops in xe_gem_fault when running the xe-fast-feedback\ntestlist against the realtime kernel without debug options enabled.\n\nThe panic happens after core_hotunplug unbind-rebind finishes.\nPresumably what happens is that a process mmaps, unlocks because\nof the FAULT_FLAG_RETRY_NOWAIT logic, has no process memory left,\ncausing ttm_bo_vm_dummy_page() to return VM_FAULT_NOPAGE, since\nthere was nothing left to populate, and then oopses in\n\"mem_type_is_vram(tbo->resource->mem_type)\" because tbo->resource\nis NULL.\n\nIt's convoluted, but fits the data and explains the oops after\nthe test exits.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/xe: Corrección de un oops en xe_gem_fault al ejecutar la prueba core_hotunplug.\n\nVi un oops en xe_gem_fault al ejecutar la lista de pruebas xe-fast-feedback contra el kernel en tiempo real sin las opciones de depuración habilitadas.\n\nEl pánico ocurre después de que finaliza el desvinculado-revínculo de core_hotunplug. Presumiblemente lo que sucede es que un proceso mapea memoria (mmaps), desbloquea debido a la lógica FAULT_FLAG_RETRY_NOWAIT, no le queda memoria de proceso, haciendo que ttm_bo_vm_dummy_page() devuelva VM_FAULT_NOPAGE, ya que no quedaba nada por poblar, y luego ocurre un oops en 'mem_type_is_vram(tbo -> resource -> mem_type)' porque tbo -> resource es NULL.\n\nEs enrevesado, pero encaja con los datos y explica el oops después de que la prueba finaliza.","source":"nvd"}],"published":"2025-12-09T04:09:57.059Z","modified":"2026-10-14T22:10:00.210Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dd08ebf6c3525a7ea2186e636df064ea47281987","fixed":"99428bd6123d5676209dfb1d7a8f176cc830b665","status":"affected"},{"type":"git","introduced":"dd08ebf6c3525a7ea2186e636df064ea47281987","fixed":"29a3064f9c5a908aaf0b39cd6ed30374db11840d","status":"affected"},{"type":"git","introduced":"dd08ebf6c3525a7ea2186e636df064ea47281987","fixed":"1cda3c755bb7770be07d75949bb0f45fb88651f6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/99428bd6123d5676209dfb1d7a8f176cc830b665","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/29a3064f9c5a908aaf0b39cd6ed30374db11840d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1cda3c755bb7770be07d75949bb0f45fb88651f6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40340","url":"https://www.cve.org/CVERecord?id=CVE-2025-40340","licence":"CVE Terms of Use","modified":"2026-05-11T21:47:28.456Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40340","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40340","licence":"Public domain","modified":"2026-10-14T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:08.475Z","epss":{"score":0.00235,"percentile":0.15439,"date":"2026-12-01T12:00:22.000Z"}}