CVE-2023-31315
3rd Gen AMD EPYC™ Processors: Improper Control of Generation of Code
Check your servers for CVE-2023-31315
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-31315 affects pi, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Improper validation in a model specific register (MSR) could allow a malicious program with ring0 access to modify SMM configuration while SMI lock is enabled, potentially leading to arbitrary code execution.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity high, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.59%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 42.3% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 9 Aug 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-94 Improper Control of Generation of Code
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
3rd Gen AMD EPYC™ Processors
package
PI |
affected from various, before Milan PI 1.0.0.D
Other versions: unaffected
|
| 1st Gen AMD EPYC™ Processors |
affected from various, before Naples PI 1.0.0.M
Other versions: affected
|
| 2nd Gen AMD EPYC™ Processors |
affected from various, before Rome PI 1.0.0.J
Other versions: affected
|
| 4th Gen AMD EPYC™ Processors |
unaffected from various, before Genoa PI 1.0.0.C
Other versions: affected
|
| AMD EPYC™ Embedded 3000 |
affected various
Other versions: affected
|
| AMD EPYC™ Embedded 7002 |
affected various
Other versions: affected
|
| AMD EPYC™ Embedded 7003 |
affected various
Other versions: affected
|
| AMD EPYC™ Embedded 9003 |
unaffected from various, before EmbGenoaPI 1.0.0.7
Other versions: affected
|
| AMD Ryzen™ Embedded R1000 |
affected various
Other versions: affected
|
| AMD Ryzen™ Embedded R2000 |
affected various
Other versions: affected
|
| AMD Ryzen™ Embedded 5000 |
affected various
Other versions: affected
|
| AMD Ryzen™ Embedded 7000 |
affected various
Other versions: affected
|
| AMD Ryzen™ Embedded V1000 |
affected various
Other versions: affected
|
| AMD Ryzen™ Embedded V2000 |
affected various
Other versions: affected
|
| AMD Ryzen™ Embedded V3000 |
affected various
Other versions: affected
|
| AMD Ryzen™ 3000 Series Desktop Processors |
affected various
Other versions: affected
|
| AMD Ryzen™ 5000 Series Desktop Processors |
unaffected from various, before ComboAM4v2PI 1.2.0.cb
Other versions: affected
|
| AMD Ryzen™ 5000 Series Desktop processor with Radeon™ Graphics |
unaffected from various, before ComboAM4v2PI 1.2.0.cb
Other versions: affected
|
| AMD Ryzen™ 7000 Series Desktop Processors |
affected from various, before ComboAM5PI 1.2.0.1
Other versions: affected
|
| AMD Ryzen™ 4000 Series Desktop Processors with Radeon™ Graphics |
affected from various, before ComboAM4v2PI 1.2.0.cb
Other versions: affected
|
| AMD Ryzen™ Threadripper™ 3000 Series Processors |
affected from various, before CastlePeakPI-SP3r3 1.0.0.B
Other versions: affected
|
| AMD Ryzen™ Threadripper™ PRO Processors |
affected from various, before ChagallWSPI-sWRX8 1.0.0.8 unaffected from various, before CastlePeakWSPI-sWRX8 1.0.0.D
Other versions: affected
|
| AMD Ryzen™ Threadripper™ PRO 3000WX Series Processors |
unaffected from various, before ChagallWSPI-sWRX8 1.0.0.8
Other versions: affected
|
| AMD Athlon™ 3000 Series Mobile Processors with Radeon™ Graphics |
unaffected from various, before Picasso-FP5 1.0.1.2 unaffected from various, before PollockPI-FT5 1.0.0.8
Other versions: affected
|
| AMD Ryzen™ 3000 Series Mobile Processor with Radeon™ Graphics |
affected from various, before Picasso-FP5 1.0.1.2
Other versions: affected
|
| AMD Ryzen™ 4000 Series Mobile Processors with Radeon™ Graphics |
unaffected from various, before RenoirPI-FP6 1.0.0.E
Other versions: affected
|
| AMD Ryzen™ 5000 Series Mobile Processors with Radeon™ Graphics |
unaffected from various, before CezannePI-FP6 1.0.1.1
Other versions: affected
|
| AMD Ryzen™ 7030 Series Mobile Processors with Radeon™ Graphics |
affected from various, before CezannePI-FP6
Other versions: affected
|
| AMD Ryzen™ 7040 Series Mobile Processors with Radeon™ Graphics |
unaffected from various, before PhoenixPI-FP8-FP7 1.1.0.3
Other versions: affected
|
| AMD Ryzen™ 7045 Series Mobile Processors |
unaffected from various, before DragonRangeFL1 1.0.0.3e
Other versions: affected
|
| AMD Ryzen™ 6000 Series Processors with Radeon™ Graphics |
unaffected from various, before RembrandtPI-FP7 1.0.0.B
Other versions: affected
|
| AMD Ryzen™ 7020 Series Processors with Radeon™ Graphics |
affected from various, before MendocinoPI-FT6 1.0.0.7
Other versions: affected
|
| AMD Ryzen™ 7035 Series Processors with Radeon™ Graphics |
unaffected from various, before RembrandtPI-FP7 1.0.0.B
Other versions: affected
|
| AMD Ryzen™ 8000 Series Processors with Radeon™ Graphics |
unaffected from various, before ComboAM5PI 1.2.0.1
Other versions: affected
|
Is my server affected?
Find the installed version of pi and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i pi
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-31315 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-31315RHEL, Rocky, Alma, Fedora
rpm -q pi
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-31315Alpine
apk list --installed | grep -i piWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-31315
trivy image --scanners vuln IMAGE | grep CVE-2023-31315
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://www.amd.com/en/resources/product-security/bulletin/amd-sb-7014.html amd.com · vendor advisory
Other references
- https://www.darkreading.com/remote-workforce/amd-issues-updates-for-silicon-level-sinkclose-flaw darkreading.com
- https://media.defcon.org/DEF%20CON%2032/DEF%20CON%2032%20presentations/DEF%20CON%2032%20-%20Enrique%20Nissim%20Krzysztof%20Okupski%20-%20AMD%20Sinkclose%20Universal%20Ring-2%20Privilege%20Escalation.pdf media.defcon.org
- https://news.ycombinator.com/item?id=41475975 news.ycombinator.com
Source: the record CVE-2023-31315 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse