CVE-2025-39904
JSON

5.5medium

arm64: kexec: initialize kexec_buf struct in load_other_segments()

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

Description

In the Linux kernel, the following vulnerability has been resolved: arm64: kexec: initialize kexec_buf struct in load_other_segments() Patch series "kexec: Fix invalid field access". The kexec_buf structure was previously declared without initialization. commit bf454ec31add ("kexec_file: allow to place kexec_buf randomly") added a field that is always read but not consistently populated by all architectures. This un-initialized field will contain garbage. This is also triggering a UBSAN warning when the uninitialized data was accessed: ------------[ cut here ]------------ UBSAN: invalid-load in ./include/linux/kexec.h:210:10 load of value 252 is not a valid value for type '_Bool' Zero-initializing kexec_buf at declaration ensures all fields are cleanly set, preventing future instances of uninitialized memory being used. An initial fix was already landed for arm64[0], and this patchset fixes the problem on the remaining arm64 code and on riscv, as raised by Mark. Discussions about this problem could be found at[1][2]. This patch (of 3): The kexec_buf structure was previously declared without initialization. commit bf454ec31add ("kexec_file: allow to place kexec_buf randomly") added a field that is always read but not consistently populated by all architectures. This un-initialized field will contain garbage. This is also triggering a UBSAN warning when the uninitialized data was accessed: ------------[ cut here ]------------ UBSAN: invalid-load in ./include/linux/kexec.h:210:10 load of value 252 is not a valid value for type '_Bool' Zero-initializing kexec_buf at declaration ensures all fields are cleanly set, preventing future instances of uninitialized memory being used.

Affected

Product or packageVersionsReported by
Linux Linuxfrom bf454ec31add6790f6cdc88328e38901fcbbade6 before 340cc9a3bd30b25edaf6a9708d41b5f2c10a054a, from bf454ec31add6790f6cdc88328e38901fcbbade6 before 04d3cd43700a2d0fe4bfb1012a8ec7f2e34a3507, 6.16
Not affected: before 6.16, from 6.16.8 up to 6.16.*, from 6.17 up to *
CVE List
linux linux_kernelfrom 6.16 before 6.16.8, 6.17NVD

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

CWE-908

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: arm64: kexec: initialize kexec_buf struct in load_other_segments() Patch series "kexec: Fix invalid field access". The kexec_buf structure was previously declared without initialization. commit bf454ec31add ("kexec_file: allow to place kexec_buf randomly") added a field that is always read but not consistently populated by all architectures. This un-initialized field will contain garbage. This is also triggering a UBSAN warning when the uninitialized data was accessed: ------------[ cut here ]------------ UBSAN: invalid-load in ./include/linux/kexec.h:210:10 load of value 252 is not a valid value for type '_Bool' Zero-initializing kexec_buf at declaration ensures all fields are cleanly set, preventing future instances of uninitialized memory being used. An initial fix was already landed for arm64[0], and this patchset fixes the problem on the remaining arm64 code and on riscv, as raised by Mark. Discussions about this problem could be found at[1][2]. This patch (of 3): The kexec_buf structure was previously declared without initialization. commit bf454ec31add ("kexec_file: allow to place kexec_buf randomly") added a field that is always read but not consistently populated by all architectures. This un-initialized field will contain garbage. This is also triggering a UBSAN warning when the uninitialized data was accessed: ------------[ cut here ]------------ UBSAN: invalid-load in ./include/linux/kexec.h:210:10 load of value 252 is not a valid value for type '_Bool' Zero-initializing kexec_buf at declaration ensures all fields are cleanly set, preventing future instances of uninitialized memory being used.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: arm64: kexec: inicializar la estructura kexec_buf en load_other_segments() Serie de parches 'kexec: Corrección de acceso a campo inválido'. La estructura kexec_buf fue declarada previamente sin inicialización. El commit bf454ec31add ('kexec_file: permitir colocar kexec_buf aleatoriamente') añadió un campo que siempre se lee pero no es poblado consistentemente por todas las arquitecturas. Este campo no inicializado contendrá basura. Esto también está activando una advertencia de UBSAN cuando se accedió a los datos no inicializados: ------------[ cortar aquí ]------------ UBSAN: carga inválida en ./include/linux/kexec.h:210:10 carga del valor 252 no es un valor válido para el tipo '_Bool' Inicializar kexec_buf a cero en la declaración asegura que todos los campos se establezcan limpiamente, previniendo futuras instancias de memoria no inicializada siendo utilizada. Una corrección inicial ya fue aplicada para arm64[0], y este conjunto de parches corrige el problema en el código arm64 restante y en riscv, como lo planteó Mark. Las discusiones sobre este problema se pueden encontrar en[1][2]. Este parche (de 3): La estructura kexec_buf fue declarada previamente sin inicialización. El commit bf454ec31add ('kexec_file: permitir colocar kexec_buf aleatoriamente') añadió un campo que siempre se lee pero no es poblado consistentemente por todas las arquitecturas. Este campo no inicializado contendrá basura. Esto también está activando una advertencia de UBSAN cuando se accedió a los datos no inicializados: ------------[ cortar aquí ]------------ UBSAN: carga inválida en ./include/linux/kexec.h:210:10 carga del valor 252 no es un valor válido para el tipo '_Bool' Inicializar kexec_buf a cero en la declaración asegura que todos los campos se establezcan limpiamente, previniendo futuras instancias de memoria no inicializada siendo utilizada.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39904 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-39904 changed 2026-10-19Public domain