GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2023-53643 (GCVE-0-2023-53643)

Vulnerability from cvelistv5 – Published: 2025-10-07 15:19 – Updated: 2026-08-05 09:15
VLAI
Title
nvme-tcp: don't access released socket during error recovery
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 CPE status
Linux Linux Affected: 02c57a82c0081141abc19150beab48ef47f97f18 , < fe2d9e54165dadaa0d0cc3355c0be9c3e129fa0d (git)
Affected: 02c57a82c0081141abc19150beab48ef47f97f18 , < d82f762db4776fa11de88018f0f5de2d5db72a72 (git)
Affected: 02c57a82c0081141abc19150beab48ef47f97f18 , < 76d54bf20cdcc1ed7569a89885e09636e9a8d71d (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.1
Unaffected: 0 , < 6.1 (semver)
Unaffected: 6.1.18 , ≤ 6.1.* (semver)
Unaffected: 6.2.5 , ≤ 6.2.* (semver)
Unaffected: 6.3 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "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-08-05T09:15:19.014Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2023-53643",
      "date": "2026-09-17",
      "epss": "0.00162",
      "percentile": "0.05802"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53643\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-10-07T16:15:47.643\",\"lastModified\":\"2026-08-04T10:19:16.050\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/nvme/host/tcp.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"02c57a82c0081141abc19150beab48ef47f97f18\",\"lessThan\":\"fe2d9e54165dadaa0d0cc3355c0be9c3e129fa0d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"02c57a82c0081141abc19150beab48ef47f97f18\",\"lessThan\":\"d82f762db4776fa11de88018f0f5de2d5db72a72\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"02c57a82c0081141abc19150beab48ef47f97f18\",\"lessThan\":\"76d54bf20cdcc1ed7569a89885e09636e9a8d71d\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/nvme/host/tcp.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.1\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.1\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.18\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.2.5\",\"lessThanOrEqual\":\"6.2.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.3\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-476\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.1\",\"versionEndExcluding\":\"6.1.18\",\"matchCriteriaId\":\"E5630603-E179-4468-AD0D-45FD417E6EDB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.2.5\",\"matchCriteriaId\":\"0575B33B-A320-4E51-84CA-10C937341E02\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/76d54bf20cdcc1ed7569a89885e09636e9a8d71d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d82f762db4776fa11de88018f0f5de2d5db72a72\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/fe2d9e54165dadaa0d0cc3355c0be9c3e129fa0d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:18:31+00:00",
      "cve": "CVE-2023-53643",
      "id": "CVE-2023-53643",
      "initial_release_date": "2023-01-01T00:00:00+00:00",
      "product_status:known_affected": "108",
      "product_status:known_not_affected": "166",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: nvme-tcp: don\u0027t access released socket during error recovery",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-53643.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-29T02:05:57Z",
      "cve": "CVE-2023-53643",
      "id": "CVE-2023-53643",
      "initial_release_date": "2025-10-07T23:47:13Z",
      "product_status:known_not_affected": "523",
      "product_status:recommended": "29",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2023-53643",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2023-53643.json",
      "version": "12"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…