CVE-2025-39904CWE-908

CVE-2025-39904

Medium · published October 1, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
2.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00134 · 2.7th percentile
Weakness
CWE-908 · Use of Uninitialized Resource
Published
2025-10-01T12:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 6.16, < 6.16.86.16.8
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (2)
EPSS history
Timeline
  • 01 OCT 07:44Z
    arm64: kexec: initialize kexec_buf struct in load_other_segments()
    cvelistv5