Skip to main content

CVE-2024-26765: Vulnerability in Linux Linux

Medium
VulnerabilityCVE-2024-26765cvecve-2024-26765
Published: Wed Apr 03 2024 (04/03/2024, 17:00:47 UTC)
Source: CVE
Vendor/Project: Linux
Product: Linux

Description

In the Linux kernel, the following vulnerability has been resolved: LoongArch: Disable IRQ before init_fn() for nonboot CPUs Disable IRQ before init_fn() for nonboot CPUs when hotplug, in order to silence such warnings (and also avoid potential errors due to unexpected interrupts): WARNING: CPU: 1 PID: 0 at kernel/rcu/tree.c:4503 rcu_cpu_starting+0x214/0x280 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.17+ #1198 pc 90000000048e3334 ra 90000000047bd56c tp 900000010039c000 sp 900000010039fdd0 a0 0000000000000001 a1 0000000000000006 a2 900000000802c040 a3 0000000000000000 a4 0000000000000001 a5 0000000000000004 a6 0000000000000000 a7 90000000048e3f4c t0 0000000000000001 t1 9000000005c70968 t2 0000000004000000 t3 000000000005e56e t4 00000000000002e4 t5 0000000000001000 t6 ffffffff80000000 t7 0000000000040000 t8 9000000007931638 u0 0000000000000006 s9 0000000000000004 s0 0000000000000001 s1 9000000006356ac0 s2 9000000007244000 s3 0000000000000001 s4 0000000000000001 s5 900000000636f000 s6 7fffffffffffffff s7 9000000002123940 s8 9000000001ca55f8 ra: 90000000047bd56c tlb_init+0x24c/0x528 ERA: 90000000048e3334 rcu_cpu_starting+0x214/0x280 CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE) PRMD: 00000000 (PPLV0 -PIE -PWE) EUEN: 00000000 (-FPE -SXE -ASXE -BTE) ECFG: 00071000 (LIE=12 VS=7) ESTAT: 000c0000 [BRK] (IS= ECode=12 EsubCode=0) PRID: 0014c010 (Loongson-64bit, Loongson-3A5000) CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.17+ #1198 Stack : 0000000000000000 9000000006375000 9000000005b61878 900000010039c000 900000010039fa30 0000000000000000 900000010039fa38 900000000619a140 9000000006456888 9000000006456880 900000010039f950 0000000000000001 0000000000000001 cb0cb028ec7e52e1 0000000002b90000 9000000100348700 0000000000000000 0000000000000001 ffffffff916d12f1 0000000000000003 0000000000040000 9000000007930370 0000000002b90000 0000000000000004 9000000006366000 900000000619a140 0000000000000000 0000000000000004 0000000000000000 0000000000000009 ffffffffffc681f2 9000000002123940 9000000001ca55f8 9000000006366000 90000000047a4828 00007ffff057ded8 00000000000000b0 0000000000000000 0000000000000000 0000000000071000 ... Call Trace: [<90000000047a4828>] show_stack+0x48/0x1a0 [<9000000005b61874>] dump_stack_lvl+0x84/0xcc [<90000000047f60ac>] __warn+0x8c/0x1e0 [<9000000005b0ab34>] report_bug+0x1b4/0x280 [<9000000005b63110>] do_bp+0x2d0/0x480 [<90000000047a2e20>] handle_bp+0x120/0x1c0 [<90000000048e3334>] rcu_cpu_starting+0x214/0x280 [<90000000047bd568>] tlb_init+0x248/0x528 [<90000000047a4c44>] per_cpu_trap_init+0x124/0x160 [<90000000047a19f4>] cpu_probe+0x494/0xa00 [<90000000047b551c>] start_secondary+0x3c/0xc0 [<9000000005b66134>] smpboot_entry+0x50/0x58

AI-Powered Analysis

AILast updated: 06/29/2025, 18:25:49 UTC

Technical Analysis

CVE-2024-26765 is a vulnerability identified in the Linux kernel specifically affecting the LoongArch architecture, which is used in Loongson processors. The issue arises from improper handling of interrupt requests (IRQs) during the initialization of non-boot CPUs in a hotplug scenario. The vulnerability is due to IRQs not being disabled before the init_fn() function is called for non-boot CPUs, which can lead to unexpected interrupts causing kernel warnings and potentially errors. The kernel warning message indicates a problem in the Read-Copy Update (RCU) subsystem during CPU startup, with a stack trace pointing to rcu_cpu_starting and related kernel functions. This improper IRQ handling can cause instability or unexpected behavior during CPU hotplug operations, which are critical for systems that dynamically add or remove CPUs. The vulnerability was addressed by disabling IRQs before init_fn() is executed on non-boot CPUs, thereby preventing the spurious interrupts and associated warnings or errors. The affected Linux kernel versions include those built from the commit identified by the hash fa96b57c149061f71a70bd6582d995f6424fbbf4, and the fix is included in kernel version 6.6.17 and later. There are no known exploits in the wild at this time, and no CVSS score has been assigned yet. The vulnerability is specific to the LoongArch architecture, which is less common globally but important in certain markets, particularly in China and some specialized computing environments. The technical details suggest this is a stability and reliability issue rather than a direct security breach like privilege escalation or remote code execution.

Potential Impact

For European organizations, the impact of CVE-2024-26765 is primarily related to system stability and reliability rather than direct compromise of confidentiality, integrity, or availability. Organizations using Linux systems with LoongArch architecture CPUs, especially in environments where CPU hotplugging is utilized (such as high-availability servers, cloud infrastructure, or specialized computing clusters), may experience kernel warnings, system errors, or crashes if the vulnerability is exploited or triggered inadvertently. This could lead to downtime or degraded performance, impacting business operations that rely on these systems. However, since LoongArch processors are not widely deployed in Europe compared to x86 or ARM architectures, the direct impact is expected to be limited to niche environments or organizations using specialized hardware. The absence of known exploits reduces immediate risk, but the vulnerability could be leveraged in targeted attacks or cause operational disruptions if left unpatched. Additionally, any instability in kernel operations can complicate incident response and system maintenance, increasing operational costs and risk exposure.

Mitigation Recommendations

European organizations should take the following specific mitigation steps: 1) Identify and inventory systems running Linux kernels on LoongArch architecture CPUs, focusing on those using kernel versions prior to 6.6.17 or the commit containing the fix. 2) Apply the official Linux kernel patch or upgrade to kernel version 6.6.17 or later where the vulnerability is resolved. 3) For systems that rely on CPU hotplug functionality, conduct thorough testing after patching to ensure stability and correct IRQ handling during CPU addition/removal. 4) Monitor kernel logs for warnings related to RCU or CPU startup processes that might indicate attempts to trigger the vulnerability. 5) Engage with hardware vendors or Linux distribution maintainers to confirm support and availability of patched kernels for LoongArch-based systems. 6) Implement robust change management and rollback procedures to handle any unforeseen issues arising from kernel updates. 7) Since this vulnerability does not require user interaction or authentication, ensure that system-level security controls and monitoring are in place to detect anomalous kernel behavior early.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Linux
Date Reserved
2024-02-19T14:20:24.172Z
Cisa Enriched
true
Cvss Version
null
State
PUBLISHED

Threat ID: 682d982ac4522896dcbe3af0

Added to database: 5/21/2025, 9:08:58 AM

Last enriched: 6/29/2025, 6:25:49 PM

Last updated: 7/29/2025, 8:55:17 PM

Views: 12

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats