Bug 2313085 (CVE-2024-46737) - CVE-2024-46737 kernel: nvmet-tcp: fix kernel crash if commands allocation fails
Summary: CVE-2024-46737 kernel: nvmet-tcp: fix kernel crash if commands allocation fails
Keywords:
Status: NEW
Alias: CVE-2024-46737
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2313174
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-18 08:21 UTC by OSIDB Bzimport
Modified: 2024-09-18 09:13 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-09-18 08:21:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.