CVE-2024-42108
published critical CVSS 3.1 · 9.8net: rswitch: Avoid use-after-free in rswitch_poll()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0aeec4bb6a9fc963932bf3c929bdf27d835d44e9 to < 4a41bb9f2b402469d425a1c13359d3b3ea4e6403 · 271e015b91535dd87fd0f5df0cc3b906c2eddef9 to < 92cbbe7759193e3418f38d0d73f8fe125312c58b · 271e015b91535dd87fd0f5df0cc3b906c2eddef9 to < 9a0c28efeec6383ef22e97437616b920e7320b67 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.8 (affected) · 0 to < 6.8 (unaffected · semver) · 6.9.9 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1018 | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1018 | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1018 | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1017 | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1017 | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1017 | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1015-oracle | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1015-oracle-64k | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1017-gcp | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1017-nvidia | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1017-nvidia-64k | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1018-aws | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-48-generic-64k | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-48-lowlatency-64k | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1018-aws | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1017 | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1017 | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1015-oracle | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1015-oracle-64k | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1017-gcp | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1017-nvidia | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1017-nvidia-64k | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1018-aws | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-headers-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-headers-6.8.0-48-generic-64k | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-headers-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-headers-6.8.0-48-lowlatency-64k | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-48 | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-48 | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-48 | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-image-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1015-oracle | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1015-oracle-64k | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1017-gcp | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1017-nvidia | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1017-nvidia-64k | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1018-aws | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-48-generic-64k | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-48-lowlatency-64k | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-48 | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-48 | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-48 | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-modules-6.8.0-1015-oracle | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-modules-6.8.0-1015-oracle-64k | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-modules-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1017-gcp | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1017-nvidia | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1017-nvidia-64k | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1018-aws | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-modules-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-modules-6.8.0-48-generic-64k | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-modules-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-modules-6.8.0-48-lowlatency-64k | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1015-oracle | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1015-oracle-64k | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1017-gcp | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1017-nvidia | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1018-aws | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-modules-involflt-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-modules-ipu6-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1017-nvidia | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1017-nvidia-64k | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-modules-usbio-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-nvidia-6.8 | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-nvidia-6.8-headers-6.8.0-1017 | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-nvidia-6.8-tools-6.8.0-1017 | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-oracle-6.8 | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-oracle-6.8-headers-6.8.0-1015 | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-oracle-6.8-tools-6.8.0-1015 | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-tools-6.8.0-1015-oracle | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-tools-6.8.0-1015-oracle-64k | Advisory build | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-tools-6.8.0-1017-azure | Advisory build | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1017-gcp | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1017-nvidia | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1017-nvidia-64k | Advisory build | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1018-aws | Advisory build | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu | jammy | linux-tools-6.8.0-48-generic | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-tools-6.8.0-48-generic-64k | Advisory build | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu | jammy | linux-tools-6.8.0-48-lowlatency | Advisory build | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The UAF fires on every hardware TX completion, and an unauthenticated remote host reaches it simply by sending any packet that elicits a reply (ICMP echo request, TCP SYN to a closed port, any service response) — all routable across L3, not just link-local. The fix commit itself states an ARP or ICMP echo request is sufficient to trigger it. AC:L - There is no race, no timing window, and no memory-layout precondition — `skb->len` is read unconditionally one statement after `dev_kfree_skb_any()` on every TX-completed skb, and the attacker sets the pace by sending packets. The commit reports a splat "every few packets," so even the KFENCE-guarded-slot case is hit trivially by a sustained flood. PR:N - The reply packet is generated by the kernel network stack before any application-layer authentication, so no credentials, session, or account on the target are needed. Recovering the leaked word afterwards requires only a world-readable counter in `/proc/net/dev`. UI:N - The attacker sends the packets themselves and the TX-completion NAPI poll runs autonomously; no victim login, mount, file open, or any other action is involved. S:U - The use-after-free read, the leaked freelist word, and the resulting fault all stay inside the kernel's own memory and the rswitch driver's security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - Because `skbuff_head_cache` has no ctor/RCU/poison flags, SLUB places the freelist pointer at ~offset 112 — precisely where `skb->len` sits — so the freed-memory read pulls the low 32 bits of a kernel heap pointer and adds it into `stats.tx_bytes`, which `rswitch_get_stats()` exports verbatim to `/proc/net/dev` and sysfs. Differencing the counter around a single TX completion recovers that word exactly and repeatably, giving a reliable kernel heap-address/KASLR disclosure; per kernel scoring guidance a use-after-free is High regardless. I:H - This is a use-after-free on an object in the general-purpose `skbuff_head_cache`, which per kernel scoring guidance is rated High since freed-object accesses in that cache are the standard primitive for heap grooming and control-flow corruption. Concretely, kernel-maintained interface accounting is corrupted with freed slab contents, poisoning the statistics that monitoring and traffic-accounting decisions rely on. A:H - On the many kernels shipping `CONFIG_KFENCE=y` (Android GKI, Fedora, RHEL, Ubuntu, hardened automotive builds) the freed object's page is unmapped, so the `skb->len` read page-faults into `kfence_report_error()`, which calls `check_panic_on_warn("KFENCE")` — an immediate kernel panic on the fail-fast configurations typical for an in-vehicle R-Car S4 gateway. A remote attacker can drive this indefinitely with a ping flood, and any use-after-free is rated High for availability.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0aeec4bb6a9fc963932bf3c929bdf27d835d44e9 to < 4a41bb9f2b402469d425a1c13359d3b3ea4e6403 (affected · git)271e015b91535dd87fd0f5df0cc3b906c2eddef9 to < 92cbbe7759193e3418f38d0d73f8fe125312c58b (affected · git)271e015b91535dd87fd0f5df0cc3b906c2eddef9 to < 9a0c28efeec6383ef22e97437616b920e7320b67 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.8 (affected)0 to < 6.8 (unaffected · semver)6.9.9 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
3Linux · cna
net: rswitch: Avoid use-after-free in rswitch_poll()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8abf5f981312c4722477fe8f97ef549ee8e1c74faba1a4687256c314f6c20277
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record