{"id":"CVE-2025-39778","summary":"objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nobjtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()\n\nThe csts_state_names[] array only has six sparse entries, but the\niteration code in nvmet_ctrl_state_show() iterates seven, resulting in a\npotential out-of-bounds stack read.  Fix that.\n\nFixes the following warning with an UBSAN kernel:\n\n  vmlinux.o: warning: objtool: .text.nvmet_ctrl_state_show: unexpected end of section","modified":"2026-04-02T12:48:09.184330Z","published":"2025-04-18T07:01:37.909Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39778.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0cc0efc58d6c741b2868d4af24874d7fec28a575"},{"type":"WEB","url":"https://git.kernel.org/stable/c/107a23185d990e3df6638d9a84c835f963fe30a6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1adc93a525fdee8e2b311e6d5fd93eb69714ca05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8fbf37a3577b4d64c150cafde338eee17b2f2ea4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39778.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39778"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"649fd41420a816b11b07423ebf4dbd4ac1ac2905"},{"fixed":"1adc93a525fdee8e2b311e6d5fd93eb69714ca05"},{"fixed":"8fbf37a3577b4d64c150cafde338eee17b2f2ea4"},{"fixed":"0cc0efc58d6c741b2868d4af24874d7fec28a575"},{"fixed":"107a23185d990e3df6638d9a84c835f963fe30a6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39778.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}