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.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.3%top 80.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20xen4.18.0-r4ALPINE-CVE-2023-46841
Alpine:v3.21xen4.18.0-r4ALPINE-CVE-2023-46841
Alpine:v3.22xen4.18.0-r4ALPINE-CVE-2023-46841
Alpine:v3.23xen4.18.0-r4ALPINE-CVE-2023-46841
Alpine:v3.24xen4.18.0-r4ALPINE-CVE-2023-46841
Debian:12xen4.17.5+23-ga4e5191dc0-1DEBIAN-CVE-2023-46841
Debian:12xen4.17.5+23-ga4e5191dc0-1DSA-5836-1
Debian:13xen4.17.3+36-g54dacb5c02-1DEBIAN-CVE-2023-46841
Debian:14xen4.17.3+36-g54dacb5c02-1DEBIAN-CVE-2023-46841
Ubuntu:22.04:LTSxenno fix listedUBUNTU-CVE-2023-46841
Ubuntu:24.04:LTSxenno fix listedUBUNTU-CVE-2023-46841
Ubuntu:25.10xenno fix listedUBUNTU-CVE-2023-46841
Ubuntu:26.04:LTSxenno fix listedUBUNTU-CVE-2023-46841
Ubuntu:26.10xenno fix listedUBUNTU-CVE-2023-46841

Affected products (as reported)

VendorProductVersions
Xen Xen see references

References