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

Published Apr 18, 2025
·
Updated

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

4 affected components
Linux Foundation Linux Kernel
Linux Linux kernel>=6.11<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2

Event History

Apr 18, 2025
CVE Published
via MITRE·07:01 AM
Data Sourced
via MITRE·07:01 AM
Description
Data Sourced
via NVD·07:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

What components are impacted by CVE-2025-39778?

CVE-2025-39778 impacts the objtool and nvmet components within the Linux kernel.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203