# CVE-2024-50123: bpf: Add the missing BPF_LINK_TYPE invocation for sockmap

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-11-05T17:10:51.799Z
- Modified: 2026-08-05T11:41:48.825Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

bpf: Add the missing BPF_LINK_TYPE invocation for sockmap

There is an out-of-bounds read in bpf_link_show_fdinfo() for the sockmap
link fd. Fix it by adding the missing BPF_LINK_TYPE invocation for
sockmap link

Also add comments for bpf_link_type to prevent missing updates in the
future.

(As written by CVE List.)

## Affected

- Linux Linux: from 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 before 6d79f12c0ce2bc8ff5f109093df1734bd6450615; from 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 before c2f803052bc7a7feb2e03befccc8e49b6ff1f5f5; 6.10 (not affected: before 6.10; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.10 before 6.11.6; 6.12

## Every score

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

## References

- <https://git.kernel.org/stable/c/6d79f12c0ce2bc8ff5f109093df1734bd6450615> (patch)
- <https://git.kernel.org/stable/c/c2f803052bc7a7feb2e03befccc8e49b6ff1f5f5> (patch)

## Sources

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

---

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