CVE-2024-35895
Last modified
CVE-2024-35895 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Prevent lock inversion deadlock in map delete elem syzkaller started using corpuses where a BPF tracing program deletes elements from a sockmap/sockhash map. Because BPF tracing programs can be invoked from any interrupt context, locks taken during a map_delete_elem operation must be hardirq-safe. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Prevent lock inversion deadlock in map delete elem syzkaller started using corpuses where a BPF tracing program deletes elements from a sockmap/sockhash map. Because BPF tracing programs can be invoked from any interrupt context, locks taken during a map_delete_elem operation must be hardirq-safe. Otherwise a deadlock due to lock inversion is possible, as reported by lockdep: CPU0 CPU1 ---- ---- lock(&htab->buckets[i].lock); local_irq_disable(); lock(&host->lock); lock(&htab->buckets[i].lock); <Interrupt> lock(&host->lock); Locks in sockmap are hardirq-unsafe by design. We expects elements to be deleted from sockmap/sockhash only in task (normal) context with interrupts enabled, or in softirq context. Detect when map_delete_elem operation is invoked from a context which is _not_ hardirq-unsafe, that is interrupts are disabled, and bail out with an error. Note that map updates are not affected by this issue. BPF verifier does not allow updating sockmap/sockhash from a BPF tracing program today.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.20, < 5.4.274 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.215 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.154 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.85 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.26 | — |
| Linux | Linux Kernel | >= 6.7, < 6.8.5 | — |
| Linux | Linux Kernel | 6.9 | Rc1 |
| Debian | Debian Linux | 10.0 | — |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-35895?
How severe is CVE-2024-35895?
How do I fix CVE-2024-35895?
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-35889In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35890In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35891In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35892In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35893In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35894In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-35896In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2024-35897In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35898In the Linux kernel, the following vulnerability has been re…7
- CVE-2024-35899In the Linux kernel, the following vulnerability has been re…7.3
- CVE-2024-3590The LetterPress WordPress plugin through 1.2.2 does not hav…6.1
- CVE-2024-35900In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-35895?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
