nvmet-tcp: fix kernel crash if commands allocation fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · < 6c04d1e3ab22cc5394ef656429638a5947f87244| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nvmet-tcp: fix kernel crash if commands allocation fails
If the commands allocation fails in nvmet_tcp_alloc_cmds() the kernel crashes in nvmet_tcp_release_queue_work() because of a NULL pointer dereference.
nvmet: failed to install queue 0 cntlid 1 ret 6 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
Fix the bug by setting queue->nr_cmds to zero in case nvmet_tcp_alloc_cmd() fails.
From the CVE record · Linux
The Linux kernel’s nvmet-tcp component can dereference a NULL pointer if command allocation fails. This can crash the kernel during queue release. The input does not establish whether an attacker can trigger the failure or what access would be required.
Engineers running Linux kernels with nvmet-tcp should check for this issue; affected versions are not specified.