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

Published Jun 24, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

riscv: prevent ptregs corruption for secondary idle threads

Top of the kernel thread stack should be reserved for ptregs. However this is not the case for the idle threads of the secondary boot harts. Their stacks overlap with their ptregs, so both may get corrupted.

Similar issue has been fixed for the primary hart, see c7cdd96eca28 ("riscv: prevent stack corruption by reserving taskptregs(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 smpcallin stored several registers on stack, corrupting top of ptregs structure including status field. As a result, kernel attempted to save or restore inexistent V context.

Affected Software

12 affected componentsFixes available
Linux Linux kernel<5.7
Linux Linux kernel>=6.1<6.1.93
Linux Linux kernel>=6.6<6.6.33
Linux Linux kernel>=6.9<6.9.4
Linux Linux kernel=6.10.0-rc1
debian/linux<=5.10.223-1, <=5.10.234-1
6.1.129-16.1.133-16.12.22-1
Linux Linux kernel>=5.7<6.1.93
Linux Linux kernel>=6.2<6.6.33
Linux Linux kernel>=6.7<6.9.4
Linux Linux kernel=6.10-rc1
Microsoft azl3 kernel 6.6.29.1-5
Microsoft azl3 kernel 6.6.35.1-4

Event History

Jun 24, 2024
CVE Published
via MITRE·01:52 PM
Data Sourced
via MITRE·01:52 PM
Description
Aug 16, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Sep 11, 2024
Data Sourced
via Launchpad·04:24 PM
Description
Apr 11, 2025
Data Sourced
via Ubuntu·05:17 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-38667?

CVE-2024-38667 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-38667?

To fix CVE-2024-38667, upgrade your Linux kernel to version 6.1.123-1 or higher.

3

What systems are affected by CVE-2024-38667?

CVE-2024-38667 affects various versions of the Linux kernel, specifically versions up to 5.7 and within specified ranges from 6.1, 6.6, and 6.9.

4

What is the impact of CVE-2024-38667 on system security?

The impact of CVE-2024-38667 may lead to the corruption of pt_regs for secondary idle threads, potentially affecting system stability.

5

Are there specific distributions impacted by CVE-2024-38667?

Yes, Debian Linux versions prior to the specified updates are impacted by CVE-2024-38667.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203