Skip to main content
Network Thinking Solutions Logo

CVE-2024-38667

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.

All CVEs
CVE-2024-38667Published 6/24/2024

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.

Vendor advisory
CVSS7.8High

Overview

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.

Published
6/24/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.7, < 6.1.93

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.33

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.9.4

Verify advisory

Source
linux kernel
linux
6.10

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 2875fe0561569f82d0e63658ccf0d11ce7da8922, < ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e

Verify advisory

Source
Linux
Linux
≥ 2875fe0561569f82d0e63658ccf0d11ce7da8922, < 3090c06d50eaa91317f84bf3eac4c265e6cb8d44

Verify advisory

Source
Linux
Linux
≥ 2875fe0561569f82d0e63658ccf0d11ce7da8922, < 0c1f28c32a194303da630fca89481334b9547b80

Verify advisory

Source
Linux
Linux
≥ 2875fe0561569f82d0e63658ccf0d11ce7da8922, < a638b0461b58aa3205cd9d5f14d6f703d795b4af

Verify advisory

Source
Linux
Linux
5.7

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.