CVE-2025-39778

objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()

State
Published
Severity
7.1 High
Published
Apr 18, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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

objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()

The csts_state_names[] array only has six sparse entries, but the iteration code in nvmet_ctrl_state_show() iterates seven, resulting in a potential out-of-bounds stack read. Fix that.

Fixes the following warning with an UBSAN kernel:

vmlinux.o: warning: objtool: .text.nvmet_ctrl_state_show: unexpected end of section

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 649fd41420a816b11b07423ebf4dbd4ac1ac2905 to before 1adc93a525fdee8e2b311e6d5fd93eb69714ca05Affected
  • 649fd41420a816b11b07423ebf4dbd4ac1ac2905 to before 8fbf37a3577b4d64c150cafde338eee17b2f2ea4Affected
  • 649fd41420a816b11b07423ebf4dbd4ac1ac2905 to before 0cc0efc58d6c741b2868d4af24874d7fec28a575Affected
  • 649fd41420a816b11b07423ebf4dbd4ac1ac2905 to before 107a23185d990e3df6638d9a84c835f963fe30a6Affected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.23 through 6.12.*Not affected
  • 6.13.11 through 6.13.*Not affected
  • 6.14.2 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.