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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-38667— riscv: prevent pt_regs corruption for secondary idle threads

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存在安全漏洞,该漏洞源于次级启动 hart的空闲线程顶部未为 pt_regs保留空间,导致防止次级空闲线程的pt_regs损坏。

AI Predicted 5.5 Difficulty: Moderate EPSS 0.23% · P13

Possible ATT&CK Techniques 1 AI

T1059.004 · Unix Shell

Affected Version Matrix 10

VendorProduct Version RangeStatus
Linux Linux 2875fe0561569f82d0e63658ccf0d11ce7da8922< ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e affected
2875fe0561569f82d0e63658ccf0d11ce7da8922< 3090c06d50eaa91317f84bf3eac4c265e6cb8d44 affected
2875fe0561569f82d0e63658ccf0d11ce7da8922< 0c1f28c32a194303da630fca89481334b9547b80 affected
2875fe0561569f82d0e63658ccf0d11ce7da8922< a638b0461b58aa3205cd9d5f14d6f703d795b4af affected
5.7 affected
< 5.7 unaffected
6.1.93≤ 6.1.* unaffected
6.6.33≤ 6.6.* unaffected
… +2 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-38667

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
riscv: prevent pt_regs corruption for secondary idle threads
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: riscv: prevent pt_regs corruption for secondary idle threads Top of the kernel thread stack should be reserved for pt_regs. However this is not the case for the idle threads of the secondary boot harts. Their stacks overlap with their pt_regs, so both may get corrupted. Similar issue has been fixed for the primary hart, see c7cdd96eca28 ("riscv: prevent stack corruption by reserving task_pt_regs(p) early"). However that fix was not propagated to the secondary harts. The problem has been noticed in some CPU hotplug tests with V enabled. The function smp_callin stored several registers on stack, corrupting top of pt_regs structure including status field. As a result, kernel attempted to save or restore inexistent V context.
Source: CVE Program / CVE List V5
CVSS Information
N/A
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存在安全漏洞,该漏洞源于次级启动 hart的空闲线程顶部未为 pt_regs保留空间,导致防止次级空闲线程的pt_regs损坏。
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 2875fe0561569f82d0e63658ccf0d11ce7da8922 ~ ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e -
Linux Linux 5.7 -

II. Public POCs for CVE-2024-38667

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

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

Other References for CVE-2024-38667 (2)

Same Patch Batch · Linux · 2024-06-24 · 14 CVEs total

CVE-2024-38384 7.8 HIGH blk-cgroup: fix list corruption from reorder of WRITE ->lqueued
CVE-2024-38663 7.8 HIGH blk-cgroup: fix list corruption from resetting io stat
CVE-2024-39292 7.8 HIGH um: Add winch to winch_handlers before registering winch IRQ
CVE-2024-32936 7.8 HIGH media: ti: j721e-csi2rx: Fix races while restarting DMA
CVE-2024-34027 7.8 HIGH f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
CVE-2024-33847 7.1 HIGH f2fs: compress: don't allow unaligned truncation on released compress inode
CVE-2024-38664 drm: zynqmp_dpsub: Always register bridge
CVE-2024-39291 drm/amdgpu: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and rlc_microcode()
CVE-2024-34030 PCI: of_property: Return error for int_map allocation failure
CVE-2024-35247 fpga: region: add owner module and take its refcount
CVE-2024-36479 fpga: bridge: add owner module and take its refcount
CVE-2024-37021 fpga: manager: add owner module and take its refcount
CVE-2024-37026 drm/xe: Only use reserved BCS instances for usm migrate exec queue

IV. Related Vulnerabilities

V. Comments for CVE-2024-38667

No comments yet


Leave a comment