CVE-2024-36962
Last modified
CVE-2024-36962 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: ks8851: Queue RX packets in IRQ handler instead of disabling BHs Currently the driver uses local_bh_disable()/local_bh_enable() in its IRQ handler to avoid triggering net_rx_action() softirq on exit from netif_rx(). The net_rx_action() could trigger this driver .start_xmit callback, which is protected by the same lock as the IRQ handler, so calling the .start_xmit from netif_rx() from the IRQ handler critical section protected by the lock could lead to an attempt to claim the already claimed lock, and a hang. The local_bh_disable()/local_bh_enable() approach works only in case the IRQ handler is protected by a spinlock, but does not work if the IRQ handler is protected by mutex, i.e. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: ks8851: Queue RX packets in IRQ handler instead of disabling BHs Currently the driver uses local_bh_disable()/local_bh_enable() in its IRQ handler to avoid triggering net_rx_action() softirq on exit from netif_rx(). The net_rx_action() could trigger this driver .start_xmit callback, which is protected by the same lock as the IRQ handler, so calling the .start_xmit from netif_rx() from the IRQ handler critical section protected by the lock could lead to an attempt to claim the already claimed lock, and a hang. The local_bh_disable()/local_bh_enable() approach works only in case the IRQ handler is protected by a spinlock, but does not work if the IRQ handler is protected by mutex, i.e. this works for KS8851 with Parallel bus interface, but not for KS8851 with SPI bus interface. Remove the BH manipulation and instead of calling netif_rx() inside the IRQ handler code protected by the lock, queue all the received SKBs in the IRQ handler into a queue first, and once the IRQ handler exits the critical section protected by the lock, dequeue all the queued SKBs and push them all into netif_rx(). At this point, it is safe to trigger the net_rx_action() softirq, since the netif_rx() call is outside of the lock that protects the IRQ handler.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.1.87, < 6.1.91 | — |
| Linux | Linux Kernel | >= 6.6.28, < 6.6.31 | — |
| Linux | Linux Kernel | >= 6.8.7, < 6.8.10 | — |
| Linux | Linux Kernel | 6.9 | Rc4 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-36962?
How severe is CVE-2024-36962?
How do I fix CVE-2024-36962?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-36957In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36958In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36959In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-3696A vulnerability was found in Campcodes House Rental Manageme…8.8
- CVE-2024-36960In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2024-36961In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36963In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-36964In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36965In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36966In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36967In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36968In the Linux kernel, the following vulnerability has been re…6.5
Are you affected by CVE-2024-36962?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
