Security mailing lists by PureSourceCode

CVE-2025-38433

MEDIUM 5.5CVSS 3.1

In the Linux kernel, the following vulnerability has been resolved:

riscv: fix runtime constant support for nommu kernels

the __runtime_fixup_32 function does not handle the case where val is
zero correctly (as might occur when patching a nommu kernel and referring
to a physical address below the 4GiB boundary whose upper 32 bits are all
zero) because nothing in the existing logic prevents the code from taking
the else branch of both nop-checks and emitting two nop instructions.

This leaves random garbage in the register that is supposed to receive the
upper 32 bits of the pointer instead of zero that when combined with the
value for the lower 32 bits yields an invalid pointer and causes a kernel
panic when that pointer is eventually accessed.

The author clearly considered the fact that if the lui is converted into
a nop that the second instruction needs to be adjusted to become an li
instead of an addi, hence introducing the addi_insn_mask variable, but
didn't follow that logic through fully to the case where the else branch
executes. To fix it just adjust the logic to ensure that the second else
branch is not taken if the first instruction will be patched to a nop.

Published
25 Jul 2025
Last modified
17 Jun 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Analyzed
Weakness
CWE-476
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linux linux_kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
>= 6.15, < 6.15.5 6.15.5
NVD linux linux_kernel
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
= 6.16
NVD linux linux_kernel
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
= 6.16
NVD linux linux_kernel
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
= 6.16

References

History

  • 25 Nov 2026 20:58 UTC · NVD: first stored (published 25 Jul 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.