CVE-2023-52568
x86/sgx: Resolves SECS reclaim vs. page fault for EAUG race
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 811ba2ef0cb6402672e64ba1419d6ef95aa3405d; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 1348f7f15d7c7798456856bee74a4235c2da994e; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < c6c2adcba50c2622ed25ba5d5e7f05f584711358
- Anyone running Linux 6.0
Vulnerability facts
- Affected
- Linux >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 811ba2ef0cb6402672e64ba1419d6ef95aa3405d; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 1348f7f15d7c7798456856bee74a4235c2da994e; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < c6c2adcba50c2622ed25ba5d5e7f05f584711358; Linux 6.0
- Fixed in
- Linux 811ba2ef0cb6402672e64ba1419d6ef95aa3405d, Linux 1348f7f15d7c7798456856bee74a4235c2da994e
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: x86/sgx: Resolves SECS reclaim vs. page fault for EAUG race The SGX EPC reclaimer (ksgxd) may reclaim the SECS EPC page for an enclave and set secs.epc_page to NULL. The SECS page is used for EAUG and ELDU in the SGX page fault handler. However, the NULL check for secs.epc_page is only done for ELDU, not EAUG before being used. Fix this by doing the same NULL check and reloading of the SECS page as needed for both EAUG and ELDU. The SECS page holds global enclave metadata. It can only be reclaimed when there are no other enclave pages remaining. At that point, virtually nothing can be done with the enclave until the SECS page is paged back in. An enclave can not run nor generate page faults without a resident SECS page. But it is still possible for a #PF for a non-SECS page to race with paging out the SECS page: when the last resident non-SECS page A triggers a #PF in a non-resident page B, and then page A and the SECS both are paged out before the #PF on B is handled. Hitting this bug requires that race triggered with a #PF for EAUG. Following is a trace when it happens. BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:sgx_encl_eaug_page+0xc7/0x210 Call Trace: ? __kmem_cache_alloc_node+0x16a/0x440 ? xa_load+0x6e/0xa0 sgx_vma_fault+0x119/0x230 __do_fault+0x36/0x140 do_fault+0x12f/0x400 __handle_mm_fault+0x728/0x1110 handle_mm_fault+0x105/0x310 do_user_addr_fault+0x1ee/0x750 ? __this_cpu_preempt_check+0x13/0x20 exc_page_fault+0x76/0x180 asm_exc_page_fault+0x27/0x30
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 811ba2ef0cb6402672e64ba1419d6ef95aa3405d; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 1348f7f15d7c7798456856bee74a4235c2da994e; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < c6c2adcba50c2622ed25ba5d5e7f05f584711358 | — | cvelist |
| Linux | 6.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-52568. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-52568.md Affected: Linux >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 811ba2ef0cb6402672e64ba1419d6ef95aa3405d; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 1348f7f15d7c7798456856bee74a4235c2da994e; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < c6c2adcba50c2622ed25ba5d5e7f05f584711358; Linux 6.0 Fixed in: Linux 811ba2ef0cb6402672e64ba1419d6ef95aa3405d, Linux 1348f7f15d7c7798456856bee74a4235c2da994e Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2023-52568 being exploited?
There is no confirmed exploitation: CVE-2023-52568 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-52568?
Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-52568?
Linux >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 811ba2ef0cb6402672e64ba1419d6ef95aa3405d; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < 1348f7f15d7c7798456856bee74a4235c2da994e; >= 5a90d2c3f5ef87717e54572af8426aba6fdbdaa6, < c6c2adcba50c2622ed25ba5d5e7f05f584711358; Linux 6.0.
Is there a fix for CVE-2023-52568?
Yes. Fixed in Linux 811ba2ef0cb6402672e64ba1419d6ef95aa3405d, Linux 1348f7f15d7c7798456856bee74a4235c2da994e. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-52568?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.