# CVE-2024-50260: sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()

- Severity: Medium 4.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2024-11-09T10:15:13.271Z
- Modified: 2026-06-17T08:04:02.240Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()

The following race condition could trigger a NULL pointer dereference:

sock_map_link_detach():		sock_map_link_update_prog():
   mutex_lock(&sockmap_mutex);
   ...
   sockmap_link->map = NULL;
   mutex_unlock(&sockmap_mutex);
   				   mutex_lock(&sockmap_mutex);
				   ...
				   sock_map_prog_link_lookup(sockmap_link->map);
				   mutex_unlock(&sockmap_mutex);
   <continue>

Fix it by adding a NULL pointer check. In this specific case, it makes
no sense to update a link which is being released.

(As written by CVE List.)

## Affected

- Linux Linux: from 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 before 9afe35fdda16e09d5bd3c49a68ba8c680dd678bd; from 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 before 740be3b9a6d73336f8c7d540842d0831dc7a808b; 6.10 (not affected: before 6.10; from 6.11.7 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.10 before 6.11.7; 6.12

## Every score

- CISA-ADP: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/9afe35fdda16e09d5bd3c49a68ba8c680dd678bd> (patch)
- <https://git.kernel.org/stable/c/740be3b9a6d73336f8c7d540842d0831dc7a808b> (patch)

## Sources

- CVE List: [CVE-2024-50260](https://www.cve.org/CVERecord?id=CVE-2024-50260), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50260](https://nvd.nist.gov/vuln/detail/CVE-2024-50260), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50260 · Whole record: https://cve.day/CVE-2024-50260.json · Rebuilt by cve.day 2026-11-25T22:58:47.984Z
