Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-58070— bpf: bpf_local_storage: Always use bpf_mem_alloc in PREEMPT_RT

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于在PREEMPT_RT环境中未使用bpf_mem_alloc,可能导致内存分配失败。

CVSS 7.8 · High EPSS 0.15% · P4

Affected Version Matrix 10

VendorProduct Version RangeStatus
Linux Linux 08a7ce384e33e53e0732c500a8af67a73f8fceca< 3392fa605d7c5708c5fbe02e4fbdac547c3b7352 affected
08a7ce384e33e53e0732c500a8af67a73f8fceca< b0027500000dfcb8ee952557d565064cea22c43e affected
08a7ce384e33e53e0732c500a8af67a73f8fceca< c1d398a3af7e59d7fef351c84fed7ebb575d1f1a affected
08a7ce384e33e53e0732c500a8af67a73f8fceca< 8eef6ac4d70eb1f0099fff93321d90ce8fa49ee1 affected
6.4 affected
< 6.4 unaffected
6.6.76≤ 6.6.* unaffected
6.12.13≤ 6.12.* unaffected
… +2 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-58070

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
bpf: bpf_local_storage: Always use bpf_mem_alloc in PREEMPT_RT
Source: CVE Program / CVE List V5
Vulnerability 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/0x8b0 [ 35.118784] bpf_sk_storage_get_tracing+0x15a/0x1d0 [ 35.118791] bpf_prog_9a118d86fca78ebb_trace_inet_sock_set_state+0x44/0x66 [ 35.118795] bpf_trace_run3+0x222/0x400 [ 35.118820] __bpf_trace_inet_sock_set_state+0x11/0x20 [ 35.118824] trace_inet_sock_set_state+0x112/0x130 [ 35.118830] inet_sk_state_store+0x41/0x90 [ 35.118836] tcp_set_state+0x3b3/0x640 There is no need to adjust the gfp_flags passing to the bpf_mem_cache_alloc_flags() which only honors the GFP_KERNEL. The verifier has ensured GFP_KERNEL is passed only in sleepable context. It has been an old issue since the first introduction of the bpf_local_storage ~5 years ago, so this patch targets the bpf-next. bpf_mem_alloc is needed to solve it, so the Fixes tag is set to the commit when bpf_mem_alloc was first used in the bpf_local_storage.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于在PREEMPT_RT环境中未使用bpf_mem_alloc,可能导致内存分配失败。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 08a7ce384e33e53e0732c500a8af67a73f8fceca ~ 3392fa605d7c5708c5fbe02e4fbdac547c3b7352 -
Linux Linux 6.4 -

II. Public POCs for CVE-2024-58070

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-58070

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-58070 (4)

Same Patch Batch · Linux · 2025-03-06 · 46 CVEs total

CVE-2025-21829 9.8 CRITICAL RDMA/rxe: Fix the warning "__rxe_cleanup+0x12c/0x170 [rdma_rxe]"
CVE-2025-21828 8.8 HIGH wifi: mac80211: don't flush non-uploaded STAs
CVE-2025-21826 7.8 HIGH netfilter: nf_tables: reject mismatching sum of field_len with set key length
CVE-2025-21832 7.8 HIGH block: don't revert iter for -EIOCBQUEUED
CVE-2024-58083 7.8 HIGH KVM: Explicitly verify target vCPU is online in kvm_get_vcpu()
CVE-2024-58069 7.8 HIGH rtc: pcf85063: fix potential OOB write in PCF85063 NVMEM read
CVE-2024-58079 7.8 HIGH media: uvcvideo: Fix crash during unbind if gpio unit is in use
CVE-2024-58086 7.8 HIGH drm/v3d: Stop active perfmon if it is being destroyed
CVE-2024-58075 7.8 HIGH crypto: tegra - do not transfer req when tegra init fails
CVE-2024-58060 7.8 HIGH bpf: Reject struct_ops registration that uses module ptr and the module btf_id is missing
CVE-2025-21825 7.8 HIGH bpf: Cancel the running bpf_timer through kworker for PREEMPT_RT
CVE-2025-21827 7.8 HIGH Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()
CVE-2024-58053 7.5 HIGH rxrpc: Fix handling of received connection abort
CVE-2025-21830 7.3 HIGH landlock: Handle weird files
CVE-2024-58065 clk: mmp: pxa1908-apbc: Fix NULL vs IS_ERR() check
CVE-2024-58064 wifi: cfg80211: tests: Fix potential NULL dereference in test_cfg80211_parse_colocated_ap(
CVE-2024-58061 wifi: mac80211: prohibit deactivating all links
CVE-2024-58063 wifi: rtlwifi: fix memory leaks and invalid access at probe error path
CVE-2024-58062 wifi: iwlwifi: mvm: avoid NULL pointer dereference
CVE-2024-58066 clk: mmp: pxa1908-apbcp: Fix a NULL vs IS_ERR() check

Showing top 20 of 46 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-58070

No comments yet


Leave a comment