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 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
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.23, 6.13.11, 6.14.2
- CVEs
- CVE-2025-39778
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 17:56 UTC · Revision 1
Source evidence
objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()
core-osv · Original sourcePublished 18 Apr 2025, 07:01 UTC
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
osv:CVE-2025-39778
Kernel
Fixed versions: 6.12.23, 6.13.11, 6.14.2
Complete source record
{
"id": "87608586bb3a8dc20d2da9f2f65b42b78a019250fae6542cdb2e4d3c90285de4",
"url": "https://osv.dev/vulnerability/CVE-2025-39778",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()",
"summary": "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",
"evidence": "osv:CVE-2025-39778",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.23",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.11",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-39778",
"aliases": [
"CVE-2025-39778"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.11.0"
},
{
"fixed": "6.12.23"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.11"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.14.0"
},
{
"fixed": "6.14.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39778.json"
}
}
],
"modified": "2026-10-28T02:30:38.483696858Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0cc0efc58d6c741b2868d4af24874d7fec28a575",
"https://git.kernel.org/stable/c/107a23185d990e3df6638d9a84c835f963fe30a6",
"https://git.kernel.org/stable/c/1adc93a525fdee8e2b311e6d5fd93eb69714ca05",
"https://git.kernel.org/stable/c/8fbf37a3577b4d64c150cafde338eee17b2f2ea4",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39778.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-39778",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39778.json"
}
},
"related_cves": [
{
"value": "CVE-2025-39778",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505534,
"published_at": "2025-04-18T07:01:37.909+00:00"
}