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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-35860— bpf: support deferring bpf_link dealloc to after RCU grace period

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 存在安全漏洞,该漏洞源于链接取消引用。

CVSS 7.8 · High EPSS 0.24% · P14

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux 0dcac272540613d41c05e89679e4ddb978b612f1< 876941f533e7b47fc69977fc4551c02f2d18af97 affected
0dcac272540613d41c05e89679e4ddb978b612f1< 5d8d447777564b35f67000e7838e7ccb64d525c8 affected
0dcac272540613d41c05e89679e4ddb978b612f1< 1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce affected
5.18 affected
< 5.18 unaffected
6.6.26≤ 6.6.* unaffected
6.8.5≤ 6.8.* unaffected
6.9≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-35860

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: support deferring bpf_link dealloc to after RCU grace period
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: bpf: support deferring bpf_link dealloc to after RCU grace period BPF link for some program types is passed as a "context" which can be used by those BPF programs to look up additional information. E.g., for multi-kprobes and multi-uprobes, link is used to fetch BPF cookie values. Because of this runtime dependency, when bpf_link refcnt drops to zero there could still be active BPF programs running accessing link data. This patch adds generic support to defer bpf_link dealloc callback to after RCU GP, if requested. This is done by exposing two different deallocation callbacks, one synchronous and one deferred. If deferred one is provided, bpf_link_free() will schedule dealloc_deferred() callback to happen after RCU GP. BPF is using two flavors of RCU: "classic" non-sleepable one and RCU tasks trace one. The latter is used when sleepable BPF programs are used. bpf_link_free() accommodates that by checking underlying BPF program's sleepable flag, and goes either through normal RCU GP only for non-sleepable, or through RCU tasks trace GP *and* then normal RCU GP (taking into account rcu_trace_implies_rcu_gp() optimization), if BPF program is sleepable. We use this for multi-kprobe and multi-uprobe links, which dereference link during program run. We also preventively switch raw_tp link to use deferred dealloc callback, as upcoming changes in bpf-next tree expose raw_tp link data (specifically, cookie value) to BPF program at runtime as well.
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 存在安全漏洞,该漏洞源于链接取消引用。
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 0dcac272540613d41c05e89679e4ddb978b612f1 ~ 876941f533e7b47fc69977fc4551c02f2d18af97 -
Linux Linux 5.18 -

II. Public POCs for CVE-2024-35860

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

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

Other References for CVE-2024-35860 (3)

Same Patch Batch · Linux · 2024-05-19 · 82 CVEs total

CVE-2024-35862 9.8 CRITICAL smb: client: fix potential UAF in smb2_is_network_name_deleted()
CVE-2024-35863 9.8 CRITICAL smb: client: fix potential UAF in is_valid_oplock_break()
CVE-2024-35864 9.8 CRITICAL smb: client: fix potential UAF in smb2_is_valid_lease_break()
CVE-2024-35865 9.8 CRITICAL smb: client: fix potential UAF in smb2_is_valid_oplock_break()
CVE-2024-35861 9.8 CRITICAL smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect()
CVE-2024-35884 9.8 CRITICAL udp: do not accept non-tunnel GSO skbs landing in a tunnel
CVE-2024-35869 9.8 CRITICAL smb: client: guarantee refcounted children from parent session
CVE-2024-35870 9.8 CRITICAL smb: client: fix UAF in smb2_reconnect_server()
CVE-2024-35939 9.3 CRITICAL dma-direct: Leak pages on dma_set_decrypted() failure
CVE-2024-35887 8.8 HIGH ax25: fix use-after-free bugs caused by ax25_ds_del_timer
CVE-2024-35915 8.8 HIGH nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet
CVE-2024-35889 8.6 HIGH idpf: fix kernel panic on unknown packet types
CVE-2024-35875 8.4 HIGH x86/coco: Require seeding RNG with RDRAND on CoCo systems
CVE-2024-35937 8.1 HIGH wifi: cfg80211: check A-MSDU format more carefully
CVE-2024-35931 7.8 HIGH drm/amdgpu: Skip do PCI error slot reset during RAS recovery
CVE-2024-35890 7.8 HIGH gro: fix ownership transfer
CVE-2024-35921 7.8 HIGH media: mediatek: vcodec: Fix oops when HEVC init fails
CVE-2024-35919 7.8 HIGH media: mediatek: vcodec: adding lock to protect encoder context list
CVE-2024-35920 7.8 HIGH media: mediatek: vcodec: adding lock to protect decoder context list
CVE-2024-35894 7.8 HIGH mptcp: prevent BPF accessing lowat from a subflow socket.

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-35860

No comments yet


Leave a comment