CVE-2022-50862
kernel: bpf: prevent decl_tag from being referenced in func_proto
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 30, 2025
Updated · July 22, 2026
Description
A flaw was found in the Linux kernel's BPF BTF (BPF Type Format) validation. The BTF parser allows a func_proto type to reference a decl_tag as its return type, which is invalid. When btf_type_id_size() encounters this unexpected type, it triggers a kernel warning. This can be exploited via the bpf() syscall to cause denial of service.
Statement
Loading BPF programs typically requires CAP_BPF or CAP_SYS_ADMIN capabilities in modern kernels, which limits exploitation to privileged users. The flaw results in a kernel warning rather than a crash in most configurations, though repeated triggering could impact system stability.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-1287 · Improper Validation of Specified Type of Input