CVE Database›Document archive›CVE-2024-45020

CVE-2024-45020

kernel: bpf: Fix a kernel verifier crash in stacksafe()

Loading…

Severity

Moderate

Red Hat Product Security

6

CVSS 3.1

Review impact separately from score.

Published · September 11, 2024

Updated · October 29, 2026

Description

A flaw was found in the Linux kernel. A local attacker with specific privileges could trigger an invalid memory access within the BPF (Berkeley Packet Filter) verifier's stacksafe() function. This out-of-bounds access could lead to a kernel crash, resulting in a Denial of Service (DoS) for the system.

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

To mitigate this issue, restrict the ability to load unprivileged BPF programs. This can be achieved by setting the kernel.unprivileged_bpf_disabled sysctl parameter to 1. To apply this change immediately: echo 1 > /proc/sys/kernel/unprivileged_bpf_disabled For persistent configuration across reboots, add kernel.unprivileged_bpf_disabled = 1 to a file like /etc/sysctl.d/99-disable-unprivileged-bpf.conf and apply with sysctl -p. Disabling unprivileged BPF may impact applications that depend on this feature. A system reboot may be required for the change to take full effect.

CVSS / CWE

CVSS 3.1 · 6
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H

CWE-125 · Out-of-bounds Read