AMD (high performance)
Zen 3
AMD Zen 3 (2020) supports x86-64-v3.
- x86-64 level
- x86-64-v3
- Vendor
- AMD
- First products
- 2020
- Products
- Ryzen 5000; EPYC 7003
- Segments
- GCC target
-march=znver3- Optimization
- Optimizing code for Zen 3
Product lines
| Product line | Segment | Socket | Source |
|---|---|---|---|
| Ryzen 5000 | desktop | AM4 | ir.amd.com |
| Ryzen 5000 | mobile | FP6 (BGA) | ir.amd.com |
| Ryzen 6000 | mobile | FP7 (BGA) | ir.amd.com |
| Ryzen 7030 | mobile | FP6 (BGA) | amd.com |
| Ryzen 7035 | mobile | FP7, FP7r2 (BGA) | amd.com |
| Ryzen Z2 Go | mobile | not stated | amd.com |
| Ryzen Threadripper PRO 5000 WX | workstation | sWRX8 | ir.amd.com |
| EPYC 7003 | server | SP3 | ir.amd.com |
| EPYC Embedded 7003 | embedded | SP3 | amd.com |
| Ryzen Embedded V3000 | embedded | FP7r2 (BGA) | amd.com |
| Ryzen Embedded 5000 | embedded | AM4 | amd.com |
Why not x86-64-v4?
Zen 3 lacks AVX512BW, AVX512CD, AVX512DQ, AVX512F and AVX512VL, all of which x86-64-v4 requires.
Feature checklist
| Feature | Zen 3 | Enumerated by | Linux flag |
|---|---|---|---|
| x86-64-v1 | |||
| CMOV | Yes | CPUID.01H:EDX[15] | cmov |
| CX8 | Yes | CPUID.01H:EDX[8] | cx8 |
| FPU | Yes | CPUID.01H:EDX[0] | fpu |
| FXSR | Yes | CPUID.01H:EDX[24] | fxsr |
| MMX | Yes | CPUID.01H:EDX[23] | mmx |
| OSFXSR via FXSR | Yes | CPUID.01H:EDX[24] | fxsr |
| SCE | Yes | CPUID.80000001H:EDX[11] | syscall |
| SSE | Yes | CPUID.01H:EDX[25] | sse |
| SSE2 | Yes | CPUID.01H:EDX[26] | sse2 |
| x86-64-v2 | |||
| CMPXCHG16B | Yes | CPUID.01H:ECX[13] | cx16 |
| LAHF-SAHF | Yes | CPUID.80000001H:ECX[0] | lahf_lm |
| POPCNT | Yes | CPUID.01H:ECX[23] | popcnt |
| SSE3 | Yes | CPUID.01H:ECX[0] | pni |
| SSE4.1 | Yes | CPUID.01H:ECX[19] | sse4_1 |
| SSE4.2 | Yes | CPUID.01H:ECX[20] | sse4_2 |
| SSSE3 | Yes | CPUID.01H:ECX[9] | ssse3 |
| x86-64-v3 | |||
| AVX | Yes | CPUID.01H:ECX[28] | avx |
| AVX2 | Yes | CPUID.(EAX=07H,ECX=0):EBX[5] | avx2 |
| BMI1 | Yes | CPUID.(EAX=07H,ECX=0):EBX[3] | bmi1 |
| BMI2 | Yes | CPUID.(EAX=07H,ECX=0):EBX[8] | bmi2 |
| F16C | Yes | CPUID.01H:ECX[29] | f16c |
| FMA | Yes | CPUID.01H:ECX[12] | fma |
| LZCNT | Yes | CPUID.80000001H:ECX[5] | abm |
| MOVBE | Yes | CPUID.01H:ECX[22] | movbe |
| OSXSAVE via XSAVE | Yes | CPUID.01H:ECX[26] | xsave |
| x86-64-v4 | |||
| AVX512F | No | CPUID.(EAX=07H,ECX=0):EBX[16] | avx512f |
| AVX512BW | No | CPUID.(EAX=07H,ECX=0):EBX[30] | avx512bw |
| AVX512CD | No | CPUID.(EAX=07H,ECX=0):EBX[28] | avx512cd |
| AVX512DQ | No | CPUID.(EAX=07H,ECX=0):EBX[17] | avx512dq |
| AVX512VL | No | CPUID.(EAX=07H,ECX=0):EBX[31] | avx512vl |
Other extensions
Notable extensions outside the x86-64 levels. Vendors sometimes disable these on individual models. Linked names lead to the extension's instructions.
Known vulnerabilities
The CVEs that the sources of the vulnerability list name as affecting Zen 3, in all of its models or in some of them.
- CVE-2025-54502 AMD AGESA, SMM and BIOS firmware: LocateProtocol in the APCB SMM driver
- CVE-2025-40300 VMSCAPE
- CVE-2025-29943 AMD SEV, SEV-ES and SEV-SNP: SEV-SNP guest stack pointer corruption
- CVE-2025-29934 AMD SEV, SEV-ES and SEV-SNP: Stale TLB entries in SEV-SNP guests
- CVE-2025-0033 AMD SEV, SEV-ES and SEV-SNP: RMP corruption during SNP initialization
- CVE-2024-56161 Microcode Signature Verification: Microcode Signature Verification: SEV-SNP Some models
- CVE-2024-36350 Transient Scheduler Attacks: Transient Scheduler Attack on the store queue
- CVE-2024-36347 Microcode Signature Verification Some models
- CVE-2024-21944 AMD SEV, SEV-ES and SEV-SNP: Memory aliasing through DIMM SPD data
- CVE-2024-21925 AMD AGESA, SMM and BIOS firmware: AmdPspP2CmboxV2 input validation
- CVE-2024-21924 AMD AGESA, SMM and BIOS firmware: SMM callout in AmdPlatformRasSspSmm
- CVE-2024-0179 AMD AGESA, SMM and BIOS firmware: SMM callout in AmdCpmDisplayFeatureSMM
- CVE-2023-31364 AMD processor errata: Guest-initiated machine check errors Some models
- CVE-2023-31315 AMD AGESA, SMM and BIOS firmware: SMM lock bypass
- CVE-2023-20599 AMD Secure Processor and SMU firmware: Crypto Co-Processor registers from x86
- CVE-2023-20596 AMD AGESA, SMM and BIOS firmware: SMM Supervisor initialization
- CVE-2023-20592 AMD SEV, SEV-ES and SEV-SNP: INVD and guest memory integrity
- CVE-2023-20589 AMD Secure Processor and SMU firmware: Voltage fault injection on fTPM secure boot
- CVE-2023-20575 AMD SEV, SEV-ES and SEV-SNP: Power side channel on SEV guests
- CVE-2023-20569 Speculative Return Stack Overflow
- CVE-2023-20555 AMD AGESA, SMM and BIOS firmware: CpmDisplayFeatureSmm bit overwrite
- CVE-2022-23829 AMD AGESA, SMM and BIOS firmware: SPI lock bypass
- CVE-2022-23824 Incomplete Branch Prediction Barrier: IBPB and Return Stack Buffer Interactions Some models
- CVE-2022-23823 Frequency Throttling Side Channel: Frequency Scaling Timing Power Side-Channels Some models
- CVE-2021-46778 Execution Unit Scheduler Contention Some models
- CVE-2021-46744 AMD SEV, SEV-ES and SEV-SNP: Ciphertext side channels on SEV
- CVE-2021-26342 AMD SEV, SEV-ES and SEV-SNP: Missed TLB flush after a new VMCB
- CVE-2021-26341 Straight-line Speculation Some models
- CVE-2021-26340 AMD SEV, SEV-ES and SEV-SNP: TLB poisoning of SEV guests Some models
- CVE-2021-26339 AMD processor errata: Core hang from a guest Some models
- CVE-2021-26311 AMD SEV, SEV-ES and SEV-SNP: Rearranged guest memory that attestation misses
- CVE-2020-12967 AMD SEV, SEV-ES and SEV-SNP: Unprotected nested page tables of SEV guests
- CVE-2020-12966 AMD SEV, SEV-ES and SEV-SNP: Ciphertext side channel on SEV-ES register state
- CVE-2017-5753 Spectre variant 1: Bounds Check Bypass
- CVE-2017-5715 Spectre variant 2: Branch Target Injection
Other AMD (high performance) microarchitectures
Sources
- GCC -march=znver3 feature set (PTA_ZNVER3)
- AMD PPR for Family 19h Model 01h, Revision B1 Processors (55898, rev. 0.50, May 2021): INVLPGB and SEV-SNP, which GCC’s -march sets leave out (55898_B1_pub_0_50.zip, SHA-256 fe0f39afbf19d1a128d51605f9b958a861608daf7f04a1c1b8ca5a36cb73f534): the EPYC 7003 server processors set
CPUID_Fn80000008_EBX[INVLPGB](bit 3) andCPUID_Fn8000001F_EAX[SNP](bit 4), and keep RDPRU and MCOMMIT (CPUID_Fn80000008_EBXbits 4 and 8).