CVE-2024-42108
Last modified
CVE-2024-42108 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: rswitch: Avoid use-after-free in rswitch_poll() The use-after-free is actually in rswitch_tx_free(), which is inlined in rswitch_poll(). Since `skb` and `gq->skbs[gq->dirty]` are in fact the same pointer, the skb is first freed using dev_kfree_skb_any(), then the value in skb->len is used to update the interface statistics. Let's move around the instructions to use skb->len before the skb is freed. This bug is trivial to reproduce using KFENCE. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: rswitch: Avoid use-after-free in rswitch_poll() The use-after-free is actually in rswitch_tx_free(), which is inlined in rswitch_poll(). Since `skb` and `gq->skbs[gq->dirty]` are in fact the same pointer, the skb is first freed using dev_kfree_skb_any(), then the value in skb->len is used to update the interface statistics. Let's move around the instructions to use skb->len before the skb is freed. This bug is trivial to reproduce using KFENCE. It will trigger a splat every few packets. A simple ARP request or ICMP echo request is enough.
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 |
|---|---|---|
| Linux | Linux Kernel | >= 6.8, < 6.9.9 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-42108?
How severe is CVE-2024-42108?
How do I fix CVE-2024-42108?
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-42102In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-42103In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42104In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-42105In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-42106In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42107In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-42109In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-4211Improper Validation of Specified Quantity in Input vulnerabi…2.4
- CVE-2024-42110In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42111In the Linux kernel, the following vulnerability has been re…6.3
- CVE-2024-42112In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-42113In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-42108?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
