PT-2024-36975 · Linux+5 · Linux Kernel+5

Syzbot

·

Published

2024-12-08

·

Updated

2026-05-26

·

CVE-2024-56665

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.74
Description The issue is related to an invalid access to prog array in perf event detach bpf prog. A crash occurs when a tracepoint perf event with attr.inherit=1 is created, attached to a process, and a bpf program is set to it. When the attached process forks, the new child event shares the parent's bpf program and tp event, which is global for tracepoint. Upon exiting both the process and its child, the first perf event detach bpf prog call releases tp event->prog array, and the second call crashes because tp event->prog array is NULL. The fix ensures that perf event detach bpf prog checks if prog array is valid before attempting to remove the bpf program from it.
Recommendations To resolve the issue, update the Linux kernel to version 6.6.74 or later. As a temporary workaround, consider disabling the perf event detach bpf prog function until a patch is available. Restrict access to the vulnerable tp event module to minimize the risk of exploitation. Avoid using the prog array variable in the affected perf event detach bpf prog function until the issue is resolved.

Exploit

Fix

Improper Resource Release

Weakness Enumeration

Related Identifiers

ALT-PU-2024-17881
ALT-PU-2025-3496
AZL-54770
AZL-55306
BDU:2025-07855
CVE-2024-56665
DLA-4076-1
MGASA-2025-0030
MGASA-2025-0032
OESA-2025-1032
OESA-2025-1036
OPENSUSE-SU-2025_0428-1
OPENSUSE-SU-2025_0499-1
OPENSUSE-SU-2025_0557-1
SUSE-SU-2025:0428-1
SUSE-SU-2025:0499-1
SUSE-SU-2025:0557-1
SUSE-SU-2025:0564-1
SUSE-SU-2025:20165-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20248-1
SUSE-SU-2025:20249-1
SUSE-SU-2025_0428-1
SUSE-SU-2025_0499-1
SUSE-SU-2025_0557-1
USN-7379-1
USN-7379-2
USN-7380-1
USN-7381-1
USN-7382-1
USN-7513-1
USN-7513-2
USN-7513-3
USN-7513-4
USN-7513-5
USN-7514-1
USN-7515-1
USN-7515-2
USN-7522-1

Affected Products

Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Suse
Ubuntu