CVE-2024-35819 soc: fsl: qbman: Use raw spinlock for cgr_lock
A race condition in the Linux kernel's FSL QBMAN driver can cause a deadlock or crash when link states change on PREEMPT_RT systems.
- 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-35819?
CVE-2024-35819 is a medium-severity vulnerability in Debian Debian Linux, published on 17 May 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:
soc: fsl: qbman: Use raw spinlock for cgr_lock
smp_call_function always runs its callback in hard IRQ context, even on PREEMPT_RT, where spinlocks can sleep. So we need to use a raw spinlock for cgr_lock to ensure we aren't waiting on a sleeping task.
Although this bug has existed for a while, it was not apparent until commit ef2a8d5478b9 ("net: dpaa: Adjust queue depth on rate change") which invokes smp_call_function_single via qman_update_cgr_safe every time a link goes up or down.
Which versions are affected by CVE-2024-35819?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-35819?
Apply the vendor's patch.
Is CVE-2024-35819 being exploited?
There is no known exploitation of CVE-2024-35819 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2024-35819, DEBIAN-CVE-2024-35819, GHSA-pjwx-p5wv-785h, UBUNTU-CVE-2024-35819.