CVE-2024-42108net: rswitch: Avoid use-after-free in rswitch_poll()
- 9.8CriticalCVSS base score
- 0.63%Exploitation in 30 daysEPSS · top 49% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 1 day later
· 1 day later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.63% · top 49% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
- affected 0aeec4bb6a9fc963932bf3c929bdf27d835d44e9 – < 4a41bb9f2b402469d425a1c13359d3b3ea4e6403
- affected 271e015b91535dd87fd0f5df0cc3b906c2eddef9 – < 92cbbe7759193e3418f38d0d73f8fe125312c58b
- affected 271e015b91535dd87fd0f5df0cc3b906c2eddef9 – < 9a0c28efeec6383ef22e97437616b920e7320b67
- affected 6.8
- unaffected < 6.8
- unaffected 6.9.9 – ≤ 6.9.*
- unaffected 6.10 – ≤ *
References
References3
- https://git.kernel.org/stable/c/4a41bb9f2b402469d425a1c13359d3b3ea4e6403 (opens in a new tab)
- https://git.kernel.org/stable/c/92cbbe7759193e3418f38d0d73f8fe125312c58b (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/9a0c28efeec6383ef22e97437616b920e7320b67 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-39940 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-42108)Record last updated .