CVE-2024-58088

medium
Published 2025-11-11 · Modified 2025-11-19
CVSS v3
CVSS v2
VIR risk
5.5

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix deadlock when freeing cgroup storage The following commit bc235cdb423a ("bpf: Prevent deadlock from recursive bpf_task_storage_[get|delete]") first introduced deadlock prevention for fentry/fexit programs attaching on bpf_task_storage helpers. That commit also employed the logic in map free path in its v6 version. Later bpf_cgrp_storage was first introduced in c4bcfb38a95e ("bpf: Implement cgroup storage available to non-cgroup-attached bpf progs") which faces the same issue as bpf_task_storage, instead of its busy counter, NULL was passed to bpf_local_storage_map_free() which opened a window to cause deadlock: <TASK> (acquiring local_storage->lock) _raw_spin_lock_irqsave+0x3d/0x50 bpf_local_storage_update+0xd1/0x460 bpf_cgrp_storage_get+0x109/0x130 bpf_prog_a4d4a370ba857314_cgrp_ptr+0x139/0x170 ? __bpf_prog_enter_recur+0x16/0x80 bpf_trampoline_6442485186+0x43/0xa4 cgroup_storage_ptr+0x9/0x20 (holding local_storage->lock) bpf_selem_unlink_storage_nolock.constprop.0+0x135/0x160 bpf_selem_unlink_storage+0x6f/0x110 bpf_local_storage_map_free+0xa2/0x110 bpf_map_free_deferred+0x5b/0x90 process_one_work+0x17c/0x390 worker_thread+0x251/0x360 kthread+0xd2/0x100 ret_from_fork+0x34/0x50 ret_from_fork_asm+0x1a/0x30 </TASK> Progs: - A: SEC("fentry/cgroup_storage_ptr") - cgid (BPF_MAP_TYPE_HASH) Record the id of the cgroup the current task belonging to in this hash map, using the address of the cgroup as the map key. - cgrpa (BPF_MAP_TYPE_CGRP_STORAGE) If current task is a kworker, lookup the above hash map using function parameter @owner as the key to get its corresponding cgroup id which is then used to get a trusted pointer to the cgroup through bpf_cgroup_from_id(). This trusted pointer can then be passed to bpf_cgrp_storage_get() to finally trigger the deadlock issue. - B: SEC("tp_btf/sys_enter") - cgrpb (BPF_MAP_TYPE_CGRP_STORAGE) The only purpose of this prog is to fill Prog A's hash map by calling bpf_cgrp_storage_get() for as many userspace tasks as possible. Steps to reproduce: - Run A; - while (true) { Run B; Destroy B; } Fix this issue by passing its busy counter to the free procedure so it can be properly incremented before storage/smap locking.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: alma — https://errata.almalinux.org/9/ALSA-2025-20518.html

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2383441

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2376076

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2369184

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2363380

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2360215

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351633

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351629

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351625

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351624

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351620

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351618

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351616

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351613

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351612

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351608

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351606

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350726

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350725

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350589

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350585

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350400

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350397

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350396

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350392

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350388

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350386

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350375

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350374

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350367

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350363

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348901

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348654

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348650

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348645

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348634

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348625

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348620

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348615

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348601

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348600

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348597

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348595

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348587

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348585

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348584

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348581

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348578

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348577

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348574

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348573

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348566

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348556

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348554

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348550

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348547

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348543

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348541

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348528

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348523

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348515

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348279

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348240

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348238

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348071

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348022

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347968

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347919

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347859

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347807

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347781

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347759

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347753

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347707

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2346272

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2345240

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2344687

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2344684

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2343175

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2343172

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338832

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338828

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338814

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2337124

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2337121

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2336541

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334829

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334795

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334676

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334560

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334548

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334547

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334537

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334439

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334415

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334396

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334357

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2331326

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2330341

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2329918

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327887

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327374

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327203

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2324549

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320722

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320616

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320455

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320259

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320172

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2313092

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2312077

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2298169

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-58088

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2025:20518

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-58088.html

vendor Authored 2026-05-27

Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2025:20518

OS impact

OSVersionStatusFixed in
redhat rhel9fixed
suse slesaffected
rockylinux rocky9fixed
debian debianbookwormfixed0
debian debianbullseyefixed0
debian debianforkyfixed6.12.17-1
debian debiansidfixed6.12.17-1
debian debiantrixiefixed6.12.17-1
almalinux almalinux9fixedkernel-doc-5.14.0-611.5.1.el9_7.noarch.rpm

References

Verify integrity in audit chain (admin only). AS-IS.