objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel's nvmet_ctrl_state_show() iterates past the six entries in csts_state_names[], potentially reading beyond the stack array. The input does not establish how an attacker could trigger the read or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions were not specified.