CVE-2024-53681Published Jan 15, 2025 · Jan 15Updated Oct 28
nvmet: Don't overflow subsysnqn
Linux
Medium5.5Fix available
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:
nvmet: Don't overflow subsysnqn
nvmet_root_discovery_nqn_store treats the subsysnqn string like a fixed size buffer, even though it is dynamically allocated to the size of the string.
Create a new string with kstrndup instead of using the old buffer.
From the CVE record · Linux
The Linux kernel's nvmet_root_discovery_nqn_store can overflow a dynamically allocated subsysnqn string when updating the root discovery NQN. The input does not specify the attacker's required access or whether user interaction is needed.
Engineers running Linux kernels with nvmet should check whether their kernel includes the fix; affected versions are not specified.