Menu

Star on GitHub · 3.2k

CVE-2024-58070

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: bpf: bpf_local_storage: Always use bpf_mem_alloc in PREEMPT_RT In PREEMPT_RT, kmalloc(GFP_ATOMIC) is still not safe in non pree…

Published Mar 6, 2025CWE-667EPSS 0.15%

Overview

CVE-2024-58070 is a high-severity vulnerability. It was published on March 6, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

bpf: bpf_local_storage: Always use bpf_mem_alloc in PREEMPT_RT

In PREEMPT_RT, kmalloc(GFP_ATOMIC) is still not safe in non preemptible

context. bpf_mem_alloc must be used in PREEMPT_RT. This patch is

to enforce bpf_mem_alloc in the bpf_local_storage when CONFIG_PREEMPT_RT

is enabled.

[ 35.118559] BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48

[ 35.118566] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1832, name: test_progs

[ 35.118569] preempt_count: 1, expected: 0

[ 35.118571] RCU nest depth: 1, expected: 1

[ 35.118577] INFO: lockdep is turned off.

...

[ 35.118647] __might_resched+0x433/0x5b0

[ 35.118677] rt_spin_lock+0xc3/0x290

[ 35.118700] ___slab_alloc+0x72/0xc40

[ 35.118723] __kmalloc_noprof+0x13f/0x4e0

[ 35.118732] bpf_map_kzalloc+0xe5/0x220

[ 35.118740] bpf_selem_alloc+0x1d2/0x7b0

[ 35.118755] bpf_local_storage_update+0x2fa/0x8

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-58070?

CVE-2024-58070 is a high-severity vulnerability. It was published on March 6, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-58070?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-58070?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-58070?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-58070 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all