CVE-2024-49856

x86/sgx: Fix deadlock in SGX NUMA node search

No CVSS score yet EPSS 0.21%

Published 21 Oct 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-49856

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-49856 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

x86/sgx: Fix deadlock in SGX NUMA node search

When the current node doesn't have an EPC section configured by firmware and all other EPC sections are used up, CPU can get stuck inside the while loop that looks for an available EPC page from remote nodes indefinitely, leading to a soft lockup. Note how nid_of_current will never be equal to nid in that while loop because nid_of_current is not set in sgx_numa_mask.

Also worth mentioning is that it's perfectly fine for the firmware not to setup an EPC section on a node. While setting up an EPC section on each node can enhance performance, it is not a requirement for functionality.

Rework the loop to start and end on *a* node that has SGX memory. This avoids the deadlock looking for the current SGX-lacking node to show up in the loop when it never will.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 21 Oct 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 901ddbb9ecf5425183ea0c09d10c2fd7868dce54, before 40fb64257dab507d86b5f1f2a62f3669ef0c91a8
affected from 901ddbb9ecf5425183ea0c09d10c2fd7868dce54, before 20c96d0aaabfe361fc2a11c173968dc67feadbbf
affected from 901ddbb9ecf5425183ea0c09d10c2fd7868dce54, before fb2d057539eda67ec7cfc369bf587e6518a9b99d
affected from 901ddbb9ecf5425183ea0c09d10c2fd7868dce54, before 0f89fb4042c08fd143bfc28af08bf6c8a0197eea
affected from 901ddbb9ecf5425183ea0c09d10c2fd7868dce54, before 8132510c915815e6b537ab937d94ed66893bc7b8
affected from 901ddbb9ecf5425183ea0c09d10c2fd7868dce54, before 9c936844010466535bd46ea4ce4656ef17653644
Other versions: unaffected
Linux
affected 5.13
unaffected before 5.13
unaffected from 5.15.168 up to and including 5.15.*
unaffected from 6.1.113 up to and including 6.1.*
unaffected from 6.6.54 up to and including 6.6.*
unaffected from 6.10.13 up to and including 6.10.*
unaffected from 6.11.2 up to and including 6.11.*
unaffected 6.12 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-49856 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-49856

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-49856
trivy image --scanners vuln IMAGE | grep CVE-2024-49856

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-49856 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.