CVE-2024-50123

bpf: Add the missing BPF_LINK_TYPE invocation for sockmap

State
Published
Severity
7.1 High
Published
Nov 5, 2024
Updated
Aug 5, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 to before 6d79f12c0ce2bc8ff5f109093df1734bd6450615Affected
  • 699c23f02c65cbfc3e638f14ce0d70c23a2e1f02 to before c2f803052bc7a7feb2e03befccc8e49b6ff1f5f5Affected
LinuxLinux
  • 6.10Affected
  • before 6.10Not affected
  • 6.11.6 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.