CVE-2024-56585
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-56585 affects the Linux kernel's LoongArch architecture implementation. The vulnerability was discovered in the TLB handler setup process where a sleeping function was called from an invalid context in PREEMPT_RT kernels. This issue was disclosed on December 27, 2024, and affects systems running Linux kernel with LoongArch architecture and PREEMPT_RT configuration (NVD).

Technical details

The vulnerability occurs when the GFP flag is changed from GFP_KERNEL to GFP_ATOMIC for alloc_pages_node() in the setup_tlb_handler() function. In PREEMPT_RT kernels, normal spinlocks are replaced by rt spinlocks, and rt_spin_lock() causes sleeping in atomic context, triggering a BUG at kernel/locking/spinlock_rt.c:48. The issue manifests with multiple locks being held by the swapper process, including pcp->lock, rcu_read_lock, and zone->lock (Kernel Commit).

Impact

When triggered, this vulnerability causes a system bug that results in sleeping in atomic context, which can lead to system instability or crashes in affected LoongArch systems running with PREEMPT_RT kernel configuration (Kernel Commit).

Exploitability

The vulnerability is triggered during system initialization in specific hardware configurations running LoongArch architecture with PREEMPT_RT kernel configuration. It requires no special privileges to trigger as it occurs during normal system operation (NVD).

Mitigation and workarounds

The issue has been fixed by disabling NUMA optimization completely for PREEMPT_RT kernels. The fix involves modifying the condition check in arch/loongarch/mm/tlb.c to include !defined(CONFIG_PREEMPT_RT) in the CONFIG_NUMA check (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74732NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-firmware
NoYesAug 22, 2026
CVE-2026-74730NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 22, 2026
CVE-2026-74726NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules
NoYesAug 22, 2026
CVE-2026-74719NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesAug 22, 2026
CVE-2026-74717NONEN/A
  • Linux Kernel logoLinux Kernel
  • rtla
NoYesAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management