{"id":"CVE-2024-42108","aliases":["CVE-2024-42108"],"related":[],"kind":"vulnerability","state":"published","title":"net: rswitch: Avoid use-after-free in rswitch_poll()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rswitch: Avoid use-after-free in rswitch_poll()\n\nThe use-after-free is actually in rswitch_tx_free(), which is inlined in\nrswitch_poll(). Since `skb` and `gq->skbs[gq->dirty]` are in fact the\nsame pointer, the skb is first freed using dev_kfree_skb_any(), then the\nvalue in skb->len is used to update the interface statistics.\n\nLet's move around the instructions to use skb->len before the skb is\nfreed.\n\nThis bug is trivial to reproduce using KFENCE. It will trigger a splat\nevery few packets. A simple ARP request or ICMP echo request is enough.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rswitch: Avoid use-after-free in rswitch_poll()\n\nThe use-after-free is actually in rswitch_tx_free(), which is inlined in\nrswitch_poll(). Since `skb` and `gq->skbs[gq->dirty]` are in fact the\nsame pointer, the skb is first freed using dev_kfree_skb_any(), then the\nvalue in skb->len is used to update the interface statistics.\n\nLet's move around the instructions to use skb->len before the skb is\nfreed.\n\nThis bug is trivial to reproduce using KFENCE. It will trigger a splat\nevery few packets. A simple ARP request or ICMP echo request is enough.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: rswitch: Evite el use after free en rswitch_poll() El use after free está en realidad en rswitch_tx_free(), que está incluido en rswitch_poll(). Dado que `skb` y `gq-&gt;skbs[gq-&gt;dirty]` son de hecho el mismo puntero, el skb primero se libera usando dev_kfree_skb_any(), luego el valor en skb-&gt;len se usa para actualizar las estadísticas de la interfaz. Avancemos por las instrucciones para usar skb-&gt;len antes de liberar el skb. Este error es trivial de reproducir usando KFENCE. Activará un sonido cada pocos paquetes. Una simple solicitud ARP o una solicitud de eco ICMP es suficiente.","source":"nvd"}],"published":"2024-07-30T07:46:03.517Z","modified":"2026-08-05T11:35:40.063Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"0aeec4bb6a9fc963932bf3c929bdf27d835d44e9","fixed":"4a41bb9f2b402469d425a1c13359d3b3ea4e6403","status":"affected"},{"type":"git","introduced":"271e015b91535dd87fd0f5df0cc3b906c2eddef9","fixed":"92cbbe7759193e3418f38d0d73f8fe125312c58b","status":"affected"},{"type":"git","introduced":"271e015b91535dd87fd0f5df0cc3b906c2eddef9","fixed":"9a0c28efeec6383ef22e97437616b920e7320b67","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.9.9","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.8","fixed":"6.9.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4a41bb9f2b402469d425a1c13359d3b3ea4e6403","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92cbbe7759193e3418f38d0d73f8fe125312c58b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a0c28efeec6383ef22e97437616b920e7320b67","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:17:39.409Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42108","url":"https://www.cve.org/CVERecord?id=CVE-2024-42108","licence":"CVE Terms of Use","modified":"2026-08-05T11:35:40.063Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42108","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42108","licence":"Public domain","modified":"2026-08-04T11:19:34.667Z"}],"updatedAt":"2026-11-25T22:58:43.400Z","epss":{"score":0.00631,"percentile":0.51593,"date":"2026-12-01T12:00:22.000Z"}}