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

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-04-18T07:01:37.909Z
- Modified: 2026-06-17T09:18:27.693Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 649fd41420a816b11b07423ebf4dbd4ac1ac2905 before 1adc93a525fdee8e2b311e6d5fd93eb69714ca05; from 649fd41420a816b11b07423ebf4dbd4ac1ac2905 before 8fbf37a3577b4d64c150cafde338eee17b2f2ea4; from 649fd41420a816b11b07423ebf4dbd4ac1ac2905 before 0cc0efc58d6c741b2868d4af24874d7fec28a575; from 649fd41420a816b11b07423ebf4dbd4ac1ac2905 before 107a23185d990e3df6638d9a84c835f963fe30a6; 6.11 (not affected: before 6.11; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.11 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## Every score

- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/1adc93a525fdee8e2b311e6d5fd93eb69714ca05> (patch)
- <https://git.kernel.org/stable/c/8fbf37a3577b4d64c150cafde338eee17b2f2ea4> (patch)
- <https://git.kernel.org/stable/c/0cc0efc58d6c741b2868d4af24874d7fec28a575> (patch)
- <https://git.kernel.org/stable/c/107a23185d990e3df6638d9a84c835f963fe30a6> (patch)

## Sources

- CVE List: [CVE-2025-39778](https://www.cve.org/CVERecord?id=CVE-2025-39778), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39778](https://nvd.nist.gov/vuln/detail/CVE-2025-39778), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-39778 · Whole record: https://cve.day/CVE-2025-39778.json · Rebuilt by cve.day 2026-11-25T22:58:56.762Z
