{"id":"CVE-2024-53213","aliases":["CVE-2024-53213"],"related":[],"kind":"vulnerability","state":"published","title":"net: usb: lan78xx: Fix double free issue with interrupt buffer allocation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: lan78xx: Fix double free issue with interrupt buffer allocation\n\nIn lan78xx_probe(), the buffer `buf` was being freed twice: once\nimplicitly through `usb_free_urb(dev->urb_intr)` with the\n`URB_FREE_BUFFER` flag and again explicitly by `kfree(buf)`. This caused\na double free issue.\n\nTo resolve this, reordered `kmalloc()` and `usb_alloc_urb()` calls to\nsimplify the initialization sequence and removed the redundant\n`kfree(buf)`.  Now, `buf` is allocated after `usb_alloc_urb()`, ensuring\nit is correctly managed by  `usb_fill_int_urb()` and freed by\n`usb_free_urb()` as intended.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: lan78xx: Fix double free issue with interrupt buffer allocation\n\nIn lan78xx_probe(), the buffer `buf` was being freed twice: once\nimplicitly through `usb_free_urb(dev->urb_intr)` with the\n`URB_FREE_BUFFER` flag and again explicitly by `kfree(buf)`. This caused\na double free issue.\n\nTo resolve this, reordered `kmalloc()` and `usb_alloc_urb()` calls to\nsimplify the initialization sequence and removed the redundant\n`kfree(buf)`.  Now, `buf` is allocated after `usb_alloc_urb()`, ensuring\nit is correctly managed by  `usb_fill_int_urb()` and freed by\n`usb_free_urb()` as intended.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: usb: lan78xx: Se soluciona el problema de doble liberación con la asignación de búfer de interrupción En lan78xx_probe(), el búfer `buf` se liberaba dos veces: una vez implícitamente a través de `usb_free_urb(dev-&gt;urb_intr)` con el indicador `URB_FREE_BUFFER` y otra vez explícitamente por `kfree(buf)`. Esto causaba un problema de doble liberación. Para resolver esto, reordenamos las llamadas `kmalloc()` y `usb_alloc_urb()` para simplificar la secuencia de inicialización y eliminamos el `kfree(buf)` redundante. Ahora, `buf` se asigna después de `usb_alloc_urb()`, lo que garantiza que `usb_fill_int_urb()` lo administre correctamente y que `usb_free_urb()` lo libere como estaba previsto.","source":"nvd"}],"published":"2024-12-27T13:49:58.709Z","modified":"2026-06-17T08:08:36.397Z","severity":{"scorer":"CISA-ADP","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":"CISA-ADP","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":"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-415"],"affected":[{"ranges":[{"type":"git","introduced":"3281ebb3dc5ef19507e65523e9f8c00e20b285ca","fixed":"cc5aa8e3ad69dcedeba79e667d4a2efb72a305af","status":"affected"},{"type":"git","introduced":"dcafa5a8452738eb28085f559b0683d55e22b2f5","fixed":"2970ef2fce90c661952ec2b451b0276d5f8d6180","status":"affected"},{"type":"git","introduced":"a6df95cae40bee555e01a37b4023ce8e97ffa249","fixed":"977128343fc2a30737399b58df8ea77e94f164bd","status":"affected"},{"type":"git","introduced":"a6df95cae40bee555e01a37b4023ce8e97ffa249","fixed":"a422ebec863d99d5607fb41bb7af3347fcb436d3","status":"affected"},{"type":"git","introduced":"a6df95cae40bee555e01a37b4023ce8e97ffa249","fixed":"b09512aea6223eec756f52aa584fc29eeab57480","status":"affected"},{"type":"git","introduced":"a6df95cae40bee555e01a37b4023ce8e97ffa249","fixed":"7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40","status":"affected"},{"type":"git","introduced":"a6df95cae40bee555e01a37b4023ce8e97ffa249","fixed":"03819abbeb11117dcbba40bfe322b88c0c88a6b6","status":"affected"},{"type":"semver","introduced":"5.10.252","fixed":"5.10.258","status":"affected"},{"type":"semver","introduced":"5.15.202","fixed":"5.15.209","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.120","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.64","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.11","lastAffected":"6.11.*","status":"unaffected"},{"type":"semver","introduced":"6.12.2","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","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.17","fixed":"6.1.120"},{"status":"affected","introduced":"6.2","fixed":"6.6.64"},{"status":"affected","introduced":"6.7","fixed":"6.11.11"},{"status":"affected","introduced":"6.12","fixed":"6.12.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/cc5aa8e3ad69dcedeba79e667d4a2efb72a305af","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2970ef2fce90c661952ec2b451b0276d5f8d6180","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/977128343fc2a30737399b58df8ea77e94f164bd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a422ebec863d99d5607fb41bb7af3347fcb436d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b09512aea6223eec756f52aa584fc29eeab57480","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ac9f3c981eeceee2ec4d30d850f4a6f50a1ec40","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03819abbeb11117dcbba40bfe322b88c0c88a6b6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T20:03:36.748Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53213","url":"https://www.cve.org/CVERecord?id=CVE-2024-53213","licence":"CVE Terms of Use","modified":"2026-06-01T16:04:48.226Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53213","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53213","licence":"Public domain","modified":"2026-06-17T08:08:36.397Z"}],"updatedAt":"2026-11-25T22:58:50.420Z","epss":{"score":0.00231,"percentile":0.14932,"date":"2026-12-01T12:00:22.000Z"}}