{"id":"CVE-2021-46990","aliases":["CVE-2021-46990"],"related":[],"kind":"vulnerability","state":"published","title":"powerpc/64s: Fix crashes when toggling entry flush barrier","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/64s: Fix crashes when toggling entry flush barrier\n\nThe entry flush mitigation can be enabled/disabled at runtime via a\ndebugfs file (entry_flush), which causes the kernel to patch itself to\nenable/disable the relevant mitigations.\n\nHowever depending on which mitigation we're using, it may not be safe to\ndo that patching while other CPUs are active. For example the following\ncrash:\n\n  sleeper[15639]: segfault (11) at c000000000004c20 nip c000000000004c20 lr c000000000004c20\n\nShows that we returned to userspace with a corrupted LR that points into\nthe kernel, due to executing the partially patched call to the fallback\nentry flush (ie. we missed the LR restore).\n\nFix it by doing the patching under stop machine. The CPUs that aren't\ndoing the patching will be spinning in the core of the stop machine\nlogic. That is currently sufficient for our purposes, because none of\nthe patching we do is to that code or anywhere in the vicinity.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/64s: Fix crashes when toggling entry flush barrier\n\nThe entry flush mitigation can be enabled/disabled at runtime via a\ndebugfs file (entry_flush), which causes the kernel to patch itself to\nenable/disable the relevant mitigations.\n\nHowever depending on which mitigation we're using, it may not be safe to\ndo that patching while other CPUs are active. For example the following\ncrash:\n\n  sleeper[15639]: segfault (11) at c000000000004c20 nip c000000000004c20 lr c000000000004c20\n\nShows that we returned to userspace with a corrupted LR that points into\nthe kernel, due to executing the partially patched call to the fallback\nentry flush (ie. we missed the LR restore).\n\nFix it by doing the patching under stop machine. The CPUs that aren't\ndoing the patching will be spinning in the core of the stop machine\nlogic. That is currently sufficient for our purposes, because none of\nthe patching we do is to that code or anywhere in the vicinity.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: powerpc/64s: soluciona fallas al alternar la barrera de descarga de entrada. La mitigación de descarga de entrada se puede habilitar/deshabilitar en tiempo de ejecución a través de un archivo debugfs (entry_flush), lo que hace que el kernel se parchee a sí mismo. habilitar/deshabilitar las mitigaciones relevantes. Sin embargo, dependiendo de la mitigación que estemos usando, puede que no sea seguro aplicar ese parche mientras otras CPU están activas. Por ejemplo, el siguiente bloqueo: durmiente[15639]: segfault (11) en c000000000004c20 nip c000000000004c20 lr c000000000004c20 Muestra que regresamos al espacio de usuario con un LR corrupto que apunta al kernel, debido a la ejecución de la llamada parcialmente parcheada a la entrada de respaldo descarga ( es decir, nos perdimos la restauración de LR). Arréglelo haciendo el parche debajo de detener la máquina. Las CPU que no estén aplicando los parches girarán en el núcleo de la lógica de detención de la máquina. Actualmente, eso es suficiente para nuestros propósitos, porque ninguno de los parches que hacemos se aplica a ese código ni a ningún lugar cercano.","source":"nvd"}],"published":"2024-02-28T08:13:16.569Z","modified":"2026-06-17T04:16:06.027Z","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":"4a1e90af718d1489ffcecc8f52486c4f5dc0f7a6","fixed":"8382b15864e5014261b4f36c2aa89723612ee058","status":"affected"},{"type":"git","introduced":"fa4bf9f38184ed7ca4916eb64f8c767d1e279c1f","fixed":"0c25a7bb697f2e6ee65b6d63782f675bf129511a","status":"affected"},{"type":"git","introduced":"db01cad9efe3c3838a6b3a3f68affd295c4b92d6","fixed":"ee4b7aab93c2631c3bb0753023c5dda592bb666b","status":"affected"},{"type":"git","introduced":"f69bb4e51f41973fb7594be1479fa689831efe1a","fixed":"2db22ba4e0e103f00e0512e0ecce36ac78c644f8","status":"affected"},{"type":"git","introduced":"b65458b6be8032c5179d4f562038575d7b3a6be3","fixed":"0b4eb172cc12dc102cd0ad013e53ee4463db9508","status":"affected"},{"type":"git","introduced":"f79643787e0a0762d2409b7b8334e83f22d85695","fixed":"d2e3590ca39ccfd8a5a46d8c7f095cb6c7b9ae92","status":"affected"},{"type":"git","introduced":"f79643787e0a0762d2409b7b8334e83f22d85695","fixed":"dd0d6117052faace5440db20fc37175efe921c7d","status":"affected"},{"type":"git","introduced":"f79643787e0a0762d2409b7b8334e83f22d85695","fixed":"5bc00fdda1e934c557351a9c751a205293e68cbf","status":"affected"},{"type":"git","introduced":"f79643787e0a0762d2409b7b8334e83f22d85695","fixed":"aec86b052df6541cc97c5fca44e5934cbea4963b","status":"affected"},{"type":"git","version":"e590b36718d6e740b7b19514f710402a6499164c","status":"affected"},{"type":"semver","introduced":"4.4.245","fixed":"4.4.269","status":"affected"},{"type":"semver","introduced":"4.9.245","fixed":"4.9.269","status":"affected"},{"type":"semver","introduced":"4.14.208","fixed":"4.14.233","status":"affected"},{"type":"semver","introduced":"4.19.159","fixed":"4.19.191","status":"affected"},{"type":"semver","introduced":"5.4.79","fixed":"5.4.120","status":"affected"},{"type":"semver","introduced":"5.9.10","fixed":"5.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"4.4.269","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.269","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.233","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.191","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.120","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.38","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.11.22","lastAffected":"5.11.*","status":"unaffected"},{"type":"semver","introduced":"5.12.5","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","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":"4.4.245","fixed":"4.4.269"},{"status":"affected","introduced":"4.9.245","fixed":"4.9.269"},{"status":"affected","introduced":"4.14.208","fixed":"4.14.233"},{"status":"affected","introduced":"4.19.159","fixed":"4.19.191"},{"status":"affected","introduced":"5.4.79","fixed":"5.4.120"},{"status":"affected","introduced":"5.10","fixed":"5.10.38"},{"status":"affected","introduced":"5.11","fixed":"5.11.22"},{"status":"affected","introduced":"5.12","fixed":"5.12.5"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8382b15864e5014261b4f36c2aa89723612ee058","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c25a7bb697f2e6ee65b6d63782f675bf129511a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee4b7aab93c2631c3bb0753023c5dda592bb666b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2db22ba4e0e103f00e0512e0ecce36ac78c644f8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b4eb172cc12dc102cd0ad013e53ee4463db9508","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2e3590ca39ccfd8a5a46d8c7f095cb6c7b9ae92","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd0d6117052faace5440db20fc37175efe921c7d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5bc00fdda1e934c557351a9c751a205293e68cbf","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aec86b052df6541cc97c5fca44e5934cbea4963b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-05T16:54:10.144Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46990","url":"https://www.cve.org/CVERecord?id=CVE-2021-46990","licence":"CVE Terms of Use","modified":"2026-05-23T15:18:54.715Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46990","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46990","licence":"Public domain","modified":"2026-06-17T04:16:06.027Z"}],"updatedAt":"2026-11-25T22:58:08.604Z","epss":{"score":0.00231,"percentile":0.14939,"date":"2026-12-01T12:00:22.000Z"}}