CVE-2023-46841x86: shadow stack vs exceptions from emulation stubs
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | xen | Fix pending | UBUNTU-CVE-2023-46841 | |
| Ubuntu 26.04 | xen | Under investigation | UBUNTU-CVE-2023-46841 | |
| Ubuntu 25.10 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46841 | |
| Ubuntu 24.04 | xen | Under investigation | UBUNTU-CVE-2023-46841 | |
| Ubuntu 22.04 | xen | Under investigation | UBUNTU-CVE-2023-46841 | |
| Ubuntu 20.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46841 | |
| Ubuntu 18.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46841 | |
| Ubuntu 16.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46841 | |
| Ubuntu 14.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | ||
| Debian 14 | xen | Fixed | 4.17.3+36-g54dacb5c02-1 | DEBIAN-CVE-2023-46841 |
| Debian 13 | xen | Fixed | 4.17.3+36-g54dacb5c02-1 | DEBIAN-CVE-2023-46841 |
| Debian 12 | xen | Fixed | 4.17.5+23-ga4e5191dc0-1 | DEBIAN-CVE-2023-46841 |
| Alpine Linux 3.24 | xen | Fixed | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.23 | xen | Fixed | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.22 | xen | Fixed | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.21 | xen | Fixed | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.20 | xen | Fixed | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.19 | xen | Fixed | 4.18.0-r4 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.18 | xen | Fixed | 4.17.3-r1 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.17 | xen | Fixed | 4.16.5-r7 | ALPINE-CVE-2023-46841 |
| Alpine Linux 3.16 | xen | Fixed | 4.16.5-r7 | ALPINE-CVE-2023-46841 |
What the vendor says
As published in the CVE record by XEN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Xen
Workaround: While in principle it is possible to disable use of CET on capable systems using the "cet=no-shstk" command line option, doing so disables an important security feature and may therefore not be advisable.
References
- https://xenbits.xenproject.org/xsa/advisory-451.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZON4TLXG7TG4A2XZG563JMVTGQW4SF3A/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.