CVE-2025-21694
JSON

5.5medium

fs/proc: fix softlockup in __read_vmcore (part 2)

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: fs/proc: fix softlockup in __read_vmcore (part 2) Since commit 5cbcb62dddf5 ("fs/proc: fix softlockup in __read_vmcore") the number of softlockups in __read_vmcore at kdump time have gone down, but they still happen sometimes. In a memory constrained environment like the kdump image, a softlockup is not just a harmless message, but it can interfere with things like RCU freeing memory, causing the crashdump to get stuck. The second loop in __read_vmcore has a lot more opportunities for natural sleep points, like scheduling out while waiting for a data write to happen, but apparently that is not always enough. Add a cond_resched() to the second loop in __read_vmcore to (hopefully) get rid of the softlockups.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 803d5a33d5ffdc2d86dcc0cfa01655a330612cdb before 84c4ed15626574c9ac6c1039ba9c137a77bcc7f2, from 70c1835e776c8447c1aca87ddb38cfe764fe756a before 80da29deb88a3a907441fc35bb7bac309f31e713, from e1b160a50c756e0efbea290b9bf5117cb80e8c4b before 649b266606bc413407ce315f710c8ce8a88ee30a, from a373ad833a6bfe4bc6cedcf7e56a99cc6fd9a193 before 65c367bd9d4f43513c7f837df5753bea9561b836, from 518fbd644dabb6aedbdd4939c6c9cc1bf651459f before a5a2ee8144c3897d37403a69118c3e3dc5713958, from 5cbcb62dddf5346077feb82b7b0c9254222d3445 before 80828540dad0757b6337c6561d49c81038f38d87, from 5cbcb62dddf5346077feb82b7b0c9254222d3445 before cbc5dde0a461240046e8a41c43d7c3b76d5db952, 7bdf1d550ddfcd9ab797087421f77b7aceddc8a7 and 9 more
Not affected: before 6.10, from 5.4.290 up to 5.4.*, from 5.10.234 up to 5.10.*, from 5.15.177 up to 5.15.*, from 6.1.127 up to 6.1.*, from 6.6.74 up to 6.6.*
CVE List
linux linux_kernelfrom 4.19.317 before 4.20, from 5.4.279 before 5.4.290, from 5.10.221 before 5.10.234, from 5.15.162 before 5.15.177, from 6.1.95 before 6.1.127, from 6.6.35 before 6.6.74, from 6.9.6 before 6.12.11, 6.13NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: fs/proc: fix softlockup in __read_vmcore (part 2) Since commit 5cbcb62dddf5 ("fs/proc: fix softlockup in __read_vmcore") the number of softlockups in __read_vmcore at kdump time have gone down, but they still happen sometimes. In a memory constrained environment like the kdump image, a softlockup is not just a harmless message, but it can interfere with things like RCU freeing memory, causing the crashdump to get stuck. The second loop in __read_vmcore has a lot more opportunities for natural sleep points, like scheduling out while waiting for a data write to happen, but apparently that is not always enough. Add a cond_resched() to the second loop in __read_vmcore to (hopefully) get rid of the softlockups.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: fs/proc: fix softlockup in __read_vmcore (parte 2) Desde el commit 5cbcb62dddf5 ("fs/proc: fix softlockup in __read_vmcore"), la cantidad de softlockups en __read_vmcore en el momento de kdump ha disminuido, pero aún ocurren a veces. En un entorno con restricciones de memoria como la imagen kdump, un softlockup no es solo un mensaje inofensivo, sino que puede interferir con cosas como la liberación de memoria por parte de RCU, lo que hace que el crashdump se quede atascado. El segundo bucle en __read_vmcore tiene muchas más oportunidades para puntos de suspensión naturales, como programar la salida mientras se espera que se escriban datos, pero aparentemente eso no siempre es suficiente. Agregue un cond_resched() al segundo bucle en __read_vmcore para (con suerte) deshacerse de los softlockups.

References

https://git.kernel.org/stable/c/84c4ed15626574c9ac6c1039ba9c137a77bcc7f2patch
https://git.kernel.org/stable/c/80da29deb88a3a907441fc35bb7bac309f31e713patch
https://git.kernel.org/stable/c/649b266606bc413407ce315f710c8ce8a88ee30apatch
https://git.kernel.org/stable/c/65c367bd9d4f43513c7f837df5753bea9561b836patch
https://git.kernel.org/stable/c/a5a2ee8144c3897d37403a69118c3e3dc5713958patch
https://git.kernel.org/stable/c/80828540dad0757b6337c6561d49c81038f38d87patch
https://git.kernel.org/stable/c/cbc5dde0a461240046e8a41c43d7c3b76d5db952patch
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-355557.html

Sources

SourceRecordLicence
CVE ListCVE-2025-21694 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-21694 changed 2026-10-15Public domain