CVE-2023-53643 (GCVE-0-2023-53643)
Vulnerability from cvelistv5
Published
2025-10-07 15:19
Modified
2026-10-15 21:41
Summary
In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: don't access released socket during error recovery While the error recovery work is temporarily failing reconnect attempts, running the 'nvme list' command causes a kernel NULL pointer dereference by calling getsockname() with a released socket. During error recovery work, the nvme tcp socket is released and a new one created, so it is not safe to access the socket without proper check.
Impacted products
Vendor Product Version
Linux Linux Version: 02c57a82c0081141abc19150beab48ef47f97f18
Version: 02c57a82c0081141abc19150beab48ef47f97f18
Version: 02c57a82c0081141abc19150beab48ef47f97f18
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2023-53643",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-15T21:36:13.085900Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-15T21:41:32.662Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/host/tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "fe2d9e54165dadaa0d0cc3355c0be9c3e129fa0d",
              "status": "affected",
              "version": "02c57a82c0081141abc19150beab48ef47f97f18",
              "versionType": "git"
            },
            {
              "lessThan": "d82f762db4776fa11de88018f0f5de2d5db72a72",
              "status": "affected",
              "version": "02c57a82c0081141abc19150beab48ef47f97f18",
              "versionType": "git"
            },
            {
              "lessThan": "76d54bf20cdcc1ed7569a89885e09636e9a8d71d",
              "status": "affected",
              "version": "02c57a82c0081141abc19150beab48ef47f97f18",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/host/tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.1"
            },
            {
              "lessThan": "6.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.18",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.5",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-tcp: don\u0027t access released socket during error recovery\n\nWhile the error recovery work is temporarily failing reconnect attempts,\nrunning the \u0027nvme list\u0027 command causes a kernel NULL pointer dereference\nby calling getsockname() with a released socket.\n\nDuring error recovery work, the nvme tcp socket is released and a new one\ncreated, so it is not safe to access the socket without proper check."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The dereference is reached only through a local sysfs read of `/sys/class/nvme/nvmeX/address`, which invokes `nvme_tcp_get_address()`; a remote peer can induce the vulnerable state by dropping the fabric connection but cannot itself complete the trigger.\nAC:L - The bad state persists for the full 10-second default reconnect_delay and recurs for up to 600 seconds of ctrl_loss_tmo, and the world-readable `state` attribute lets the attacker observe the `connecting` window and time the read deterministically \u2014 the commit itself reports a plain `nvme list` reproducing it.\nPR:L - The `address` attribute is `S_IRUGO` (0444), so any unprivileged local account can read it; no capability, namespace trick, or device access is needed.\nUI:N - The attacker performs the sysfs read directly and needs no victim action; the same crash also occurs unaided from routine monitoring tools such as `nvme list`.\nS:U - Impact is confined to the kernel of the host running the NVMe-TCP initiator, with no crossing of a VM, IOMMU, or other security-authority boundary.\nC:H - `nvme_tcp_free_queue()` releases the socket without clearing `queue-\u003esock`, so `kernel_getsockname()` reads `ops` and address data from freed `sock_inode_cache` memory that an unprivileged user can reclaim by spraying sockets, and the result is copied into the world-readable sysfs buffer, disclosing kernel/other-socket state.\nI:H - The use-after-free performs an indirect call through `sock-\u003eops-\u003egetname` loaded from freed, reclaimable slab memory, giving a control-flow hijack primitive once the attacker grooms the reclaimed object.\nA:H - In the common case `queue-\u003esock` is NULL or points at a released socket with `ops` cleared, so the read produces an immediate kernel NULL pointer dereference and oops/panic, repeatable on demand."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:15:19.014Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/fe2d9e54165dadaa0d0cc3355c0be9c3e129fa0d"
        },
        {
          "url": "https://git.kernel.org/stable/c/d82f762db4776fa11de88018f0f5de2d5db72a72"
        },
        {
          "url": "https://git.kernel.org/stable/c/76d54bf20cdcc1ed7569a89885e09636e9a8d71d"
        }
      ],
      "title": "nvme-tcp: don\u0027t access released socket during error recovery",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53643",
    "datePublished": "2025-10-07T15:19:42.374Z",
    "dateReserved": "2025-10-07T15:16:59.658Z",
    "dateUpdated": "2026-10-15T21:41:32.662Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


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…