CVE-2024-53099

bpf: Check validity of link->type in bpf_link_show_fdinfo()

State
Published
Severity
7.1 High
Published
Nov 25, 2024
Updated
Aug 5, 2026
Reserved
Nov 19, 2024

Read the record on cve.org

Description

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

bpf: Check validity of link->type in bpf_link_show_fdinfo()

If a newly-added link type doesn't invoke BPF_LINK_TYPE(), accessing bpf_link_type_strs[link->type] may result in an out-of-bounds access.

To spot such missed invocations early in the future, checking the validity of link->type in bpf_link_show_fdinfo() and emitting a warning when such invocations are missed.

Scores

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

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 70ed506c3bbcfa846d4636b23051ca79fa4781f7 to before 79f87a6ec39fb5968049a6775a528bf58b25c20aAffected
  • 70ed506c3bbcfa846d4636b23051ca79fa4781f7 to before 24fec234d2ba9ca3c14e545ebe3fd6dcb47f074dAffected
  • 70ed506c3bbcfa846d4636b23051ca79fa4781f7 to before 4e8074bb33d18f56af30a0252cb3606d27eb1c13Affected
  • 70ed506c3bbcfa846d4636b23051ca79fa4781f7 to before d5092b0a1aaf35d77ebd8d33384d7930bec5cb5dAffected
  • 70ed506c3bbcfa846d4636b23051ca79fa4781f7 to before b3eb1b6a9f745d6941b345f0fae014dc8bb06d36Affected
  • 70ed506c3bbcfa846d4636b23051ca79fa4781f7 to before 8421d4c8762bd022cb491f2f0f7019ef51b4f0a7Affected
LinuxLinux
  • 5.7Affected
  • before 5.7Not affected
  • 5.10.233 through 5.10.*Not affected
  • 5.15.176 through 5.15.*Not affected
  • 6.1.123 through 6.1.*Not affected
  • 6.6.62 through 6.6.*Not affected
  • 6.11.9 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.