{"id":"CVE-2024-57844","summary":"drm/xe: Fix fault on fd close after unbind","details":"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\u003c6\u003e [IGT] xe_wedged: exiting, ret=98\n\u003c1\u003e BUG: unable to handle page fault for address: ffffc901bc5e508c\n\u003c1\u003e #PF: supervisor read access in kernel mode\n\u003c1\u003e #PF: error_code(0x0000) - not-present page\n...\n\u003c4\u003e   xe_lrc_update_timestamp+0x1c/0xd0 [xe]\n\u003c4\u003e   xe_exec_queue_update_run_ticks+0x50/0xb0 [xe]\n\u003c4\u003e   xe_exec_queue_fini+0x16/0xb0 [xe]\n\u003c4\u003e   __guc_exec_queue_fini_async+0xc4/0x190 [xe]\n\u003c4\u003e   guc_exec_queue_fini_async+0xa0/0xe0 [xe]\n\u003c4\u003e   guc_exec_queue_fini+0x23/0x40 [xe]\n\u003c4\u003e   xe_exec_queue_destroy+0xb3/0xf0 [xe]\n\u003c4\u003e   xe_file_close+0xd4/0x1a0 [xe]\n\u003c4\u003e   drm_file_free+0x210/0x280 [drm]\n\u003c4\u003e   drm_close_helper.isra.0+0x6d/0x80 [drm]\n\u003c4\u003e   drm_release_noglobal+0x20/0x90 [drm]\n\n(cherry picked from commit 4ca1fd418338d4d135428a0eb1e16e3b3ce17ee8)","modified":"2026-05-18T05:59:05.649909761Z","published":"2025-01-15T13:10:27.820Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57844.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/924d43bd10a1f6723ac5181a6e6cc2196ba98cdd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe39b222a4139354d32ff9d46b88757f63f71d63"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57844.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57844"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"514447a1219021298329ce586536598c3b4b2dc0"},{"fixed":"924d43bd10a1f6723ac5181a6e6cc2196ba98cdd"},{"fixed":"fe39b222a4139354d32ff9d46b88757f63f71d63"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57844.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.0"},{"fixed":"6.12.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57844.json"}}],"schema_version":"1.7.5"}