CVE-2024-43863

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-43863
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-43863.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-43863
Downstream
Related
Published
2024-08-20T23:45:27.756Z
Modified
2025-11-28T02:35:36.495864Z
Summary
drm/vmwgfx: Fix a deadlock in dma buf fence polling
Details

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

drm/vmwgfx: Fix a deadlock in dma buf fence polling

Introduce a version of the fence ops that on release doesn't remove the fence from the pending list, and thus doesn't require a lock to fix poll->fence wait->fence unref deadlocks.

vmwgfx overwrites the wait callback to iterate over the list of all fences and update their status, to do that it holds a lock to prevent the list modifcations from other threads. The fence destroy callback both deletes the fence and removes it from the list of pending fences, for which it holds a lock.

dma buf polling cb unrefs a fence after it's been signaled: so the poll calls the wait, which signals the fences, which are being destroyed. The destruction tries to acquire the lock on the pending fences list which it can never get because it's held by the wait from which it was called.

Old bug, but not a lot of userspace apps were using dma-buf polling interfaces. Fix those, in particular this fixes KDE stalls/deadlock.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43863.json"
}
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
2298e804e96eb3635c39519c8287befd92460303
Fixed
9908dc0d2ef0e4aec8a242c098455729c0e2f017
Fixed
9e20d028d8d1deb1e7fed18f22ffc01669cf3237
Fixed
3b933b16c996af8adb6bc1b5748a63dfb41a82bc
Fixed
a8943969f9ead2fd3044fc826140a21622ef830e
Fixed
c98ab18b9f315ff977c2c65d7c71298ef98be8e3
Fixed
e58337100721f3cc0c7424a18730e4f39844934f

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.18.0
Fixed
5.10.238
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.165
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.104
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.45
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.4