PT-2025-3333 · Linux+7 · Linux Kernel+7

Published

2024-11-01

·

Updated

2026-05-26

·

CVE-2024-56786

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.74
Description A vulnerability in the Linux kernel related to BPF links has been fixed. The issue was with the BPF link's program, which could be freed before the BPF link itself, leading to a use-after-free situation. This occurred because the BPF program was being put early, before waiting for RCU GPs to go through. To fix this, the patch defers bpf prog put() until the BPF link's deallocation is ready to be performed. This delay can cause the BPF program freeing to be delayed by one extra RCU GP, but this is considered acceptable. The vulnerability is related to the bpf link and bpf prog structures, and the bpf prog put() and bpf link dealloc() functions.
Recommendations For Linux kernel versions prior to 6.6.74, update to version 6.6.74 or later to fix the vulnerability. As a temporary workaround, consider disabling the bpf link functionality until a patch is available. Restrict access to the bpf prog structure to minimize the risk of exploitation. Avoid using the bpf prog put() function until the issue is resolved.

Fix

DoS

Use After Free

Weakness Enumeration

Related Identifiers

ALSA-2025:20518
ALT-PU-2024-17881
ALT-PU-2024-17897
BDU:2025-15365
CVE-2024-56786
ECHO-9C6E-32D2-0AE1
INFSA-2025_20518
MGASA-2025-0030
MGASA-2025-0032
RHSA-2025:20518
RHSA-2025_20518
USN-7379-1
USN-7379-2
USN-7380-1
USN-7381-1
USN-7382-1
USN-7449-1
USN-7449-2
USN-7450-1
USN-7451-1
USN-7452-1
USN-7453-1
USN-7468-1
USN-7523-1
USN-7524-1

Affected Products

Alt Linux
Almalinux
Debian
Linuxmint
Linux Kernel
Red Hat
Rocky Linux
Ubuntu