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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-40980— drop_monitor: replace spin_lock by raw_spin_lock

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 存在安全漏洞,该漏洞源于 drop_monitor 组件使用 spin_lock 代替 raw_spin_lock。spin_lock 使用睡眠锁,这在实时内核中可能导致问题。

CVSS 7.5 · High EPSS 0.76% · P54

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 16

VendorProduct Version RangeStatus
Linux Linux 4ea7e38696c7e798c47ebbecadfd392f23f814f9< 594e47957f3fe034645e6885393ce96c12286334 affected
4ea7e38696c7e798c47ebbecadfd392f23f814f9< 96941f29ebcc1e9cbf570dc903f30374909562f5 affected
4ea7e38696c7e798c47ebbecadfd392f23f814f9< b3722fb69468693555f531cddda5c30444726dac affected
4ea7e38696c7e798c47ebbecadfd392f23f814f9< f251ccef1d864790e5253386e95544420b7cd8f3 affected
4ea7e38696c7e798c47ebbecadfd392f23f814f9< 76ce2f9125244e1708d29c1d3f9d1d50b347bda0 affected
4ea7e38696c7e798c47ebbecadfd392f23f814f9< 07ea878684dfb78a9d4f564c39d07e855a9e242e affected
4ea7e38696c7e798c47ebbecadfd392f23f814f9< f1e197a665c2148ebc25fe09c53689e60afea195 affected
2.6.31 affected
… +8 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-40980

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
drop_monitor: replace spin_lock by raw_spin_lock
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: drop_monitor: replace spin_lock by raw_spin_lock trace_drop_common() is called with preemption disabled, and it acquires a spin_lock. This is problematic for RT kernels because spin_locks are sleeping locks in this configuration, which causes the following splat: BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 449, name: rcuc/47 preempt_count: 1, expected: 0 RCU nest depth: 2, expected: 2 5 locks held by rcuc/47/449: #0: ff1100086ec30a60 ((softirq_ctrl.lock)){+.+.}-{2:2}, at: __local_bh_disable_ip+0x105/0x210 #1: ffffffffb394a280 (rcu_read_lock){....}-{1:2}, at: rt_spin_lock+0xbf/0x130 #2: ffffffffb394a280 (rcu_read_lock){....}-{1:2}, at: __local_bh_disable_ip+0x11c/0x210 #3: ffffffffb394a160 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x360/0xc70 #4: ff1100086ee07520 (&data->lock){+.+.}-{2:2}, at: trace_drop_common.constprop.0+0xb5/0x290 irq event stamp: 139909 hardirqs last enabled at (139908): [<ffffffffb1df2b33>] _raw_spin_unlock_irqrestore+0x63/0x80 hardirqs last disabled at (139909): [<ffffffffb19bd03d>] trace_drop_common.constprop.0+0x26d/0x290 softirqs last enabled at (139892): [<ffffffffb07a1083>] __local_bh_enable_ip+0x103/0x170 softirqs last disabled at (139898): [<ffffffffb0909b33>] rcu_cpu_kthread+0x93/0x1f0 Preemption disabled at: [<ffffffffb1de786b>] rt_mutex_slowunlock+0xab/0x2e0 CPU: 47 PID: 449 Comm: rcuc/47 Not tainted 6.9.0-rc2-rt1+ #7 Hardware name: Dell Inc. PowerEdge R650/0Y2G81, BIOS 1.6.5 04/15/2022 Call Trace: <TASK> dump_stack_lvl+0x8c/0xd0 dump_stack+0x14/0x20 __might_resched+0x21e/0x2f0 rt_spin_lock+0x5e/0x130 ? trace_drop_common.constprop.0+0xb5/0x290 ? skb_queue_purge_reason.part.0+0x1bf/0x230 trace_drop_common.constprop.0+0xb5/0x290 ? preempt_count_sub+0x1c/0xd0 ? _raw_spin_unlock_irqrestore+0x4a/0x80 ? __pfx_trace_drop_common.constprop.0+0x10/0x10 ? rt_mutex_slowunlock+0x26a/0x2e0 ? skb_queue_purge_reason.part.0+0x1bf/0x230 ? __pfx_rt_mutex_slowunlock+0x10/0x10 ? skb_queue_purge_reason.part.0+0x1bf/0x230 trace_kfree_skb_hit+0x15/0x20 trace_kfree_skb+0xe9/0x150 kfree_skb_reason+0x7b/0x110 skb_queue_purge_reason.part.0+0x1bf/0x230 ? __pfx_skb_queue_purge_reason.part.0+0x10/0x10 ? mark_lock.part.0+0x8a/0x520 ... trace_drop_common() also disables interrupts, but this is a minor issue because we could easily replace it with a local_lock. Replace the spin_lock with raw_spin_lock to avoid sleeping in atomic context.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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 存在安全漏洞,该漏洞源于 drop_monitor 组件使用 spin_lock 代替 raw_spin_lock。spin_lock 使用睡眠锁,这在实时内核中可能导致问题。
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 4ea7e38696c7e798c47ebbecadfd392f23f814f9 ~ 594e47957f3fe034645e6885393ce96c12286334 -
Linux Linux 2.6.31 -

II. Public POCs for CVE-2024-40980

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

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

Other References for CVE-2024-40980 (7)

Same Patch Batch · Linux · 2024-07-12 · 122 CVEs total

CVE-2024-40937 9.8 CRITICAL gve: Clear napi->skb before dev_kfree_skb_any()
CVE-2024-40983 9.8 CRITICAL tipc: force a dst refcount before doing decryption
CVE-2024-40923 9.8 CRITICAL vmxnet3: disable rx data ring on dma allocation failure
CVE-2024-40907 9.8 CRITICAL ionic: fix kernel panic in XDP_TX action
CVE-2024-40999 9.8 CRITICAL net: ena: Add validation for completion descriptors consistency
CVE-2024-40910 8.8 HIGH ax25: Fix refcount imbalance on inbound connections
CVE-2024-40911 8.8 HIGH wifi: cfg80211: Lock wiphy in cfg80211_get_station
CVE-2024-40941 8.1 HIGH wifi: iwlwifi: mvm: don't read past the mfuart notifcation
CVE-2024-40953 7.9 HIGH KVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin()
CVE-2024-40924 7.8 HIGH drm/i915/dpt: Make DPT object unshrinkable
CVE-2024-40991 7.8 HIGH dmaengine: ti: k3-udma-glue: Fix of_k3_udma_glue_parse_chn_by_id()
CVE-2024-39502 7.8 HIGH ionic: fix use after netif_napi_del()
CVE-2024-40989 7.8 HIGH KVM: arm64: Disassociate vcpus from redistributor region on teardown
CVE-2024-40947 7.8 HIGH ima: Avoid blocking in RCU read-side critical section
CVE-2024-40918 7.8 HIGH parisc: Try to fix random segmentation faults in package builds
CVE-2024-40986 7.8 HIGH dmaengine: xilinx: xdma: Fix data synchronisation in xdma_channel_isr()
CVE-2024-39494 7.8 HIGH ima: Fix use-after-free on a dentry's dname.name
CVE-2024-40970 7.8 HIGH Avoid hw_desc array overrun in dw-axi-dmac
CVE-2024-40979 7.8 HIGH wifi: ath12k: fix kernel crash during resume
CVE-2024-40974 7.8 HIGH powerpc/pseries: Enforce hcall result buffer validity and size

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-40980

No comments yet


Leave a comment