CVE-2024-57844

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57844
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57844.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-57844
Downstream
Published
2025-01-15T13:10:27Z
Modified
2025-10-17T19:51:47.196396Z
Summary
drm/xe: Fix fault on fd close after unbind
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/xe: Fix fault on fd close after unbind

If userspace holds an fd open, unbinds the device and then closes it, the driver shouldn't try to access the hardware. Protect it by using drmdeventer()/drmdevexit(). This fixes the following page fault:

<6> [IGT] xewedged: exiting, ret=98 <1> BUG: unable to handle page fault for address: ffffc901bc5e508c <1> #PF: supervisor read access in kernel mode <1> #PF: errorcode(0x0000) - not-present page ... <4> xelrcupdatetimestamp+0x1c/0xd0 [xe] <4> xeexecqueueupdaterunticks+0x50/0xb0 [xe] <4> xeexecqueuefini+0x16/0xb0 [xe] <4> _gucexecqueuefiniasync+0xc4/0x190 [xe] <4> gucexecqueuefiniasync+0xa0/0xe0 [xe] <4> gucexecqueuefini+0x23/0x40 [xe] <4> xeexecqueuedestroy+0xb3/0xf0 [xe] <4> xefileclose+0xd4/0x1a0 [xe] <4> drmfilefree+0x210/0x280 [drm] <4> drmclosehelper.isra.0+0x6d/0x80 [drm] <4> drmreleasenoglobal+0x20/0x90 [drm]

(cherry picked from commit 4ca1fd418338d4d135428a0eb1e16e3b3ce17ee8)

References

Affected packages

Git / 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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
514447a1219021298329ce586536598c3b4b2dc0
Fixed
fe39b222a4139354d32ff9d46b88757f63f71d63

Affected versions

v6.*

v6.12
v6.12-rc7
v6.12.1
v6.12.2
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.9