Bug 2360922 (CVE-2025-39778) - CVE-2025-39778 kernel: objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()
Summary: CVE-2025-39778 kernel: objtool, nvmet: Fix out-of-bounds stack access in nvme...
Keywords:
Status: NEW
Alias: CVE-2025-39778
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-18 08:01 UTC by OSIDB Bzimport
Modified: 2025-10-12 23:33 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-18 08:01:21 UTC
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

Comment 1 Avinash Hanwate 2025-04-18 13:56:43 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041821-CVE-2025-39778-70fe@gregkh/T

Comment 3 rixydaa 2025-08-11 18:17:47 UTC Comment hidden (spam)

Note You need to log in before you can comment on or make changes to this bug.