{"id":"CVE-2025-39778","state":"PUBLISHED","title":"objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()","description":"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","publishedAt":"2025-04-18T07:01:37.909Z","updatedAt":"2026-05-11T21:36:06.474Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"1adc93a525fdee8e2b311e6d5fd93eb69714ca05","versionType":"git"},{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"8fbf37a3577b4d64c150cafde338eee17b2f2ea4","versionType":"git"},{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"0cc0efc58d6c741b2868d4af24874d7fec28a575","versionType":"git"},{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"107a23185d990e3df6638d9a84c835f963fe30a6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.23","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.11","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/debugfs.c"]}],"references":["https://git.kernel.org/stable/c/1adc93a525fdee8e2b311e6d5fd93eb69714ca05","https://git.kernel.org/stable/c/8fbf37a3577b4d64c150cafde338eee17b2f2ea4","https://git.kernel.org/stable/c/0cc0efc58d6c741b2868d4af24874d7fec28a575","https://git.kernel.org/stable/c/107a23185d990e3df6638d9a84c835f963fe30a6"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/39xxx/CVE-2025-39778.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-39778","state":"PUBLISHED","datePublished":"2025-04-18T07:01:37.909Z","dateUpdated":"2026-05-11T21:36:06.474Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.129Z"},"containers":{"cna":{"title":"objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()","descriptions":[{"lang":"en","value":"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"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"1adc93a525fdee8e2b311e6d5fd93eb69714ca05","versionType":"git"},{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"8fbf37a3577b4d64c150cafde338eee17b2f2ea4","versionType":"git"},{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"0cc0efc58d6c741b2868d4af24874d7fec28a575","versionType":"git"},{"version":"649fd41420a816b11b07423ebf4dbd4ac1ac2905","status":"affected","lessThan":"107a23185d990e3df6638d9a84c835f963fe30a6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.23","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.11","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/debugfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1adc93a525fdee8e2b311e6d5fd93eb69714ca05"},{"url":"https://git.kernel.org/stable/c/8fbf37a3577b4d64c150cafde338eee17b2f2ea4"},{"url":"https://git.kernel.org/stable/c/0cc0efc58d6c741b2868d4af24874d7fec28a575"},{"url":"https://git.kernel.org/stable/c/107a23185d990e3df6638d9a84c835f963fe30a6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:36:06.474Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.23"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.13.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.14.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.1,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-10-01T16:12:56.142282Z","id":"CVE-2025-39778","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","type":"CWE","lang":"en","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T16:12:59.581Z"}}]}}}