{"id":"CVE-2026-31561","aliases":["CVE-2026-31561"],"related":[],"kind":"vulnerability","state":"published","title":"x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask\n\nCommit in Fixes added the FRED CR4 bit to the CR4 pinned bits mask so\nthat whenever something else modifies CR4, that bit remains set. Which\nin itself is a perfectly fine idea.\n\nHowever, there's an issue when during boot FRED is initialized: first on\nthe BSP and later on the APs. Thus, there's a window in time when\nexceptions cannot be handled.\n\nThis becomes particularly nasty when running as SEV-{ES,SNP} or TDX\nguests which, when they manage to trigger exceptions during that short\nwindow described above, triple fault due to FRED MSRs not being set up\nyet.\n\nSee Link tag below for a much more detailed explanation of the\nsituation.\n\nSo, as a result, the commit in that Link URL tried to address this\nshortcoming by temporarily disabling CR4 pinning when an AP is not\nonline yet.\n\nHowever, that is a problem in itself because in this case, an attack on\nthe kernel needs to only modify the online bit - a single bit in RW\nmemory - and then disable CR4 pinning and then disable SM*P, leading to\nmore and worse things to happen to the system.\n\nSo, instead, remove the FRED bit from the CR4 pinning mask, thus\nobviating the need to temporarily disable CR4 pinning.\n\nIf someone manages to disable FRED when poking at CR4, then\nidt_invalidate() would make sure the system would crash'n'burn on the\nfirst exception triggered, which is a much better outcome security-wise.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask\n\nCommit in Fixes added the FRED CR4 bit to the CR4 pinned bits mask so\nthat whenever something else modifies CR4, that bit remains set. Which\nin itself is a perfectly fine idea.\n\nHowever, there's an issue when during boot FRED is initialized: first on\nthe BSP and later on the APs. Thus, there's a window in time when\nexceptions cannot be handled.\n\nThis becomes particularly nasty when running as SEV-{ES,SNP} or TDX\nguests which, when they manage to trigger exceptions during that short\nwindow described above, triple fault due to FRED MSRs not being set up\nyet.\n\nSee Link tag below for a much more detailed explanation of the\nsituation.\n\nSo, as a result, the commit in that Link URL tried to address this\nshortcoming by temporarily disabling CR4 pinning when an AP is not\nonline yet.\n\nHowever, that is a problem in itself because in this case, an attack on\nthe kernel needs to only modify the online bit - a single bit in RW\nmemory - and then disable CR4 pinning and then disable SM*P, leading to\nmore and worse things to happen to the system.\n\nSo, instead, remove the FRED bit from the CR4 pinning mask, thus\nobviating the need to temporarily disable CR4 pinning.\n\nIf someone manages to disable FRED when poking at CR4, then\nidt_invalidate() would make sure the system would crash'n'burn on the\nfirst exception triggered, which is a much better outcome security-wise.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nx86/cpu: Eliminar X86_CR4_FRED de la máscara de bits fijados de CR4\n\nEl 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.\n\nSin 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.\n\nEsto 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.\n\nVer la etiqueta Link a continuación para una explicación mucho más detallada de la situación.\n\nAsí, 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.\n\nSin 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.\n\nAsí 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.\n\nSi 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.","source":"nvd"}],"published":"2026-04-24T14:35:43.302Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ff45746fbf005f96e42bea466698e3fdbf926013","fixed":"d7853d9fe94abf43b46c57b0b7f8418198b7615a","status":"affected"},{"type":"git","introduced":"ff45746fbf005f96e42bea466698e3fdbf926013","fixed":"a6e14114684d2324e5401617d6d01acb4a4e0e22","status":"affected"},{"type":"git","introduced":"ff45746fbf005f96e42bea466698e3fdbf926013","fixed":"00d956dafa76f86a73424fe5cce3d604a8be2e4b","status":"affected"},{"type":"git","introduced":"ff45746fbf005f96e42bea466698e3fdbf926013","fixed":"411df123c017169922cc767affce76282b8e6c85","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.9.1","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"6.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d7853d9fe94abf43b46c57b0b7f8418198b7615a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6e14114684d2324e5401617d6d01acb4a4e0e22","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00d956dafa76f86a73424fe5cce3d604a8be2e4b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/411df123c017169922cc767affce76282b8e6c85","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31561","url":"https://www.cve.org/CVERecord?id=CVE-2026-31561","licence":"CVE Terms of Use","modified":"2026-05-11T22:11:09.941Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31561","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31561","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.484Z","epss":{"score":0.00127,"percentile":0.02535,"date":"2026-12-01T12:00:22.000Z"}}