{"id":"CVE-2024-50186","aliases":["CVE-2024-50186"],"related":[],"kind":"vulnerability","state":"published","title":"net: explicitly clear the sk pointer, when pf->create fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: explicitly clear the sk pointer, when pf->create fails\n\nWe have recently noticed the exact same KASAN splat as in commit\n6cd4a78d962b (\"net: do not leave a dangling sk pointer, when socket\ncreation fails\"). The problem is that commit did not fully address the\nproblem, as some pf->create implementations do not use sk_common_release\nin their error paths.\n\nFor example, we can use the same reproducer as in the above commit, but\nchanging ping to arping. arping uses AF_PACKET socket and if packet_create\nfails, it will just sk_free the allocated sk object.\n\nWhile we could chase all the pf->create implementations and make sure they\nNULL the freed sk object on error from the socket, we can't guarantee\nfuture protocols will not make the same mistake.\n\nSo it is easier to just explicitly NULL the sk pointer upon return from\npf->create in __sock_create. We do know that pf->create always releases the\nallocated sk object on error, so if the pointer is not NULL, it is\ndefinitely dangling.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: explicitly clear the sk pointer, when pf->create fails\n\nWe have recently noticed the exact same KASAN splat as in commit\n6cd4a78d962b (\"net: do not leave a dangling sk pointer, when socket\ncreation fails\"). The problem is that commit did not fully address the\nproblem, as some pf->create implementations do not use sk_common_release\nin their error paths.\n\nFor example, we can use the same reproducer as in the above commit, but\nchanging ping to arping. arping uses AF_PACKET socket and if packet_create\nfails, it will just sk_free the allocated sk object.\n\nWhile we could chase all the pf->create implementations and make sure they\nNULL the freed sk object on error from the socket, we can't guarantee\nfuture protocols will not make the same mistake.\n\nSo it is easier to just explicitly NULL the sk pointer upon return from\npf->create in __sock_create. We do know that pf->create always releases the\nallocated sk object on error, so if the pointer is not NULL, it is\ndefinitely dangling.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: borrar explícitamente el puntero sk, cuando pf-&gt;create falla Recientemente hemos notado exactamente el mismo splat de KASAN que en el commit 6cd4a78d962b (\"net: no deje un puntero sk colgando, cuando falla la creación del socket\"). El problema es que el commit no solucionó completamente el problema, ya que algunas implementaciones de pf-&gt;create no usan sk_common_release en sus rutas de error. Por ejemplo, podemos usar el mismo reproductor que en el commit anterior, pero cambiando ping a arping. arping usa el socket AF_PACKET y si packet_create falla, solo sk_free el objeto sk asignado. Si bien podríamos perseguir todas las implementaciones de pf-&gt;create y asegurarnos de que anulen el objeto sk liberado en caso de error del socket, no podemos garantizar que los protocolos futuros no cometan el mismo error. Por lo tanto, es más fácil simplemente convertir explícitamente en NULL el puntero sk al regresar de pf-&gt;create en __sock_create. Sabemos que pf-&gt;create siempre libera el objeto sk asignado en caso de error, por lo que si el puntero no es NULL, definitivamente está colgado.","source":"nvd"}],"published":"2024-11-08T05:38:27.272Z","modified":"2026-08-05T11:42:21.793Z","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: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-416"],"affected":[{"ranges":[{"type":"git","introduced":"78e4aa528a7b1204219d808310524344f627d069","fixed":"daf462ff3cde6ecf22b98d9ae770232c10d28de2","status":"affected"},{"type":"git","introduced":"893eeba94c40d513cd0fe6539330ebdaea208c0e","fixed":"b7d22a79ff4e962b8af5ffe623abd1d6c179eb9f","status":"affected"},{"type":"git","introduced":"454c454ed645fed051216b79622f7cb69c1638f5","fixed":"563e6892e21d6ecabdf62103fc4e7b326d212334","status":"affected"},{"type":"git","introduced":"6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2","fixed":"8e1b72fd74bf9da3b099d09857f4e7f114f38e12","status":"affected"},{"type":"git","introduced":"6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2","fixed":"631083143315d1b192bd7d915b967b37819e88ea","status":"affected"},{"type":"git","version":"5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9","status":"affected"},{"type":"semver","introduced":"5.15.162","fixed":"5.15.168","status":"affected"},{"type":"semver","introduced":"6.1.96","fixed":"6.1.113","status":"affected"},{"type":"semver","introduced":"6.6.36","fixed":"6.6.57","status":"affected"},{"type":"semver","introduced":"6.9.7","fixed":"6.10","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":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.57","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.4","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.15.162","fixed":"5.15.168"},{"status":"affected","introduced":"6.1.96","fixed":"6.1.113"},{"status":"affected","introduced":"6.6.36","fixed":"6.6.57"},{"status":"affected","introduced":"6.9.7","fixed":"6.10"},{"status":"affected","introduced":"6.10","fixed":"6.11.4"},{"status":"affected","version":"6.12"},{"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/daf462ff3cde6ecf22b98d9ae770232c10d28de2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7d22a79ff4e962b8af5ffe623abd1d6c179eb9f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/563e6892e21d6ecabdf62103fc4e7b326d212334","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e1b72fd74bf9da3b099d09857f4e7f114f38e12","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/631083143315d1b192bd7d915b967b37819e88ea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T20:18:35.923Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50186","url":"https://www.cve.org/CVERecord?id=CVE-2024-50186","licence":"CVE Terms of Use","modified":"2026-08-05T11:42:21.793Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50186","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50186","licence":"Public domain","modified":"2026-06-17T08:03:49.093Z"}],"updatedAt":"2026-11-25T22:58:47.905Z","epss":{"score":0.00322,"percentile":0.17626,"date":"2026-11-30T12:00:22.000Z"}}