CVE-2024-36936·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: efi/unaccepted: touch soft lockup during memory accept Commit 50e782a86c98 ("efi/unaccepted: Fix soft lockups caused by parallel memory acceptance") has released the spinlock so other CPUs can do memory acceptance in parallel and not triggers softlockup on other CPUs. However the softlock up was intermittent shown up if the memory of the TD guest is large, and the timeout of softlockup is set to 1 second: RIP: 0010:_raw_spin_unlock_irqrestore Call Trace: ? __hrtimer_run_queues <IRQ> ? hrtimer_interrupt ? watchdog_timer_fn ? __sysvec_apic_timer_interrupt ? __pfx_watchdog_timer_fn ? sysvec_apic_timer_interrupt </IRQ> ? __hrtimer_run_queues <TASK> ? hrtimer_interrupt ? asm_sysvec_apic_timer_interrupt ? _raw_spin_unlock_irqrestore ? __sysvec_apic_timer_interrupt ? sysvec_apic_timer_interrupt accept_memory try_to_accept_memory do_huge_pmd_anonymous_page get_page_from_freelist __handle_mm_fault __alloc_pages __folio_alloc ? __tdx_hypercall handle_mm_fault vma_alloc_folio do_user_addr_fault do_huge_pmd_anonymous_page exc_page_fault ? __do_huge_pmd_anonymous_page asm_exc_page_fault __handle_mm_fault When the local irq is enabled at the end of accept_memory(), the softlockup detects that the watchdog on single CPU has not been fed for a while. That is to say, even other CPUs will not be blocked by spinlock, the current CPU might be stunk with local irq disabled for a while, which hurts not only nmi watchdog but also softlockup. Chao Gao pointed out that the memory accept could be time costly and there was similar report before. Thus to avoid any softlocup detection during this stage, give the softlockup a flag to skip the timeout check at the end of accept_memory(), by invoking touch_softlockup_watchdog().
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.8.10
- Published
- 2024-05-30
Affected versions
From: 6.7
Until: 6.8.10
Fixed in: 6.8.10
How to fix this CVE
Update your Linux kernel to version 6.8.10 or later to resolve a soft lockup issue that occurs during EFI memory acceptance operations on large-memory systems. This vulnerability primarily affects virtualized environments (TD guests) where extended memory acceptance periods without proper watchdog updates cause false soft lockup detections. Apply the patch immediately if you are running kernel versions 6.7 through 6.8.9.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and compare against the vulnerable range 6.7.x to 6.8.9
- Step 2: Verify if the system is running in a virtualized TD (Trusted Domain) environment or uses EFI memory acceptance by checking `dmesg | grep -i 'unaccepted\|efi'`
- Step 3: Search kernel logs for soft lockup warnings with `grep -i 'soft lockup' /var/log/kern.log` or `journalctl -k | grep -i 'soft lockup'` that correlate with memory allocation patterns
- Step 4: After updating to 6.8.10+, confirm the fix with `uname -r` and verify no soft lockup warnings appear during high-memory allocation workloads
FAQ
What is CVE-2024-36936?
This CVE addresses a soft lockup detection vulnerability in the Linux kernel's EFI memory acceptance code. During large memory acceptance operations, the watchdog timer is not properly reset, causing false soft lockup warnings even though the system is functioning normally.
Is CVE-2024-36936 being actively exploited?
No, CVE-2024-36936 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and has no public exploits available. This is a stability issue rather than a security vulnerability that could be weaponized.
What versions of Kernel are affected by CVE-2024-36936?
Linux kernel versions 6.7.x through 6.8.9 are affected. Version 6.8.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-36936?
Run `uname -r` to get your kernel version. If it returns a version between 6.7.0 and 6.8.9, your system is vulnerable. Cross-reference with your system's package manager using `apt show linux-image-generic` (Ubuntu/Debian) or `dnf info kernel` (RHEL/CentOS).
Does Defensia detect CVE-2024-36936?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-36936 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1c5a1627f48105cbab81d25ec2f72232bfaa8185
- https://git.kernel.org/stable/c/781e34b736014188ba9e46a71535237313dcda81
- https://git.kernel.org/stable/c/e115c1b5de55a105c75aba8eb08301c075fa4ef4
- https://git.kernel.org/stable/c/1c5a1627f48105cbab81d25ec2f72232bfaa8185
- https://git.kernel.org/stable/c/781e34b736014188ba9e46a71535237313dcda81
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36936. Free for 1 server.
Get started free