CVE-2024-42108: net: rswitch: Avoid use-after-free in rswitch_poll()

Published Jul 30, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: rswitch: Avoid use-after-free in rswitchpoll()

The use-after-free is actually in rswitchtxfree(), which is inlined in rswitchpoll(). Since skb and gq->skbs[gq->dirty] are in fact the same pointer, the skb is first freed using devkfreeskbany(), 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.

Affected Software

2 affected componentsFixes available
Linux Linux kernel>=6.8<6.9.9
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1

Event History

Jul 30, 2024
CVE Published
via MITRE·07:46 AM
Data Sourced
via MITRE·07:46 AM
DescriptionSeverity
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 23, 2025
Data Sourced
via Ubuntu·12:31 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-42108?

CVE-2024-42108 is classified as a high-severity vulnerability due to the potential for use-after-free exploits.

2

How do I fix CVE-2024-42108?

To fix CVE-2024-42108, update your Linux kernel to at least version 5.10.223-1 or any later patched version.

3

Which systems are affected by CVE-2024-42108?

CVE-2024-42108 affects various versions of the Linux kernel, specifically between 6.8 and 6.9.9.

4

What could happen if CVE-2024-42108 is exploited?

If exploited, CVE-2024-42108 could lead to system crashes or potentially allow for remote code execution.

5

Is there a specific package version to address CVE-2024-42108?

Yes, users should upgrade to linux package versions 5.10.223-1 or 5.10.226-1 or higher to mitigate the risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203