First published: Tue Jul 30 2024(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | >=6.8<6.9.9 | |
debian/linux | 5.10.223-1 5.10.226-1 6.1.123-1 6.1.128-1 6.12.12-1 6.12.15-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-42108 is classified as a high-severity vulnerability due to the potential for use-after-free exploits.
To fix CVE-2024-42108, update your Linux kernel to at least version 5.10.223-1 or any later patched version.
CVE-2024-42108 affects various versions of the Linux kernel, specifically between 6.8 and 6.9.9.
If exploited, CVE-2024-42108 could lead to system crashes or potentially allow for remote code execution.
Yes, users should upgrade to linux package versions 5.10.223-1 or 5.10.226-1 or higher to mitigate the risk.