PT-2025-11004 · Linux+8 · Linux Kernel+8

Abel Wu

·

Published

2025-01-30

·

Updated

2026-04-20

·

CVE-2024-58088

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 (affected versions not specified)
Description: A deadlock issue has been resolved in the Linux kernel related to the bpf (Berkeley Packet Filter) functionality, specifically when freeing cgroup storage. This issue was introduced by a commit that aimed to prevent deadlocks for fentry/fexit programs attaching on bpf task storage helpers but inadvertently created a window for deadlocks when using bpf cgrp storage. The problem arises when NULL is passed to bpf local storage map free(), leading to a potential deadlock situation. Two example programs (A and B) are provided to demonstrate how this issue can be triggered, involving the use of bpf cgrp storage get() and bpf local storage map free() functions.
Recommendations: To resolve this issue, pass the busy counter to the free procedure so it can be properly incremented before storage/smap locking. As a temporary workaround, consider disabling the bpf cgrp storage get() function until a patch is available. Restrict access to the bpf local storage map free() function to minimize the risk of exploitation. Avoid using the cgrpa and cgrpb maps in the affected API endpoints until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Locking

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025:20095
ALSA-2025:20518
ALT-PU-2025-12647
ALT-PU-2025-4807
AZL-58562
BDU:2025-12267
CVE-2024-58088
INFSA-2025_20518
MGASA-2025-0111
MGASA-2025-0112
OESA-2025-1446
OESA-2025-1450
OPENSUSE-SU-2025_01614-1
OPENSUSE-SU-2025_01707-1
RHSA-2025:20095
RHSA-2025:20518
RHSA-2025_20518
SUSE-SU-2025:01614-1
SUSE-SU-2025:01707-1
SUSE-SU-2025:01919-1
SUSE-SU-2025:01951-1
SUSE-SU-2025:01964-1
SUSE-SU-2025:01967-1
SUSE-SU-2025:20343-1
SUSE-SU-2025:20344-1
SUSE-SU-2025:20354-1
SUSE-SU-2025:20355-1
SUSE-SU-2025_01614-1
SUSE-SU-2025_01707-1
SUSE-SU-2025_01951-1
SUSE-SU-2025_01964-1
SUSE-SU-2025_01967-1
USN-7521-1
USN-7521-2
USN-7521-3
USN-7703-1
USN-7703-2
USN-7703-3
USN-7703-4
USN-7719-1
USN-7737-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Linuxmint
Linux Kernel
Red Hat
Rocky Linux
Suse
Ubuntu