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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 0.03% · P10
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 2875fe0561569f82d0e63658ccf0d11ce7da8922 ~ ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e -
LinuxLinux 5.7 -

II. Public POCs for CVE-2024-38667

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-38667

登录查看更多情报信息。

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

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