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

Published

2024-10-09

·

Updated

2025-10-03

·

CVE-2024-50140

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel versions prior to 6.6.61
Description: The issue arises when KASAN and PREEMPT RT are enabled, and task work add() is called in task tick mm cid(), potentially causing a sleeping function to be called from an invalid context. This problem is due to the call trace starting from sched tick() and leading to rt spin lock(), where the rq lock, a raw spinlock t, is held, preventing sleeping and thus alloc pages() from being called in stack depot save flags(). The task tick mm cid() function with its task work add() call was introduced in the v6.4 kernel. A new TWAF NO ALLOC flag is added to enable calling kasan record aux stack noalloc() instead of kasan record aux stack() to prevent page allocation.
Recommendations: For Linux kernel versions prior to 6.6.61, update to version 6.6.61 or later to resolve the issue. As a temporary workaround, consider disabling the task work add() function in task tick mm cid() until a patch is available. Restrict access to the sched tick() function to minimize the risk of exploitation. Avoid using the task tick mm cid() function in critical paths until the issue is resolved.

Exploit

Fix

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

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2024-17211
ALT-PU-2025-12647
AZL-53537
BDU:2025-07925
CVE-2024-50140
MGASA-2024-0368
MGASA-2024-0369
OESA-2025-1594
OESA-2025-1595
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
OPENSUSE-SU-2025_1177-1
OPENSUSE-SU-2025_1178-1
OPENSUSE-SU-2025_1180-1
SUSE-SU-2025:01919-1
SUSE-SU-2025:01951-1
SUSE-SU-2025:01967-1
SUSE-SU-2025:1177-1
SUSE-SU-2025:1178-1
SUSE-SU-2025:1180-1
SUSE-SU-2025:20190-1
SUSE-SU-2025:20192-1
SUSE-SU-2025:20260-1
SUSE-SU-2025:20270-1
SUSE-SU-2025_01951-1
SUSE-SU-2025_01967-1
SUSE-SU-2025_1177-1
SUSE-SU-2025_1178-1
SUSE-SU-2025_1180-1
USN-7276-1
USN-7277-1
USN-7310-1
USN-7449-1
USN-7449-2
USN-7450-1
USN-7451-1
USN-7452-1
USN-7453-1
USN-7468-1
USN-7523-1
USN-7524-1

Affected Products

Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Suse
Ubuntu