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).

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-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • rv
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug
NoYesJan 14, 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