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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-58060— bpf: Reject struct_ops registration that uses module ptr and the module btf_id is missing

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存在资源管理错误漏洞,该漏洞源于拒绝使用模块指针且缺少模块btf_id的结构体操作注册。

CVSS 7.8 · High EPSS 0.21% · P10

Possible ATT&CK Techniques 1 AI

T1055.001 · Dynamic-link Library Injection

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux 1611603537a4b88cec7993f32b70c03113801a46< b777b14c2a4a4e2322daf8e8ffd42d2b88831b17 affected
1611603537a4b88cec7993f32b70c03113801a46< 2324fb4e92092837ee278fdd8d60c48ee1a619ce affected
1611603537a4b88cec7993f32b70c03113801a46< 96ea081ed52bf077cad6d00153b6fba68e510767 affected
6.9 affected
< 6.9 unaffected
6.12.13≤ 6.12.* unaffected
6.13.2≤ 6.13.* unaffected
6.14≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-58060

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: Reject struct_ops registration that uses module ptr and the module btf_id is missing
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Reject struct_ops registration that uses module ptr and the module btf_id is missing There is a UAF report in the bpf_struct_ops when CONFIG_MODULES=n. In particular, the report is on tcp_congestion_ops that has a "struct module *owner" member. For struct_ops that has a "struct module *owner" member, it can be extended either by the regular kernel module or by the bpf_struct_ops. bpf_try_module_get() will be used to do the refcounting and different refcount is done based on the owner pointer. When CONFIG_MODULES=n, the btf_id of the "struct module" is missing: WARN: resolve_btfids: unresolved symbol module Thus, the bpf_try_module_get() cannot do the correct refcounting. Not all subsystem's struct_ops requires the "struct module *owner" member. e.g. the recent sched_ext_ops. This patch is to disable bpf_struct_ops registration if the struct_ops has the "struct module *" member and the "struct module" btf_id is missing. The btf_type_is_fwd() helper is moved to the btf.h header file for this test. This has happened since the beginning of bpf_struct_ops which has gone through many changes. The Fixes tag is set to a recent commit that this patch can apply cleanly. Considering CONFIG_MODULES=n is not common and the age of the issue, targeting for bpf-next also.
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存在资源管理错误漏洞,该漏洞源于拒绝使用模块指针且缺少模块btf_id的结构体操作注册。
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 1611603537a4b88cec7993f32b70c03113801a46 ~ b777b14c2a4a4e2322daf8e8ffd42d2b88831b17 -
Linux Linux 6.9 -

II. Public POCs for CVE-2024-58060

# 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-58060

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

Patches & Fixes for CVE-2024-58060 (3)

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-2024-58069 7.8 HIGH rtc: pcf85063: fix potential OOB write in PCF85063 NVMEM read
CVE-2025-21827 7.8 HIGH Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()
CVE-2025-21826 7.8 HIGH netfilter: nf_tables: reject mismatching sum of field_len with set key length
CVE-2025-21825 7.8 HIGH bpf: Cancel the running bpf_timer through kworker for PREEMPT_RT
CVE-2024-58075 7.8 HIGH crypto: tegra - do not transfer req when tegra init fails
CVE-2024-58086 7.8 HIGH drm/v3d: Stop active perfmon if it is being destroyed
CVE-2024-58079 7.8 HIGH media: uvcvideo: Fix crash during unbind if gpio unit is in use
CVE-2024-58083 7.8 HIGH KVM: Explicitly verify target vCPU is online in kvm_get_vcpu()
CVE-2024-58070 7.8 HIGH bpf: bpf_local_storage: Always use bpf_mem_alloc in PREEMPT_RT
CVE-2025-21832 7.8 HIGH block: don't revert iter for -EIOCBQUEUED
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-58063 wifi: rtlwifi: fix memory leaks and invalid access at probe error path
CVE-2024-58064 wifi: cfg80211: tests: Fix potential NULL dereference in test_cfg80211_parse_colocated_ap(
CVE-2024-58065 clk: mmp: pxa1908-apbc: Fix NULL vs IS_ERR() check
CVE-2024-58066 clk: mmp: pxa1908-apbcp: Fix a NULL vs IS_ERR() check
CVE-2024-58062 wifi: iwlwifi: mvm: avoid NULL pointer dereference
CVE-2024-58052 drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-58060

No comments yet


Leave a comment