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

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-02)
- Published: 2024-09-18T07:11:59.300Z
- Modified: 2026-08-05T11:38:13.852Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 03e1fd0327fa5e2174567f5fe9290fe21d21b8f4; from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 50632b877ce55356f5d276b9add289b1e7ddc683; from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 91dad30c5607e62864f888e735d0965567827bdf; from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 7957c731fc2b23312f8935812dee5a0b14b04e2d; from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 489f2913a63f528cfe3f21722583fb981967ecda; from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 6c04d1e3ab22cc5394ef656429638a5947f87244; from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 5572a55a6f830ee3f3a994b6b962a5c327d28cb3; 5.0 (not affected: before 5.0; from 5.4.284 up to 5.4.*; from 5.10.226 up to 5.10.*; from 5.15.167 up to 5.15.*; from 6.1.110 up to 6.1.*; from 6.6.51 up to 6.6.*; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 5.0 before 5.4.284; from 5.5 before 5.10.226; from 5.11 before 5.15.167; from 5.16 before 6.1.110; from 6.2 before 6.6.51; from 6.7 before 6.10.10; 6.11

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/03e1fd0327fa5e2174567f5fe9290fe21d21b8f4> (patch)
- <https://git.kernel.org/stable/c/50632b877ce55356f5d276b9add289b1e7ddc683> (patch)
- <https://git.kernel.org/stable/c/91dad30c5607e62864f888e735d0965567827bdf> (patch)
- <https://git.kernel.org/stable/c/7957c731fc2b23312f8935812dee5a0b14b04e2d> (patch)
- <https://git.kernel.org/stable/c/489f2913a63f528cfe3f21722583fb981967ecda> (patch)
- <https://git.kernel.org/stable/c/6c04d1e3ab22cc5394ef656429638a5947f87244> (patch)
- <https://git.kernel.org/stable/c/5572a55a6f830ee3f3a994b6b962a5c327d28cb3> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

- CVE List: [CVE-2024-46737](https://www.cve.org/CVERecord?id=CVE-2024-46737), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-46737](https://nvd.nist.gov/vuln/detail/CVE-2024-46737), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-46737 · Whole record: https://cve.day/CVE-2024-46737.json · Rebuilt by cve.day 2026-11-25T22:58:45.546Z
