{"id":"CVE-2024-42282","published":"2024-08-17T09:08:49Z","modified":"2026-10-03T10:55:14Z","title":"net: mediatek: Fix potential NULL pointer dereference in dummy net_device handling","vendor":"Linux","product":"Linux","tier":"tail","description":{"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].","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00222,"percentile":0.13049,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/81e82340170ae82f8cc28e76c13a0069c0d47cb4","tags":[]},{"url":"https://git.kernel.org/stable/c/af6bd5c9901b13a26eaf4d57d97a813297791596","tags":[]},{"url":"https://git.kernel.org/stable/c/16f3a28cf5f876a7f3550d8f4c870a7b41bcfaef","tags":[]}],"priority":{"score":2.6,"factors":[{"name":"EPSS percentile","points":2.61}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d5d57501f543f48df8b76a4af59def9a894b396f, < 81e82340170ae82f8cc28e76c13a0069c0d47cb4",">= b209bd6d0bffb8991aba568e2d9a892c86a1a43c, < af6bd5c9901b13a26eaf4d57d97a813297791596",">= b209bd6d0bffb8991aba568e2d9a892c86a1a43c, < 16f3a28cf5f876a7f3550d8f4c870a7b41bcfaef"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:11:33.179796Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39505","exploited":false,"provenance":"source"}}