{"id":"CVE-2024-26898","aliases":["CVE-2024-26898"],"related":[],"kind":"vulnerability","state":"published","title":"aoe: fix the potential use-after-free problem in aoecmd_cfg_pkts","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\naoe: fix the potential use-after-free problem in aoecmd_cfg_pkts\n\nThis patch is against CVE-2023-6270. The description of cve is:\n\n  A flaw was found in the ATA over Ethernet (AoE) driver in the Linux\n  kernel. The aoecmd_cfg_pkts() function improperly updates the refcnt on\n  `struct net_device`, and a use-after-free can be triggered by racing\n  between the free on the struct and the access through the `skbtxq`\n  global queue. This could lead to a denial of service condition or\n  potential code execution.\n\nIn aoecmd_cfg_pkts(), it always calls dev_put(ifp) when skb initial\ncode is finished. But the net_device ifp will still be used in\nlater tx()->dev_queue_xmit() in kthread. Which means that the\ndev_put(ifp) should NOT be called in the success path of skb\ninitial code in aoecmd_cfg_pkts(). Otherwise tx() may run into\nuse-after-free because the net_device is freed.\n\nThis patch removed the dev_put(ifp) in the success path in\naoecmd_cfg_pkts(), and added dev_put() after skb xmit in tx().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\naoe: fix the potential use-after-free problem in aoecmd_cfg_pkts\n\nThis patch is against CVE-2023-6270. The description of cve is:\n\n  A flaw was found in the ATA over Ethernet (AoE) driver in the Linux\n  kernel. The aoecmd_cfg_pkts() function improperly updates the refcnt on\n  `struct net_device`, and a use-after-free can be triggered by racing\n  between the free on the struct and the access through the `skbtxq`\n  global queue. This could lead to a denial of service condition or\n  potential code execution.\n\nIn aoecmd_cfg_pkts(), it always calls dev_put(ifp) when skb initial\ncode is finished. But the net_device ifp will still be used in\nlater tx()->dev_queue_xmit() in kthread. Which means that the\ndev_put(ifp) should NOT be called in the success path of skb\ninitial code in aoecmd_cfg_pkts(). Otherwise tx() may run into\nuse-after-free because the net_device is freed.\n\nThis patch removed the dev_put(ifp) in the success path in\naoecmd_cfg_pkts(), and added dev_put() after skb xmit in tx().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: aoe: soluciona el posible problema de use-after-free en aoecmd_cfg_pkts. Este parche es contra CVE-2023-6270. La descripción de cve es: Se encontró una falla en el controlador ATA sobre Ethernet (AoE) en el kernel de Linux. La función aoecmd_cfg_pkts() actualiza incorrectamente el refcnt en `struct net_device`, y se puede activar un use-after-free corriendo entre lo libre en la estructura y el acceso a través de la cola global `skbtxq`. Esto podría provocar una condición de denegación de servicio o una posible ejecución de código. En aoecmd_cfg_pkts(), siempre llama a dev_put(ifp) cuando finaliza el código inicial de skb. Pero el ifp net_device todavía se usará en tx()-&gt;dev_queue_xmit() posterior en kthread. Lo que significa que NO se debe llamar a dev_put(ifp) en la ruta exitosa del código inicial de skb en aoecmd_cfg_pkts(). De lo contrario, tx() puede ejecutar use-after-free porque el net_device está liberado. Este parche eliminó dev_put(ifp) en la ruta de éxito en aoecmd_cfg_pkts() y agregó dev_put() después de skb xmit en tx().","source":"nvd"}],"published":"2024-04-17T10:27:48.466Z","modified":"2026-10-15T01:17:30.550Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"ad80c34944d7175fa1f5c7a55066020002921a99","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"1a54aa506b3b2f31496731039e49778f54eee881","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"faf0b4c5e00bb680e8e43ac936df24d3f48c8e65","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"7dd09fa80b0765ce68bfae92f4e2f395ccf0fba4","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"74ca3ef68d2f449bc848c0a814cefc487bf755fa","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"eb48680b0255a9e8a9bdc93d6a55b11c31262e62","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"079cba4f4e307c69878226fdf5228c20aa1c969c","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"a16fbb80064634b254520a46395e36b87ca4731e","status":"affected"},{"type":"git","introduced":"7562f876cd93800f2f8c89445f2a563590b24e09","fixed":"f98364e926626c678fb4b9004b75cacf92ff0662","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.22","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.22","status":"unaffected"},{"type":"semver","introduced":"4.19.311","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.273","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.214","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.153","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.83","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.23","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.11","lastAffected":"6.7.*","status":"unaffected"},{"type":"semver","introduced":"6.8.2","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.22","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:2.6.22:-:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"git","introduced":"7562f876cd93","fixed":"ad80c34944d7","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"1a54aa506b3b","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"faf0b4c5e00b","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"7dd09fa80b07","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"74ca3ef68d2f","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"eb48680b0255","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"079cba4f4e30","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"a16fbb800646","status":"affected"},{"type":"git","introduced":"7562f876cd93","fixed":"f98364e92662","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.22","fixed":"4.19.311"},{"status":"affected","introduced":"4.20","fixed":"5.4.273"},{"status":"affected","introduced":"5.5","fixed":"5.10.214"},{"status":"affected","introduced":"5.11","fixed":"5.15.153"},{"status":"affected","introduced":"5.16","fixed":"6.1.83"},{"status":"affected","introduced":"6.2","fixed":"6.6.23"},{"status":"affected","introduced":"6.7","fixed":"6.7.11"},{"status":"affected","introduced":"6.8","fixed":"6.8.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ad80c34944d7175fa1f5c7a55066020002921a99","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a54aa506b3b2f31496731039e49778f54eee881","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/faf0b4c5e00bb680e8e43ac936df24d3f48c8e65","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7dd09fa80b0765ce68bfae92f4e2f395ccf0fba4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/74ca3ef68d2f449bc848c0a814cefc487bf755fa","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb48680b0255a9e8a9bdc93d6a55b11c31262e62","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/079cba4f4e307c69878226fdf5228c20aa1c969c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a16fbb80064634b254520a46395e36b87ca4731e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f98364e926626c678fb4b9004b75cacf92ff0662","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-06-12T16:22:28.091Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26898","url":"https://www.cve.org/CVERecord?id=CVE-2024-26898","licence":"CVE Terms of Use","modified":"2026-10-15T00:39:15.702Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26898","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26898","licence":"Public domain","modified":"2026-10-15T01:17:30.550Z"}],"updatedAt":"2026-11-25T22:58:39.388Z","epss":{"score":0.00308,"percentile":0.25451,"date":"2026-12-01T12:00:22.000Z"}}