{"id":"CVE-2024-49982","aliases":["CVE-2024-49982"],"related":[],"kind":"vulnerability","state":"published","title":"aoe: fix the potential use-after-free problem in more places","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\naoe: fix the potential use-after-free problem in more places\n\nFor fixing CVE-2023-6270, f98364e92662 (\"aoe: fix the potential\nuse-after-free problem in aoecmd_cfg_pkts\") makes tx() calling dev_put()\ninstead of doing in aoecmd_cfg_pkts(). It avoids that the tx() runs\ninto use-after-free.\n\nThen Nicolai Stange found more places in aoe have potential use-after-free\nproblem with tx(). e.g. revalidate(), aoecmd_ata_rw(), resend(), probe()\nand aoecmd_cfg_rsp(). Those functions also use aoenet_xmit() to push\npacket to tx queue. So they should also use dev_hold() to increase the\nrefcnt of skb->dev.\n\nOn the other hand, moving dev_put() to tx() causes that the refcnt of\nskb->dev be reduced to a negative value, because corresponding\ndev_hold() are not called in revalidate(), aoecmd_ata_rw(), resend(),\nprobe(), and aoecmd_cfg_rsp(). This patch fixed this issue.","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 more places\n\nFor fixing CVE-2023-6270, f98364e92662 (\"aoe: fix the potential\nuse-after-free problem in aoecmd_cfg_pkts\") makes tx() calling dev_put()\ninstead of doing in aoecmd_cfg_pkts(). It avoids that the tx() runs\ninto use-after-free.\n\nThen Nicolai Stange found more places in aoe have potential use-after-free\nproblem with tx(). e.g. revalidate(), aoecmd_ata_rw(), resend(), probe()\nand aoecmd_cfg_rsp(). Those functions also use aoenet_xmit() to push\npacket to tx queue. So they should also use dev_hold() to increase the\nrefcnt of skb->dev.\n\nOn the other hand, moving dev_put() to tx() causes that the refcnt of\nskb->dev be reduced to a negative value, because corresponding\ndev_hold() are not called in revalidate(), aoecmd_ata_rw(), resend(),\nprobe(), and aoecmd_cfg_rsp(). This patch fixed this issue.","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 más lugares Para solucionar CVE-2023-6270, f98364e92662 (\"aoe: soluciona el posible problema de use-after-free en aoecmd_cfg_pkts\") hace que tx() llame a dev_put() en lugar de hacerlo en aoecmd_cfg_pkts(). Esto evita que tx() se ejecute en use-after-free. Luego, Nicolai Stange encontró que más lugares en aoe tienen un posible problema de use-after-free con tx(). Por ejemplo, revalidate(), aoecmd_ata_rw(), resend(), probe() y aoecmd_cfg_rsp(). Esas funciones también usan aoenet_xmit() para enviar paquetes a la cola de tx. Por lo tanto, también deberían usar dev_hold() para aumentar el refcnt de skb-&gt;dev. Por otra parte, mover dev_put() a tx() hace que el refcnt de skb-&gt;dev se reduzca a un valor negativo, porque los dev_hold() correspondientes no se llaman en revalidate(), aoecmd_ata_rw(), resend(), probe() y aoecmd_cfg_rsp(). Este parche solucionó este problema.","source":"nvd"}],"published":"2024-10-21T18:02:27.820Z","modified":"2026-10-15T01:19:03.173Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"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":"ad80c34944d7175fa1f5c7a55066020002921a99","fixed":"12f7b89dd72b25da4eeaa22097877963cad6418e","status":"affected"},{"type":"git","introduced":"1a54aa506b3b2f31496731039e49778f54eee881","fixed":"a786265aecf39015418e4f930cc1c14603a01490","status":"affected"},{"type":"git","introduced":"faf0b4c5e00bb680e8e43ac936df24d3f48c8e65","fixed":"f63461af2c1a86af4217910e47a5c46e3372e645","status":"affected"},{"type":"git","introduced":"7dd09fa80b0765ce68bfae92f4e2f395ccf0fba4","fixed":"07b418d50ccbbca7e5d87a3a0d41d436cefebf79","status":"affected"},{"type":"git","introduced":"74ca3ef68d2f449bc848c0a814cefc487bf755fa","fixed":"bc2cbf7525ac288e07d465f5a1d8cb8fb9599254","status":"affected"},{"type":"git","introduced":"eb48680b0255a9e8a9bdc93d6a55b11c31262e62","fixed":"acc5103a0a8c200a52af7d732c36a8477436a3d3","status":"affected"},{"type":"git","introduced":"f98364e926626c678fb4b9004b75cacf92ff0662","fixed":"89d9a69ae0c667e4d9d028028e2dcc837bae626f","status":"affected"},{"type":"git","introduced":"f98364e926626c678fb4b9004b75cacf92ff0662","fixed":"8253a60c89ec35c8f36fb2cc08cdf854c7a3eb58","status":"affected"},{"type":"git","introduced":"f98364e926626c678fb4b9004b75cacf92ff0662","fixed":"6d6e54fc71ad1ab0a87047fd9c211e75d86084a3","status":"affected"},{"type":"git","version":"079cba4f4e307c69878226fdf5228c20aa1c969c","status":"affected"},{"type":"git","version":"a16fbb80064634b254520a46395e36b87ca4731e","status":"affected"},{"type":"semver","introduced":"4.19.311","fixed":"4.19.323","status":"affected"},{"type":"semver","introduced":"5.4.273","fixed":"5.4.285","status":"affected"},{"type":"semver","introduced":"5.10.214","fixed":"5.10.227","status":"affected"},{"type":"semver","introduced":"5.15.153","fixed":"5.15.168","status":"affected"},{"type":"semver","introduced":"6.1.83","fixed":"6.1.113","status":"affected"},{"type":"semver","introduced":"6.6.23","fixed":"6.6.55","status":"affected"},{"type":"semver","introduced":"6.7.11","fixed":"6.8","status":"affected"},{"type":"semver","introduced":"6.8.2","fixed":"6.9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"4.19.323","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.285","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.227","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.55","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.14","lastAffected":"6.10.*","status":"unaffected"},{"type":"semver","introduced":"6.11.3","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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":"5.10.214","fixed":"5.10.227"},{"status":"affected","introduced":"5.15.153","fixed":"5.15.168"},{"status":"affected","introduced":"6.1.83","fixed":"6.1.113"},{"status":"affected","introduced":"6.6.23","fixed":"6.6.55"},{"status":"affected","introduced":"6.7.11","fixed":"6.8.2"},{"status":"affected","introduced":"6.9","fixed":"6.10.14"},{"status":"affected","introduced":"6.11","fixed":"6.11.3"},{"status":"affected","version":"4.19.311"},{"status":"affected","version":"5.4.273"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/12f7b89dd72b25da4eeaa22097877963cad6418e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a786265aecf39015418e4f930cc1c14603a01490","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f63461af2c1a86af4217910e47a5c46e3372e645","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07b418d50ccbbca7e5d87a3a0d41d436cefebf79","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc2cbf7525ac288e07d465f5a1d8cb8fb9599254","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/acc5103a0a8c200a52af7d732c36a8477436a3d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89d9a69ae0c667e4d9d028028e2dcc837bae626f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8253a60c89ec35c8f36fb2cc08cdf854c7a3eb58","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d6e54fc71ad1ab0a87047fd9c211e75d86084a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"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-355557.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:32:22.974Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49982","url":"https://www.cve.org/CVERecord?id=CVE-2024-49982","licence":"CVE Terms of Use","modified":"2026-10-15T00:55:30.968Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49982","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49982","licence":"Public domain","modified":"2026-10-15T01:19:03.173Z"}],"updatedAt":"2026-11-25T22:58:47.076Z","epss":{"score":0.00381,"percentile":0.34232,"date":"2026-12-01T12:00:22.000Z"}}