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

Published May 30, 2024
·
Updated

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:rawspinunlockirqrestore Call Trace: ? hrtimerrunqueues <IRQ> ? hrtimerinterrupt ? watchdogtimerfn ? sysvecapictimerinterrupt ? pfxwatchdogtimerfn ? sysvecapictimerinterrupt </IRQ> ? hrtimerrunqueues <TASK> ? hrtimerinterrupt ? asmsysvecapictimerinterrupt ? rawspinunlockirqrestore ? sysvecapictimerinterrupt ? sysvecapictimerinterrupt acceptmemory trytoacceptmemory dohugepmdanonymouspage getpagefromfreelist handlemmfault allocpages folioalloc ? tdxhypercall handlemmfault vmaallocfolio douseraddrfault dohugepmdanonymouspage excpagefault ? dohugepmdanonymouspage asmexcpagefault handlemmfault

When the local irq is enabled at the end of acceptmemory(), 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 acceptmemory(), by invoking touchsoftlockupwatchdog().

Other sources

In the Linux kernel, the following vulnerability has been resolved:

efi/unaccepted: touch soft lockup during memory accept

The Linux kernel CVE team has assigned CVE-2024-36936 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024053042-CVE-2024-36936-3116@gregkh/T

Red Hat

Affected Software

14 affected componentsFixes available
redhat/kernel<6.8.10
6.8.10
redhat/kernel<6.9
6.9
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
Linux Linux kernel>=6.5.9<6.6
Linux Linux kernel>=6.6.1<6.6.55
Linux Linux kernel>=6.7<6.8.10
Linux Linux kernel=6.6
Linux Linux kernel=6.6-rc7
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Linux Linux kernel=6.9-rc4
Linux Linux kernel=6.9-rc5
Linux Linux kernel=6.9-rc6

Event History

May 30, 2024
CVE Published
via MITRE·03:29 PM
Data Sourced
via MITRE·03:29 PM
Description
Data Sourced
via NVD·04:15 PM
Description
Data Sourced
via NVD·04:15 PM
RemedySeverityWeaknessAffected Software
Aug 8, 2024
Data Sourced
via Launchpad·11:25 PM
Description
Dec 2, 2024
Data Sourced
via Ubuntu·11:54 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-36936?

CVE-2024-36936 has a medium severity due to its potential to cause system instability.

2

How do I fix CVE-2024-36936?

To address CVE-2024-36936, upgrade the kernel to version 6.8.10 or higher for Red Hat, or update to specific Debian package versions.

3

What systems are affected by CVE-2024-36936?

CVE-2024-36936 affects Red Hat kernel versions below 6.8.10 and 6.9, as well as certain versions of Debian's Linux package.

4

What does CVE-2024-36936 impact in the Linux kernel?

CVE-2024-36936 impacts the memory acceptance process, potentially causing soft lockups.

5

Who is responsible for fixing CVE-2024-36936?

It is the responsibility of the system administrator to apply the necessary kernel updates to fix CVE-2024-36936.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203