CVE-2026-31561
x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask
Description
In the Linux kernel, the following vulnerability has been resolved: x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask Commit in Fixes added the FRED CR4 bit to the CR4 pinned bits mask so that whenever something else modifies CR4, that bit remains set. Which in itself is a perfectly fine idea. However, there's an issue when during boot FRED is initialized: first on the BSP and later on the APs. Thus, there's a window in time when exceptions cannot be handled. This becomes particularly nasty when running as SEV-{ES,SNP} or TDX guests which, when they manage to trigger exceptions during that short window described above, triple fault due to FRED MSRs not being set up yet. See Link tag below for a much more detailed explanation of the situation. So, as a result, the commit in that Link URL tried to address this shortcoming by temporarily disabling CR4 pinning when an AP is not online yet. However, that is a problem in itself because in this case, an attack on the kernel needs to only modify the online bit - a single bit in RW memory - and then disable CR4 pinning and then disable SM*P, leading to more and worse things to happen to the system. So, instead, remove the FRED bit from the CR4 pinning mask, thus obviating the need to temporarily disable CR4 pinning. If someone manages to disable FRED when poking at CR4, then idt_invalidate() would make sure the system would crash'n'burn on the first exception triggered, which is a much better outcome security-wise.
INFO
Published Date :
April 24, 2026, 3:16 p.m.
Last Modified :
Nov. 11, 2026, 11:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Remove the FRED bit from the CR4 pinning mask.
- Ensure CR4 pinning is temporarily disabled when AP is offline.
- Update the Linux kernel to the latest version.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31561.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-31561 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-31561
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-31561 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31561 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: x86/cpu: Eliminar X86_CR4_FRED de la máscara de bits fijados de CR4 El commit en Fixes añadió el bit FRED CR4 a la máscara de bits fijados de CR4 para que cada vez que algo más modifique CR4, ese bit permanezca establecido. Lo cual en sí mismo es una idea perfectamente válida. Sin embargo, hay un problema cuando durante el arranque FRED es inicializado: primero en el BSP y luego en los APs. Así, hay una ventana de tiempo cuando las excepciones no pueden ser manejadas. Esto se vuelve particularmente desagradable cuando se ejecuta como invitados SEV-{ES,SNP} o TDX los cuales, cuando logran disparar excepciones durante esa corta ventana descrita anteriormente, causan una triple falla debido a que los MSR de FRED aún no están configurados. Ver la etiqueta Link a continuación para una explicación mucho más detallada de la situación. Así, como resultado, el commit en esa URL de Link intentó abordar esta deficiencia deshabilitando temporalmente el fijado de CR4 cuando un AP aún no está en línea. Sin embargo, eso es un problema en sí mismo porque en este caso, un ataque al kernel solo necesita modificar el bit en línea - un solo bit en memoria RW - y luego deshabilitar el fijado de CR4 y luego deshabilitar SMP, lo que lleva a que ocurran cosas más y peores en el sistema. Así que, en su lugar, eliminar el bit FRED de la máscara de fijado de CR4, obviando así la necesidad de deshabilitar temporalmente el fijado de CR4. Si alguien logra deshabilitar FRED al manipular CR4, entonces idt_invalidate() se aseguraría de que el sistema se bloqueara y fallara con la primera excepción disparada, lo cual es un resultado mucho mejor en términos de seguridad. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'ff45746fbf005f96e42bea466698e3fdbf926013', 'lessThan': 'd7853d9fe94abf43b46c57b0b7f8418198b7615a', 'versionType': 'git'}, {'status': 'affected', 'version': 'ff45746fbf005f96e42bea466698e3fdbf926013', 'lessThan': 'a6e14114684d2324e5401617d6d01acb4a4e0e22', 'versionType': 'git'}, {'status': 'affected', 'version': 'ff45746fbf005f96e42bea466698e3fdbf926013', 'lessThan': '00d956dafa76f86a73424fe5cce3d604a8be2e4b', 'versionType': 'git'}, {'status': 'affected', 'version': 'ff45746fbf005f96e42bea466698e3fdbf926013', 'lessThan': '411df123c017169922cc767affce76282b8e6c85', 'versionType': 'git'}], 'programFiles': ['arch/x86/kernel/cpu/common.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.9'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.9', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.80', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.21', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.11', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['arch/x86/kernel/cpu/common.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Apr. 27, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.9:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.9.1 up to (excluding) 6.12.80 Added Reference Type kernel.org: https://git.kernel.org/stable/c/00d956dafa76f86a73424fe5cce3d604a8be2e4b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/411df123c017169922cc767affce76282b8e6c85 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a6e14114684d2324e5401617d6d01acb4a4e0e22 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d7853d9fe94abf43b46c57b0b7f8418198b7615a Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 24, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask Commit in Fixes added the FRED CR4 bit to the CR4 pinned bits mask so that whenever something else modifies CR4, that bit remains set. Which in itself is a perfectly fine idea. However, there's an issue when during boot FRED is initialized: first on the BSP and later on the APs. Thus, there's a window in time when exceptions cannot be handled. This becomes particularly nasty when running as SEV-{ES,SNP} or TDX guests which, when they manage to trigger exceptions during that short window described above, triple fault due to FRED MSRs not being set up yet. See Link tag below for a much more detailed explanation of the situation. So, as a result, the commit in that Link URL tried to address this shortcoming by temporarily disabling CR4 pinning when an AP is not online yet. However, that is a problem in itself because in this case, an attack on the kernel needs to only modify the online bit - a single bit in RW memory - and then disable CR4 pinning and then disable SM*P, leading to more and worse things to happen to the system. So, instead, remove the FRED bit from the CR4 pinning mask, thus obviating the need to temporarily disable CR4 pinning. If someone manages to disable FRED when poking at CR4, then idt_invalidate() would make sure the system would crash'n'burn on the first exception triggered, which is a much better outcome security-wise. Added Reference https://git.kernel.org/stable/c/00d956dafa76f86a73424fe5cce3d604a8be2e4b Added Reference https://git.kernel.org/stable/c/411df123c017169922cc767affce76282b8e6c85 Added Reference https://git.kernel.org/stable/c/a6e14114684d2324e5401617d6d01acb4a4e0e22 Added Reference https://git.kernel.org/stable/c/d7853d9fe94abf43b46c57b0b7f8418198b7615a