# CVE-2024-36936: efi/unaccepted: touch soft lockup during memory accept

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2024-05-30T15:29:25.767Z
- Modified: 2026-06-17T07:37:24.083Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from 50e782a86c980d4f8292ef82ed8139282ca07a98 before e115c1b5de55a105c75aba8eb08301c075fa4ef4; from 50e782a86c980d4f8292ef82ed8139282ca07a98 before 781e34b736014188ba9e46a71535237313dcda81; from 50e782a86c980d4f8292ef82ed8139282ca07a98 before 1c5a1627f48105cbab81d25ec2f72232bfaa8185; b583bfcc5a36dbd1db1984dbfcfd23ba64d23604; from 6.5.9 before 6.6; 6.6 (not affected: before 6.6; from 6.6.55 up to 6.6.*; from 6.8.10 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.5.9 before 6.6; from 6.6.1 before 6.6.55; from 6.7 before 6.8.10; 6.6; 6.9

## References

- <https://git.kernel.org/stable/c/e115c1b5de55a105c75aba8eb08301c075fa4ef4> (patch)
- <https://git.kernel.org/stable/c/781e34b736014188ba9e46a71535237313dcda81> (patch)
- <https://git.kernel.org/stable/c/1c5a1627f48105cbab81d25ec2f72232bfaa8185> (patch)

## Sources

- CVE List: [CVE-2024-36936](https://www.cve.org/CVERecord?id=CVE-2024-36936), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-36936](https://nvd.nist.gov/vuln/detail/CVE-2024-36936), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36936 · Whole record: https://cve.day/CVE-2024-36936.json · Rebuilt by cve.day 2026-11-25T22:58:41.290Z
