{"id":"CVE-2024-57844","aliases":["CVE-2024-57844"],"related":[],"kind":"vulnerability","state":"published","title":"drm/xe: Fix fault on fd close after unbind","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Fix fault on fd close after unbind\n\nIf userspace holds an fd open, unbinds the device and then closes it,\nthe driver shouldn't try to access the hardware. Protect it by using\ndrm_dev_enter()/drm_dev_exit(). This fixes the following page fault:\n\n<6> [IGT] xe_wedged: exiting, ret=98\n<1> BUG: unable to handle page fault for address: ffffc901bc5e508c\n<1> #PF: supervisor read access in kernel mode\n<1> #PF: error_code(0x0000) - not-present page\n...\n<4>   xe_lrc_update_timestamp+0x1c/0xd0 [xe]\n<4>   xe_exec_queue_update_run_ticks+0x50/0xb0 [xe]\n<4>   xe_exec_queue_fini+0x16/0xb0 [xe]\n<4>   __guc_exec_queue_fini_async+0xc4/0x190 [xe]\n<4>   guc_exec_queue_fini_async+0xa0/0xe0 [xe]\n<4>   guc_exec_queue_fini+0x23/0x40 [xe]\n<4>   xe_exec_queue_destroy+0xb3/0xf0 [xe]\n<4>   xe_file_close+0xd4/0x1a0 [xe]\n<4>   drm_file_free+0x210/0x280 [drm]\n<4>   drm_close_helper.isra.0+0x6d/0x80 [drm]\n<4>   drm_release_noglobal+0x20/0x90 [drm]\n\n(cherry picked from commit 4ca1fd418338d4d135428a0eb1e16e3b3ce17ee8)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Fix fault on fd close after unbind\n\nIf userspace holds an fd open, unbinds the device and then closes it,\nthe driver shouldn't try to access the hardware. Protect it by using\ndrm_dev_enter()/drm_dev_exit(). This fixes the following page fault:\n\n<6> [IGT] xe_wedged: exiting, ret=98\n<1> BUG: unable to handle page fault for address: ffffc901bc5e508c\n<1> #PF: supervisor read access in kernel mode\n<1> #PF: error_code(0x0000) - not-present page\n...\n<4>   xe_lrc_update_timestamp+0x1c/0xd0 [xe]\n<4>   xe_exec_queue_update_run_ticks+0x50/0xb0 [xe]\n<4>   xe_exec_queue_fini+0x16/0xb0 [xe]\n<4>   __guc_exec_queue_fini_async+0xc4/0x190 [xe]\n<4>   guc_exec_queue_fini_async+0xa0/0xe0 [xe]\n<4>   guc_exec_queue_fini+0x23/0x40 [xe]\n<4>   xe_exec_queue_destroy+0xb3/0xf0 [xe]\n<4>   xe_file_close+0xd4/0x1a0 [xe]\n<4>   drm_file_free+0x210/0x280 [drm]\n<4>   drm_close_helper.isra.0+0x6d/0x80 [drm]\n<4>   drm_release_noglobal+0x20/0x90 [drm]\n\n(cherry picked from commit 4ca1fd418338d4d135428a0eb1e16e3b3ce17ee8)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/xe: Se corrige un error en el cierre de fd después de desvincular Si el espacio de usuario mantiene abierto un fd, desvincula el dispositivo y luego lo cierra, el controlador no debería intentar acceder al hardware. Protéjalo usando drm_dev_enter()/drm_dev_exit(). Esto corrige el siguiente error de página: &lt;6&gt; [IGT] xe_wedged: saliendo, ret=98 &lt;1&gt; ERROR: no se puede gestionar el error de página para la dirección: ffffc901bc5e508c &lt;1&gt; #PF: acceso de lectura del supervisor en modo kernel &lt;1&gt; #PF: error_code(0x0000) - not-present page ... &lt;4&gt; xe_lrc_update_timestamp+0x1c/0xd0 [xe] &lt;4&gt; xe_exec_queue_update_run_ticks+0x50/0xb0 [xe] &lt;4&gt; xe_exec_queue_fini+0x16/0xb0 [xe] &lt;4&gt; __guc_exec_queue_fini_async+0xc4/0x190 [xe] &lt;4&gt; guc_exec_queue_fini_async+0xa0/0xe0 [xe] &lt;4&gt; guc_exec_queue_fini+0x23/0x40 [xe] &lt;4&gt; xe_exec_queue_destroy+0xb3/0xf0 [xe] &lt;4&gt; xe_file_close+0xd4/0x1a0 [xe] &lt;4&gt; drm_file_free+0x210/0x280 [drm] &lt;4&gt; drm_close_helper.isra.0+0x6d/0x80 [drm] &lt;4&gt; drm_release_noglobal+0x20/0x90 [drm] (seleccionado de el commit 4ca1fd418338d4d135428a0eb1e16e3b3ce17ee8)","source":"nvd"}],"published":"2025-01-15T13:10:27.820Z","modified":"2026-06-17T08:14:06.123Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"514447a1219021298329ce586536598c3b4b2dc0","fixed":"924d43bd10a1f6723ac5181a6e6cc2196ba98cdd","status":"affected"},{"type":"git","introduced":"514447a1219021298329ce586536598c3b4b2dc0","fixed":"fe39b222a4139354d32ff9d46b88757f63f71d63","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.9","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.1","fixed":"6.12.9"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/924d43bd10a1f6723ac5181a6e6cc2196ba98cdd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe39b222a4139354d32ff9d46b88757f63f71d63","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-57844","url":"https://www.cve.org/CVERecord?id=CVE-2024-57844","licence":"CVE Terms of Use","modified":"2026-05-11T20:59:26.943Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-57844","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57844","licence":"Public domain","modified":"2026-06-17T08:14:06.123Z"}],"updatedAt":"2026-11-25T22:58:51.051Z","epss":{"score":0.00187,"percentile":0.08721,"date":"2026-12-01T12:00:22.000Z"}}