{"id":"CVE-2024-50260","summary":"sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsock_map: fix a NULL pointer dereference in sock_map_link_update_prog()\n\nThe following race condition could trigger a NULL pointer dereference:\n\nsock_map_link_detach():\t\tsock_map_link_update_prog():\n   mutex_lock(&sockmap_mutex);\n   ...\n   sockmap_link-\u003emap = NULL;\n   mutex_unlock(&sockmap_mutex);\n   \t\t\t\t   mutex_lock(&sockmap_mutex);\n\t\t\t\t   ...\n\t\t\t\t   sock_map_prog_link_lookup(sockmap_link-\u003emap);\n\t\t\t\t   mutex_unlock(&sockmap_mutex);\n   \u003ccontinue\u003e\n\nFix it by adding a NULL pointer check. In this specific case, it makes\nno sense to update a link which is being released.","modified":"2026-03-20T12:39:39.382184Z","published":"2024-11-09T10:15:13.271Z","related":["USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50260.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/740be3b9a6d73336f8c7d540842d0831dc7a808b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9afe35fdda16e09d5bd3c49a68ba8c680dd678bd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50260.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50260"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"699c23f02c65cbfc3e638f14ce0d70c23a2e1f02"},{"fixed":"9afe35fdda16e09d5bd3c49a68ba8c680dd678bd"},{"fixed":"740be3b9a6d73336f8c7d540842d0831dc7a808b"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50260.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}