What’s Vulnerable › Vulnerabilities

CVE-2024-46737: nvmet-tcp: fix kernel crash if commands allocation fails

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.226, 5.15.167, 5.4.284, 6.1.110. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-46737 or the next vulnerability affects your stack