CVE-2024-46737 (GCVE-0-2024-46737)
Vulnerability from cvelistv5
Published
2024-09-18 07:11
Modified
2026-08-05 11:38
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: 872d26a391da92ed8f0c0f5cb5fef428067b7f30
Version: 872d26a391da92ed8f0c0f5cb5fef428067b7f30
Version: 872d26a391da92ed8f0c0f5cb5fef428067b7f30
Version: 872d26a391da92ed8f0c0f5cb5fef428067b7f30
Version: 872d26a391da92ed8f0c0f5cb5fef428067b7f30
Version: 872d26a391da92ed8f0c0f5cb5fef428067b7f30
Version: 872d26a391da92ed8f0c0f5cb5fef428067b7f30
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-46737",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-29T14:52:30.516681Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-29T14:52:46.426Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T22:17:20.599Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/target/tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "03e1fd0327fa5e2174567f5fe9290fe21d21b8f4",
              "status": "affected",
              "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
              "versionType": "git"
            },
            {
              "lessThan": "50632b877ce55356f5d276b9add289b1e7ddc683",
              "status": "affected",
              "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
              "versionType": "git"
            },
            {
              "lessThan": "91dad30c5607e62864f888e735d0965567827bdf",
              "status": "affected",
              "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
              "versionType": "git"
            },
            {
              "lessThan": "7957c731fc2b23312f8935812dee5a0b14b04e2d",
              "status": "affected",
              "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
              "versionType": "git"
            },
            {
              "lessThan": "489f2913a63f528cfe3f21722583fb981967ecda",
              "status": "affected",
              "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
              "versionType": "git"
            },
            {
              "lessThan": "6c04d1e3ab22cc5394ef656429638a5947f87244",
              "status": "affected",
              "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
              "versionType": "git"
            },
            {
              "lessThan": "5572a55a6f830ee3f3a994b6b962a5c327d28cb3",
              "status": "affected",
              "version": "872d26a391da92ed8f0c0f5cb5fef428067b7f30",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/target/tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.0"
            },
            {
              "lessThan": "5.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.284",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.167",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.110",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.51",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.11",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.284",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.226",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.167",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.110",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.51",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10.10",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-tcp: fix kernel crash if commands allocation fails\n\nIf the commands allocation fails in nvmet_tcp_alloc_cmds()\nthe kernel crashes in nvmet_tcp_release_queue_work() because of\na NULL pointer dereference.\n\n  nvmet: failed to install queue 0 cntlid 1 ret 6\n  Unable to handle kernel NULL pointer dereference at\n         virtual address 0000000000000008\n\nFix the bug by setting queue-\u003enr_cmds to zero in case\nnvmet_tcp_alloc_cmd() fails."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The vulnerable code is `nvmet_tcp_install_queue()` in the NVMe-over-TCP target driver, reached directly from an NVMe Fabrics Connect capsule received on the target\u0027s listening TCP socket (default port 4420). A remote initiator anywhere on the network triggers it with ordinary NVMe/TCP protocol traffic.\nAC:L - The attacker deterministically forces the allocation failure by setting `sqsize` in the admin Connect command, which since commit 143667ee9a9c is unbounded for qid 0, making `kcalloc(131072, sizeof(struct nvmet_tcp_cmd))` exceed MAX_PAGE_ORDER and return NULL every time; on older branches the same is achieved with parallel max-size connections. No race, no memory-layout condition, and no state outside the attacker\u0027s control is involved.\nPR:N - `nvmet_install_queue()` runs inside the admin Connect handler before any DH-HMAC-CHAP authentication exchange, and `nvmet_host_allowed()` returns true unconditionally for the discovery subsystem exposed by every nvmet-tcp port. An entirely unauthenticated remote peer with TCP reachability can drive the path.\nUI:N - The crash is triggered purely by attacker-sent NVMe/TCP capsules followed by closing the connection. No action by any local user or administrator is required.\nS:U - The NULL dereference occurs in a kernel workqueue context and its impact is confined to the kernel on the target host, with no crossing into another security authority such as a hypervisor or IOMMU boundary.\nC:N - The fault is a read of `cmd-\u003ereq.cmd` at fixed address NULL+0x8 that oopses on the very first loop iteration; a remote TCP peer has no means to map the zero page, so no kernel data is read back or disclosed to the attacker.\nI:N - Execution stops at the faulting read before reaching the later `nvmet_tcp_free_cmd_buffers()` stores, and the dereferenced address is a fixed unmapped low address rather than attacker-controlled memory, so nothing is modified or corrupted.\nA:H - The result is a kernel NULL pointer dereference oops in the `nvmet_tcp_wq` kworker \u2014 a full panic on systems with `panic_on_oops` \u2014 repeatable at will by an unauthenticated remote attacker, and each attempt additionally leaks the queue allocation, socket file reference and IDA index."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:38:13.852Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/03e1fd0327fa5e2174567f5fe9290fe21d21b8f4"
        },
        {
          "url": "https://git.kernel.org/stable/c/50632b877ce55356f5d276b9add289b1e7ddc683"
        },
        {
          "url": "https://git.kernel.org/stable/c/91dad30c5607e62864f888e735d0965567827bdf"
        },
        {
          "url": "https://git.kernel.org/stable/c/7957c731fc2b23312f8935812dee5a0b14b04e2d"
        },
        {
          "url": "https://git.kernel.org/stable/c/489f2913a63f528cfe3f21722583fb981967ecda"
        },
        {
          "url": "https://git.kernel.org/stable/c/6c04d1e3ab22cc5394ef656429638a5947f87244"
        },
        {
          "url": "https://git.kernel.org/stable/c/5572a55a6f830ee3f3a994b6b962a5c327d28cb3"
        }
      ],
      "title": "nvmet-tcp: fix kernel crash if commands allocation fails",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-46737",
    "datePublished": "2024-09-18T07:11:59.300Z",
    "dateReserved": "2024-09-11T15:12:18.257Z",
    "dateUpdated": "2026-08-05T11:38:13.852Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-46737\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-29T14:52:30.516681Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-29T14:52:34.658Z\"}}], \"cna\": {\"title\": \"nvmet-tcp: fix kernel crash if commands allocation fails\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"872d26a391da\", \"lessThan\": \"03e1fd0327fa\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"872d26a391da\", \"lessThan\": \"50632b877ce5\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"872d26a391da\", \"lessThan\": \"91dad30c5607\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"872d26a391da\", \"lessThan\": \"7957c731fc2b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"872d26a391da\", \"lessThan\": \"489f2913a63f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"872d26a391da\", \"lessThan\": \"6c04d1e3ab22\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"872d26a391da\", \"lessThan\": \"5572a55a6f83\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/nvme/target/tcp.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.0\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.0\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.284\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.226\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.167\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.110\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.51\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.10\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/nvme/target/tcp.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/03e1fd0327fa5e2174567f5fe9290fe21d21b8f4\"}, {\"url\": \"https://git.kernel.org/stable/c/50632b877ce55356f5d276b9add289b1e7ddc683\"}, {\"url\": \"https://git.kernel.org/stable/c/91dad30c5607e62864f888e735d0965567827bdf\"}, {\"url\": \"https://git.kernel.org/stable/c/7957c731fc2b23312f8935812dee5a0b14b04e2d\"}, {\"url\": \"https://git.kernel.org/stable/c/489f2913a63f528cfe3f21722583fb981967ecda\"}, {\"url\": \"https://git.kernel.org/stable/c/6c04d1e3ab22cc5394ef656429638a5947f87244\"}, {\"url\": \"https://git.kernel.org/stable/c/5572a55a6f830ee3f3a994b6b962a5c327d28cb3\"}], \"x_generator\": {\"engine\": \"bippy-9e1c9544281a\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnvmet-tcp: fix kernel crash if commands allocation fails\\n\\nIf the commands allocation fails in nvmet_tcp_alloc_cmds()\\nthe kernel crashes in nvmet_tcp_release_queue_work() because of\\na NULL pointer dereference.\\n\\n  nvmet: failed to install queue 0 cntlid 1 ret 6\\n  Unable to handle kernel NULL pointer dereference at\\n         virtual address 0000000000000008\\n\\nFix the bug by setting queue-\u003enr_cmds to zero in case\\nnvmet_tcp_alloc_cmd() fails.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-11-05T09:45:38.254Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-46737\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-11-05T09:45:38.254Z\", \"dateReserved\": \"2024-09-11T15:12:18.257Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-09-18T07:11:59.300Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…