CVE-2025-39778: objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()
In the Linux kernel, the following vulnerability has been resolved:
objtool, nvmet: Fix out-of-bounds stack access in nvmetctrlstateshow()
The cstsstatenames[] array only has six sparse entries, but the iteration code in nvmetctrlstateshow() 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.nvmetctrlstateshow: unexpected end of section
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-39778?
CVE-2025-39778 has been classified as a medium severity vulnerability due to potential out-of-bounds access issues.
How do I fix CVE-2025-39778?
To fix CVE-2025-39778, it is recommended to update the Linux kernel to the latest stable version that contains the patch for this vulnerability.
What versions of the Linux kernel are affected by CVE-2025-39778?
CVE-2025-39778 affects several versions of the Linux kernel prior to the application of the fix, specific version details can be found in the patch notes.
What components are impacted by CVE-2025-39778?
CVE-2025-39778 impacts the objtool and nvmet components within the Linux kernel.
What are the potential risks associated with CVE-2025-39778?
The potential risks of CVE-2025-39778 include system crashes and denial of service due to out-of-bounds stack access.