{"id":"CVE-2024-42282","aliases":["CVE-2024-42282"],"related":[],"kind":"vulnerability","state":"published","title":"net: mediatek: Fix potential NULL pointer dereference in dummy net_device handling","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mediatek: Fix potential NULL pointer dereference in dummy net_device handling\n\nMove the freeing of the dummy net_device from mtk_free_dev() to\nmtk_remove().\n\nPreviously, if alloc_netdev_dummy() failed in mtk_probe(),\neth->dummy_dev would be NULL. The error path would then call\nmtk_free_dev(), which in turn called free_netdev() assuming dummy_dev\nwas allocated (but it was not), potentially causing a NULL pointer\ndereference.\n\nBy moving free_netdev() to mtk_remove(), we ensure it's only called when\nmtk_probe() has succeeded and dummy_dev is fully allocated. This\naddresses a potential NULL pointer dereference detected by Smatch[1].","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mediatek: Fix potential NULL pointer dereference in dummy net_device handling\n\nMove the freeing of the dummy net_device from mtk_free_dev() to\nmtk_remove().\n\nPreviously, if alloc_netdev_dummy() failed in mtk_probe(),\neth->dummy_dev would be NULL. The error path would then call\nmtk_free_dev(), which in turn called free_netdev() assuming dummy_dev\nwas allocated (but it was not), potentially causing a NULL pointer\ndereference.\n\nBy moving free_netdev() to mtk_remove(), we ensure it's only called when\nmtk_probe() has succeeded and dummy_dev is fully allocated. This\naddresses a potential NULL pointer dereference detected by Smatch[1].","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: mediatek: corrige la posible desreferencia del puntero NULL en el manejo del net_device ficticio. Mueva la liberación del net_device ficticio de mtk_free_dev() a mtk_remove(). Anteriormente, si alloc_netdev_dummy() fallaba en mtk_probe(), eth-&gt;dummy_dev sería NULL. La ruta de error luego llamaría a mtk_free_dev(), que a su vez llamaría a free_netdev() suponiendo que dummy_dev estuviera asignado (pero no lo estaba), causando potencialmente una desreferencia del puntero NULL. Al mover free_netdev() a mtk_remove(), nos aseguramos de que solo se llame cuando mtk_probe() haya tenido éxito y dummy_dev esté completamente asignado. Esto soluciona una posible desreferencia de puntero NULL detectada por Smatch[1].","source":"nvd"}],"published":"2024-08-17T09:08:49.145Z","modified":"2026-10-03T11:17:30.883Z","severity":{"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"},"severities":[{"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-476"],"affected":[{"ranges":[{"type":"git","introduced":"d5d57501f543f48df8b76a4af59def9a894b396f","fixed":"81e82340170ae82f8cc28e76c13a0069c0d47cb4","status":"affected"},{"type":"git","introduced":"b209bd6d0bffb8991aba568e2d9a892c86a1a43c","fixed":"af6bd5c9901b13a26eaf4d57d97a813297791596","status":"affected"},{"type":"git","introduced":"b209bd6d0bffb8991aba568e2d9a892c86a1a43c","fixed":"16f3a28cf5f876a7f3550d8f4c870a7b41bcfaef","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.10.3","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","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.10","fixed":"6.10.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/81e82340170ae82f8cc28e76c13a0069c0d47cb4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af6bd5c9901b13a26eaf4d57d97a813297791596","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16f3a28cf5f876a7f3550d8f4c870a7b41bcfaef","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:11:33.179Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42282","url":"https://www.cve.org/CVERecord?id=CVE-2024-42282","licence":"CVE Terms of Use","modified":"2026-10-03T10:55:14.155Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42282","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42282","licence":"Public domain","modified":"2026-10-03T11:17:30.883Z"}],"updatedAt":"2026-11-25T22:58:44.463Z","epss":{"score":0.00222,"percentile":0.13631,"date":"2026-12-02T12:00:21.000Z"}}