CVE-2023-53006 (GCVE-0-2023-53006)
Vulnerability from cvelistv5
Published
2025-03-27 16:43
Modified
2026-08-05 09:12
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: cifs: Fix oops due to uncleared server->smbd_conn in reconnect In smbd_destroy(), clear the server->smbd_conn pointer after freeing the smbd_connection struct that it points to so that reconnection doesn't get confused.
Impacted products
Vendor Product Version
Linux Linux Version: 8ef130f9ec27973f7b49e20c5a3b9134ca33026c
Version: 8ef130f9ec27973f7b49e20c5a3b9134ca33026c
Version: 8ef130f9ec27973f7b49e20c5a3b9134ca33026c
Version: 8ef130f9ec27973f7b49e20c5a3b9134ca33026c
Version: 8ef130f9ec27973f7b49e20c5a3b9134ca33026c
Version: 8ef130f9ec27973f7b49e20c5a3b9134ca33026c
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/cifs/smbdirect.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a9640c0b268405f2540e8203a545e930ea88bb7d",
              "status": "affected",
              "version": "8ef130f9ec27973f7b49e20c5a3b9134ca33026c",
              "versionType": "git"
            },
            {
              "lessThan": "91be54849d5392050f5b847b42bd5e6221551ac8",
              "status": "affected",
              "version": "8ef130f9ec27973f7b49e20c5a3b9134ca33026c",
              "versionType": "git"
            },
            {
              "lessThan": "e037baee16e0b9ace7e730888fcae9cec11daff2",
              "status": "affected",
              "version": "8ef130f9ec27973f7b49e20c5a3b9134ca33026c",
              "versionType": "git"
            },
            {
              "lessThan": "4b83bc6f87eedab4599b0123e572a422689444be",
              "status": "affected",
              "version": "8ef130f9ec27973f7b49e20c5a3b9134ca33026c",
              "versionType": "git"
            },
            {
              "lessThan": "5109607a4ece7cd8536172bf7549eb4dce1f3576",
              "status": "affected",
              "version": "8ef130f9ec27973f7b49e20c5a3b9134ca33026c",
              "versionType": "git"
            },
            {
              "lessThan": "b7ab9161cf5ddc42a288edf9d1a61f3bdffe17c7",
              "status": "affected",
              "version": "8ef130f9ec27973f7b49e20c5a3b9134ca33026c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/cifs/smbdirect.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.16"
            },
            {
              "lessThan": "4.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.272",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.231",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.166",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.91",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.272",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.231",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.166",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.91",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.9",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: Fix oops due to uncleared server-\u003esmbd_conn in reconnect\n\nIn smbd_destroy(), clear the server-\u003esmbd_conn pointer after freeing the\nsmbd_connection struct that it points to so that reconnection doesn\u0027t get\nconfused."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The UAF is in the CIFS client\u0027s SMB Direct reconnect path (`cifs_abort_connection` \u2192 `smbd_destroy` \u2192 `smbd_reconnect`), driven by a remote peer dropping the RDMA/iWARP connection; iWARP/RoCEv2 are IP-reachable so a malicious or compromised SMB Direct server is a network attacker.\nAC:L - After any disconnect, `__cifs_reconnect` deterministically frees `smbd_conn` then immediately dereferences the dangling pointer in `smbd_reconnect`; the remote peer forces disconnects at will and can retry unboundedly every reconnect cycle.\nPR:N - The attacker is the remote SMB Direct server (or on-path peer) and needs no account or privileges on the victim; the vulnerable abort/reconnect runs in the cifsd kernel thread on the transport before SMB re-authentication.\nUI:N - Against an already-mounted `rdma` CIFS share (typical fstab/autofs enterprise setup), cifsd automatically reconnects on peer disconnect with no victim action at exploit time.\nS:U - The use-after-free corrupts host kernel heap (`smbd_connection` in kmalloc-4k) within the same OS security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - This is a use-after-free of the heap-allocated `smbd_connection`; reclaim/grooming of the freed object lets the reconnect path read attacker-influenced fields (e.g. `transport_status`), yielding a kernel disclosure primitive per UAF guidance.\nI:H - If the reclaimed object presents `transport_status == SMBD_CONNECTED`, `smbd_destroy` runs RDMA teardown (disconnect, QP drain, frees) on attacker-controlled structure fields, giving a classic heap UAF write/control-flow hijack primitive.\nA:H - The dangling `server-\u003esmbd_conn` dereference is a confirmed KASAN use-after-free/oops in `smbd_reconnect` during reconnect and is repeatedly triggerable by peer disconnects."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:12:20.807Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a9640c0b268405f2540e8203a545e930ea88bb7d"
        },
        {
          "url": "https://git.kernel.org/stable/c/91be54849d5392050f5b847b42bd5e6221551ac8"
        },
        {
          "url": "https://git.kernel.org/stable/c/e037baee16e0b9ace7e730888fcae9cec11daff2"
        },
        {
          "url": "https://git.kernel.org/stable/c/4b83bc6f87eedab4599b0123e572a422689444be"
        },
        {
          "url": "https://git.kernel.org/stable/c/5109607a4ece7cd8536172bf7549eb4dce1f3576"
        },
        {
          "url": "https://git.kernel.org/stable/c/b7ab9161cf5ddc42a288edf9d1a61f3bdffe17c7"
        }
      ],
      "title": "cifs: Fix oops due to uncleared server-\u003esmbd_conn in reconnect",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53006",
    "datePublished": "2025-03-27T16:43:37.225Z",
    "dateReserved": "2025-03-27T16:40:15.745Z",
    "dateUpdated": "2026-08-05T09:12:20.807Z",
    "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…