CVE-2024-43863

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

State
Published
Severity
Not scored
Published
Aug 20, 2024
Updated
May 11, 2026
Reserved
Aug 17, 2024

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2298e804e96eb3635c39519c8287befd92460303 to before 9908dc0d2ef0e4aec8a242c098455729c0e2f017Affected
  • 2298e804e96eb3635c39519c8287befd92460303 to before 9e20d028d8d1deb1e7fed18f22ffc01669cf3237Affected
  • 2298e804e96eb3635c39519c8287befd92460303 to before 3b933b16c996af8adb6bc1b5748a63dfb41a82bcAffected
  • 2298e804e96eb3635c39519c8287befd92460303 to before a8943969f9ead2fd3044fc826140a21622ef830eAffected
  • 2298e804e96eb3635c39519c8287befd92460303 to before c98ab18b9f315ff977c2c65d7c71298ef98be8e3Affected
  • 2298e804e96eb3635c39519c8287befd92460303 to before e58337100721f3cc0c7424a18730e4f39844934fAffected
LinuxLinux
  • 3.18Affected
  • before 3.18Not affected
  • 5.10.238 through 5.10.*Not affected
  • 5.15.165 through 5.15.*Not affected
  • 6.1.104 through 6.1.*Not affected
  • 6.6.45 through 6.6.*Not affected
  • 6.10.4 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.