🛡️ AZL-53537 — kernel

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

CVE-2024-50140 affecting package kernel for versions less than 6.6.64.2-1

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

sched/core: Disable page allocation in task_tick_mm_cid()

With KASAN and PREEMPT_RT enabled, calling task_work_add() in

task_tick_mm_cid() may cause the following splat.

[ 63.696416] BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48

[ 63.696416] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 610, name: modprobe

[ 63.696416] preempt_count: 10001, expected: 0

[ 63.696416] RCU nest depth: 1, expected: 1

This problem is caused by the following call trace.

sched_tick() [ acquire rq->__lock ]

-> task_tick_mm_cid()

-> task_work_add()

-> __kasan_record_aux_stack()

-> kasan_save_stack()

-> stack_depot_save_flags()

-> alloc_pages_mpol_noprof()

-> __alloc_pages_noprof()

-> get_page_from_freelist()

-> rmqueue()

-> rmqueue_pcplist()

-> __rmqueue_pcplist()

-> rmqueue_bulk()

-> rt_spin_lock()

The rq lock is a raw_spinlock_t. We can't sleep while holding

it. IOW, we can't call alloc_pages() in stack_depot_save_flags().

The task_tick_mm_cid() function with its task_work_add() call was

introduced by commit 223baf9d17f2 ("sched: Fix performance regression

introduced by mm_cid") in v6.4 kernel.

Fortunately, there is a kasan_record_aux_stack_noalloc() variant that

calls stack_depot_save_flags() while not allowing it to allocate

new pages. To allow task_tick_mm_cid() to use task_work without

page allocation, a new TWAF_NO_ALLOC flag is added to enable calling

kasan_record_aux_stack_noalloc() instead of kasan_record_aux_stack()

if set. The task_tick_mm_cid() function is modified to add this new flag.

The possible downside is the missing stack trace in a KASAN report due

to new page allocation required when task_work_add_noallloc() is called

which should be rare.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Affected software

AZL-53537 is recorded against 1 package.

  • kernel (fixed in 6.6.64.2-1)

Timeline and source

Published on 7 November 2024 and last revised on 21 April 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Web)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2024-11-07
Updated 2026-08-12
Modified 2026-04-21
Fix URL N/A

Affected Packages

Software From version Fixed in
kernel 6.6.64.2-1

Similar Threats

Free Vulnerability Check

Is your site affected by AZL-53537?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against AZL-53537 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.