Vulnerability · Published Mar 20, 2024 · Assigned by XEN
CVE-2023-46841x86: shadow stack vs exceptions from emulation stubs
Medium 6.5
In plain English
A medium-severity security flaw in Xen from Xen. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | xen | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine:v3.21 | xen | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine:v3.22 | xen | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine:v3.23 | xen | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine:v3.24 | xen | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Debian:12 | xen | 4.17.5+23-ga4e5191dc0-1 | DEBIAN-CVE-2023-46841 |
| Debian:12 | xen | 4.17.5+23-ga4e5191dc0-1 | DSA-5836-1 |
| Debian:13 | xen | 4.17.3+36-g54dacb5c02-1 | DEBIAN-CVE-2023-46841 |
| Debian:14 | xen | 4.17.3+36-g54dacb5c02-1 | DEBIAN-CVE-2023-46841 |
| Ubuntu:22.04:LTS | xen | no fix listed | UBUNTU-CVE-2023-46841 |
| Ubuntu:24.04:LTS | xen | no fix listed | UBUNTU-CVE-2023-46841 |
| Ubuntu:25.10 | xen | no fix listed | UBUNTU-CVE-2023-46841 |
| Ubuntu:26.04:LTS | xen | no fix listed | UBUNTU-CVE-2023-46841 |
| Ubuntu:26.10 | xen | no fix listed | UBUNTU-CVE-2023-46841 |
Affected products (as reported)
References
- https://xenbits.xenproject.org/xsa/advisory-451.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZON4TLXG7TG4A2XZG563JMVTGQW4SF3A/
- http://xenbits.xen.org/xsa/advisory-451.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HES2IJXZY3H7HBPP4NVSVYYNGW254DMI/