CVE-2024-38780 dma-buf/sw-sync: don't enable IRQ from sync_print_obj()
A locking inconsistency in the Linux kernel's sw-sync driver can trigger a lockdep warning and potential system instability or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-38780?
CVE-2024-38780 is a medium-severity vulnerability in Linux kernel, published on 21 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
dma-buf/sw-sync: don't enable IRQ from sync_print_obj()
Since commit a6aa8fca4d79 ("dma-buf/sw-sync: Reduce irqsave/irqrestore from known context") by error replaced spin_unlock_irqrestore() with spin_unlock_irq() for both sync_debugfs_show() and sync_print_obj() despite sync_print_obj() is called from sync_debugfs_show(), lockdep complains inconsistent lock state warning.
Use plain spin_{lock,unlock}() for sync_print_obj(), for sync_debugfs_show() is already using spin_{lock,unlock}_irq().
Weakness: CWE-667
Which versions are affected by CVE-2024-38780?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-38780?
Apply the vendor's patch.
Is CVE-2024-38780 being exploited?
There is no known exploitation of CVE-2024-38780 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-42819, AZL-42835, BELL-CVE-2024-38780, DEBIAN-CVE-2024-38780, GHSA-rh96-4px7-3vm8, UBUNTU-CVE-2024-38780.