Inception: the AMD return stack flaw
Inception targets how AMD Zen cores predict function returns. A kernel update and microcode close it; the status file tells you which protection is active.
What is Inception?
Inception, CVE-2023-20569, also known as Speculative Return Stack Overflow (SRSO), was published in August 2023. It lets an attacker plant a false prediction in the processor so that a later function return in the kernel or another program speculatively jumps to code of the attacker's choosing. Through careful timing measurements, that speculative execution can leak data, including kernel memory, to an unprivileged program running on the same machine.
Which AMD generations does it reach?
AMD Zen 3 and Zen 4 designs were the main focus of the disclosure, and the kernel applies related protections to Zen 1 and Zen 2 as well. In our catalogue that spans most AMD models, from the Ryzen 5000 and EPYC 7003 chips to the EPYC 4004, 8004 and 9004 generations. Each machine reports its own state; the table is a guide, the status file is the answer.
| Core design | Example in our catalogue | What to expect in the status file |
|---|---|---|
| Zen 2 | AMD EPYC 7532, AMD Ryzen 7 Pro 3700 | A mitigation line |
| Zen 3 | AMD EPYC 7313, AMD Ryzen 7 5800X | Mitigation, with microcode for the strongest form |
| Zen 4 | AMD EPYC 4344P, AMD EPYC GENOA 9454 | Mitigation, with microcode for the strongest form |
| Zen 5 | AMD Ryzen 9 9900X, AMD EPYC TURIN 9455 | Read the file; newer designs report their own state |
Where does Linux report the SRSO status?
Read the spec_rstack_overflow entry. It names the protection in use or says the processor is not affected.
cat /sys/devices/system/cpu/vulnerabilities/spec_rstack_overflow # Mitigation: Safe RET # Mitigation: IBPB # Vulnerable: Safe RET, no microcode # Not affected
Safe RET is a kernel technique that rewrites return sequences so the planted prediction cannot be used. IBPB flushes the branch predictor at privilege changes, which is stronger and costlier. A line containing no microcode means part of the fix needs a microcode update that has not been loaded yet.
How do I apply the fix?
Keep the kernel and the AMD microcode current, then reboot. On Debian and Ubuntu install amd64-microcode; on AlmaLinux, Rocky Linux and Fedora, AMD microcode ships in linux-firmware. All supported kernels in the releases we install include the SRSO handling.
apt install amd64-microcode && apt upgrade # Debian and Ubuntu dnf upgrade linux-firmware kernel # Enterprise Linux and Fedora systemctl reboot journalctl -k -b | grep -iE 'microcode|srso|rstack'
On some server platforms, the newest microcode for a processor family reaches the operating system packages later than it reaches firmware. If the status still mentions missing microcode after updating packages, the kernel protection is still active; the line tells you that one extra layer is pending.
What does the protection cost?
Safe RET adds a few instructions to every function return in the kernel, so system-call-heavy workloads lose a little: small single-digit percentages are typical for web serving and databases, more for synthetic benchmarks that do nothing but enter and leave the kernel. IBPB mode costs more on workloads that switch context often. Compute-bound applications that spend their time in user space barely notice either mode.
What about virtual machines?
Hypervisor hosts need the fix on the host first, then in each guest. Proxmox VE, which we install as an option, uses the same kernel mechanisms; keep the host updated and reboot after microcode changes. Guests should run current kernels and use a CPU type that exposes the processor's real features, such as host or the matching EPYC model, so they can choose the right protection. The Proxmox VE page covers host setup.
Can I disable it?
The boot option spec_rstack_overflow=off removes the protection. On a machine that runs only your own, trusted, compute-bound code the trade can make sense, but measure first: on most servers the gain is small and the exposure lasts as long as the setting stays. For the overall approach to these flaws, see Patch CPU vulnerabilities.
AMD machines across Zen generations
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-4 | AMD EPYC 7313 | 16 | 64 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-GAME-2 | AMD Ryzen 7 5800X | 8 | 64 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $60.00 |
| BUSINESS-2 2024 | AMD EPYC 4344P | 8 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $109.80 |
| ENTERPRISE-a4 2024 | AMD EPYC GENOA 9454 | 48 | 128 GB | 2x 960 GB SSD NVMe | 5 Gbps unmetered | $460.20 |
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
Related pages
Patch CPU vulnerabilities
Check which processor flaws affect your machine, apply microcode and kernel fixes, and weigh the cost of mitigations on a single-tenant server.
Read moreZenbleed (AMD Zen 2)
Zenbleed leaks register contents on AMD Zen 2 chips. Which of our machines use Zen 2, how the kernel guards them and how to confirm the fix.
Read moreAMD EPYC, Ryzen and Xeon generations
Which processor family sits in each of our machines, what each generation changed, and how to read a model name before you order.
Read moreAMD EPYC and Ryzen servers
Most of the catalogue runs on AMD: Ryzen for speed per core, EPYC for cores, memory and bandwidth, from 6 to 384 cores.
Read moreQuestions and answers
Which status file shows Inception on Linux?
/sys/devices/system/cpu/vulnerabilities/spec_rstack_overflow. It shows the active protection, such as Safe RET or IBPB, or Not affected.
Are Intel processors affected by Inception?
No. Inception concerns AMD Zen designs. Intel has its own separate issues such as Downfall.
What does Safe RET mean?
It is a kernel method that rewrites function returns so a planted prediction cannot redirect them. It is the default protection on affected chips.
Does Inception protection slow the server?
Slightly for system-call-heavy work, typically a few percent. Compute-bound programs barely notice.
Do I need to reboot after updating microcode?
Yes. Microcode is loaded early at boot, so the new revision takes effect after a restart.