
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2023-52568 affects the Linux kernel's SGX EPC (Enclave Page Cache) reclaimer functionality. The issue involves a race condition where the SGX EPC reclaimer (ksgxd) may reclaim the SECS EPC page for an enclave and set secs.epc_page to NULL. While the SECS page is used for both EAUG and ELDU operations in the SGX page fault handler, the NULL check for secs.epc_page was only implemented for ELDU operations, creating a potential security risk (MITRE CVE).
The vulnerability stems from a null pointer dereference in arch/x86/kernel/cpu/sgx/encl.c in the Linux kernel. The issue occurs when the last resident non-SECS page A triggers a page fault in a non-resident page B, and then page A and the SECS are both paged out before the page fault on B is handled. This race condition specifically affects the EAUG operation, where the NULL check for secs.epc_page was missing (Red Hat Portal).
When exploited, this vulnerability can lead to a kernel NULL pointer dereference, potentially resulting in a system crash or denial of service condition. The SECS page, which holds global enclave metadata, can only be reclaimed when there are no other enclave pages remaining, at which point virtually no operations can be performed with the enclave until the SECS page is paged back in (MITRE CVE).
The vulnerability requires specific timing conditions to be met, involving a race between page fault handling and SECS page reclamation. The exploit scenario involves triggering a page fault for EAUG while simultaneously having the SECS page reclaimed, making it a relatively complex vulnerability to exploit but still potentially dangerous in controlled conditions (NVD).
The fix involves implementing the same NULL check and reloading mechanism for the SECS page in both EAUG and ELDU operations. This ensures proper handling of the SECS page state before any operations are performed, preventing the null pointer dereference condition (MITRE CVE).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."