# CVE-2023-46841: x86: shadow stack vs exceptions from emulation stubs

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-03-20T10:40:36.597Z
- Modified: 2026-06-17T06:31:44.437Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: XEN

## Description

Recent x86 CPUs offer functionality named Control-flow Enforcement
Technology (CET).  A sub-feature of this are Shadow Stacks (CET-SS).
CET-SS is a hardware feature designed to protect against Return Oriented
Programming attacks. When enabled, traditional stacks holding both data
and return addresses are accompanied by so called "shadow stacks",
holding little more than return addresses.  Shadow stacks aren't
writable by normal instructions, and upon function returns their
contents are used to check for possible manipulation of a return address
coming from the traditional stack.

In particular certain memory accesses need intercepting by Xen.  In
various cases the necessary emulation involves kind of replaying of
the instruction.  Such replaying typically involves filling and then
invoking of a stub.  Such a replayed instruction may raise an
exceptions, which is expected and dealt with accordingly.

Unfortunately the interaction of both of the above wasn't right:
Recovery involves removal of a call frame from the (traditional) stack.
The counterpart of this operation for the shadow stack was missing.

(As written by CVE List.)

## Affected

- Xen Xen: consult Xen advisory XSA-451; from 4.14.0
- fedoraproject fedora: 40

## References

- <https://xenbits.xenproject.org/xsa/advisory-451.html> (patch, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZON4TLXG7TG4A2XZG563JMVTGQW4SF3A/> (mailing-list, third-party-advisory)
- <http://xenbits.xen.org/xsa/advisory-451.html> (patch, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HES2IJXZY3H7HBPP4NVSVYYNGW254DMI/>

## Sources

- CVE List: [CVE-2023-46841](https://www.cve.org/CVERecord?id=CVE-2023-46841), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2023-46841](https://nvd.nist.gov/vuln/detail/CVE-2023-46841), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-46841 · Whole record: https://cve.day/CVE-2023-46841.json · Rebuilt by cve.day 2026-11-25T22:58:33.371Z
