PT-2024-9009 · Linux+5 · Linux Kernel+5

Boy Wu

·

Published

2024-05-30

·

Updated

2025-09-17

·

CVE-2024-36906

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel versions prior to 6.6.37
Description: The vulnerability is related to the kasan component of the Linux kernel, which is responsible for detecting invalid memory accesses. The issue arises when the arm architecture does not clear stale stack poison in the case of cpuidle, leading to a stack-out-of-bounds error. This can cause the kernel to crash or produce spurious error messages. The vulnerability is exploited by writing to a memory address outside the bounds of a stack frame, which can be achieved by manipulating the stack pointer or using a buffer overflow attack.
Technical details about exploitation:
  • The refresh cpu vm stats.constprop.0 function is vulnerable to a stack-out-of-bounds error.
  • The kasan check range function is used to detect invalid memory accesses, but it may not correctly handle the case where the stack pointer is manipulated to point outside the bounds of a stack frame.
  • The memset function is used to write to a memory address, which can be used to exploit the vulnerability by writing to an address outside the bounds of a stack frame.
Recommendations: To resolve the issue, update the Linux kernel to version 6.6.37 or later. This version includes a patch that clears stale stack poison in the case of cpuidle, preventing the stack-out-of-bounds error. Additionally, consider disabling the kasan component or restricting its use to minimize the risk of exploitation until the patch is applied.

Exploit

Fix

Out of bounds Read

Memory Corruption

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2024-10691
CVE-2024-36906
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-1706
OESA-2024-1707
SUSE-SU-2024:2008-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2135-1
SUSE-SU-2024:2190-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20249-1
USN-6949-1
USN-6949-2
USN-6950-1
USN-6950-2
USN-6950-3
USN-6950-4
USN-6952-1
USN-6952-2
USN-6955-1
USN-6956-1
USN-6957-1
USN-7019-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu