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

CVE-2025-38325 (GCVE-0-2025-38325)

Vulnerability from cvelistv5 – Published: 2025-07-10 08:14 – Updated: 2026-08-05 12:01
VLAI
Title
ksmbd: add free_transport ops in ksmbd connection
Summary
In the Linux kernel, the following vulnerability has been resolved: ksmbd: add free_transport ops in ksmbd connection free_transport function for tcp connection can be called from smbdirect. It will cause kernel oops. This patch add free_transport ops in ksmbd connection, and add each free_transports for tcp and smbdirect.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 1da8bd9a10ecd718692732294d15fd801c0eabb5 , < 52f5a52dc17a4a7b4363ac03fe2c4ef26f020dc6 (git)
Affected: 1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e , < 3890da762a66191c440b0bd6e3ee45501edbb0c1 (git)
Affected: 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de , < 3f3aae77280aad9f5acc6709c596148966f765c7 (git)
Affected: 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de , < a89f5fae998bdc4d0505306f93844c9ae059d50c (git)
Affected: e59796fc80603bcd8569d4d2e10b213c1918edb4 (git)
Affected: 6.12.26 , < 6.12.35 (semver)
Affected: 6.14.4 , < 6.15 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.15
Unaffected: 0 , < 6.15 (semver)
Unaffected: 6.12.35 , ≤ 6.12.* (semver)
Unaffected: 6.15.4 , ≤ 6.15.* (semver)
Unaffected: 6.16 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/server/connection.c",
            "fs/smb/server/connection.h",
            "fs/smb/server/transport_rdma.c",
            "fs/smb/server/transport_tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "52f5a52dc17a4a7b4363ac03fe2c4ef26f020dc6",
              "status": "affected",
              "version": "1da8bd9a10ecd718692732294d15fd801c0eabb5",
              "versionType": "git"
            },
            {
              "lessThan": "3890da762a66191c440b0bd6e3ee45501edbb0c1",
              "status": "affected",
              "version": "1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e",
              "versionType": "git"
            },
            {
              "lessThan": "3f3aae77280aad9f5acc6709c596148966f765c7",
              "status": "affected",
              "version": "21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de",
              "versionType": "git"
            },
            {
              "lessThan": "a89f5fae998bdc4d0505306f93844c9ae059d50c",
              "status": "affected",
              "version": "21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e59796fc80603bcd8569d4d2e10b213c1918edb4",
              "versionType": "git"
            },
            {
              "lessThan": "6.12.35",
              "status": "affected",
              "version": "6.12.26",
              "versionType": "semver"
            },
            {
              "lessThan": "6.15",
              "status": "affected",
              "version": "6.14.4",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/server/connection.c",
            "fs/smb/server/connection.h",
            "fs/smb/server/transport_rdma.c",
            "fs/smb/server/transport_tcp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.15"
            },
            {
              "lessThan": "6.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.15.*",
              "status": "unaffected",
              "version": "6.15.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.16",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.35",
                  "versionStartIncluding": "6.12.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15.4",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.14.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: add free_transport ops in ksmbd connection\n\nfree_transport function for tcp connection can be called from smbdirect.\nIt will cause kernel oops. This patch add free_transport ops in ksmbd\nconnection, and add each free_transports for tcp and smbdirect."
        }
      ],
      "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 vulnerable teardown path belongs to ksmbd\u0027s in-kernel SMB Direct transport, whose RDMA CM listener accepts connections from remote peers on port 445 (InfiniBand) / 5445 (iWARP), and is reachable over routable IP via iWARP/RoCEv2 or software providers (siw/rxe). No local access is needed \u2014 a remote peer triggers it by establishing and dropping an SMB Direct connection.\nAC:L - The type confusion is deterministic \u2014 every SMB Direct connection teardown funnels through ksmbd_conn_free() \u2192 ksmbd_free_transport() and fabricates a socket pointer from the status/full_packet_received bytes, with no race or memory-layout precondition. The premature-free variant simply requires holding an oplock/lease at disconnect time, which the attacker fully controls.\nPR:N - Connection setup and teardown happen entirely before SMB2 SESSION_SETUP: the error path in smb_direct_handle_connect_request() and the normal ksmbd_conn_handler_loop() exit both call free_transport() with no credentials verified. An unauthenticated peer that connects and disconnects triggers the confused free.\nUI:N - The attacker drives the entire sequence by opening and closing an SMB Direct connection; no action by any local user or administrator is required beyond ksmbd already serving SMB Direct.\nS:U - The corruption is confined to kernel memory managed by the ksmbd server within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The type confusion plus the unconditional kfree(t) in the RDMA free_transport() leave conn-\u003etransport dangling and double-free the slab object, giving a use-after-free on a large kmalloc allocation that an attacker can reclaim and read back through ksmbd_conn_write()/rdma_read paths, which is leverageable for arbitrary kernel memory disclosure.\nI:H - This is a genuine type confusion combined with a double free and a use-after-free whose reuse ends in an indirect call through freed memory (conn-\u003etransport-\u003eops-\u003ewritev in __smb2_lease_break_noti()), a direct control-flow hijack primitive once the freed object is groomed.\nA:H - Every SMB Direct teardown calls sock_release() on a fabricated pointer built from the status enum, producing a guaranteed kernel oops that kills the ksmbd kthread and leaks its RDMA resources, and panics outright on panic_on_oops configurations common in appliances and embedded deployments."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:01:09.621Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/52f5a52dc17a4a7b4363ac03fe2c4ef26f020dc6"
        },
        {
          "url": "https://git.kernel.org/stable/c/3890da762a66191c440b0bd6e3ee45501edbb0c1"
        },
        {
          "url": "https://git.kernel.org/stable/c/3f3aae77280aad9f5acc6709c596148966f765c7"
        },
        {
          "url": "https://git.kernel.org/stable/c/a89f5fae998bdc4d0505306f93844c9ae059d50c"
        }
      ],
      "title": "ksmbd: add free_transport ops in ksmbd connection",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-38325",
    "datePublished": "2025-07-10T08:14:59.544Z",
    "dateReserved": "2025-04-16T04:51:24.004Z",
    "dateUpdated": "2026-08-05T12:01:09.621Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-38325",
      "date": "2026-09-16",
      "epss": "0.00405",
      "percentile": "0.34277"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-38325\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-07-10T09:15:26.673\",\"lastModified\":\"2026-07-30T06:23:07.353\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nksmbd: add free_transport ops in ksmbd connection\\n\\nfree_transport function for tcp connection can be called from smbdirect.\\nIt will cause kernel oops. This patch add free_transport ops in ksmbd\\nconnection, and add each free_transports for tcp and smbdirect.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: se a\u00f1aden operaciones free_transport en la conexi\u00f3n ksmbd. La funci\u00f3n free_transport para la conexi\u00f3n TCP se puede llamar desde smbdirect. Esto provoca errores en el kernel. Este parche a\u00f1ade operaciones free_transport en la conexi\u00f3n ksmbd y a\u00f1ade free_transport tanto para TCP como para smbdirect.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/smb/server/connection.c\",\"fs/smb/server/connection.h\",\"fs/smb/server/transport_rdma.c\",\"fs/smb/server/transport_tcp.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"1da8bd9a10ecd718692732294d15fd801c0eabb5\",\"lessThan\":\"52f5a52dc17a4a7b4363ac03fe2c4ef26f020dc6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e\",\"lessThan\":\"3890da762a66191c440b0bd6e3ee45501edbb0c1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de\",\"lessThan\":\"3f3aae77280aad9f5acc6709c596148966f765c7\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de\",\"lessThan\":\"a89f5fae998bdc4d0505306f93844c9ae059d50c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"e59796fc80603bcd8569d4d2e10b213c1918edb4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6.12.26\",\"lessThan\":\"6.12.35\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.14.4\",\"lessThan\":\"6.15\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/smb/server/connection.c\",\"fs/smb/server/connection.h\",\"fs/smb/server/transport_rdma.c\",\"fs/smb/server/transport_tcp.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.15\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.15\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.35\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.15.4\",\"lessThanOrEqual\":\"6.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.16\",\"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:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"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\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.12.26\",\"versionEndExcluding\":\"6.12.35\",\"matchCriteriaId\":\"2CF54BB0-98BB-46E4-BD08-42BCA79598B4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.14.4\",\"versionEndExcluding\":\"6.15\",\"matchCriteriaId\":\"786E593C-5048-4AE0-9421-71BE44AB6058\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.15.1\",\"versionEndExcluding\":\"6.15.4\",\"matchCriteriaId\":\"BC343CA8-C054-44E4-830F-78CCA31461E8\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*\",\"matchCriteriaId\":\"A1ECC65A-EE37-4479-8E99-4BB68A22A31F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"13FC0DDE-E513-465E-9E81-515702D49B74\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"8C7B5B0E-4EEB-48F5-B4CF-0935A7633845\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*\",\"matchCriteriaId\":\"2D240580-3048-49B2-9E27-F115A9DF8224\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.15:rc6:*:*:*:*:*:*\",\"matchCriteriaId\":\"90320558-E553-4EF5-8A0B-0F5D20113BD2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.15:rc7:*:*:*:*:*:*\",\"matchCriteriaId\":\"C300BA32-5854-4B59-A00A-18A402F291D0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"6D4894DB-CCFE-4602-B1BF-3960B2E19A01\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"09709862-E348-4378-8632-5A7813EDDC86\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3890da762a66191c440b0bd6e3ee45501edbb0c1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/3f3aae77280aad9f5acc6709c596148966f765c7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/52f5a52dc17a4a7b4363ac03fe2c4ef26f020dc6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a89f5fae998bdc4d0505306f93844c9ae059d50c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:22:32+00:00",
      "cve": "CVE-2025-38325",
      "id": "CVE-2025-38325",
      "initial_release_date": "2025-07-10T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: ksmbd: add free_transport ops in ksmbd connection",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-38325.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-30T01:55:31Z",
      "cve": "CVE-2025-38325",
      "id": "CVE-2025-38325",
      "initial_release_date": "2025-07-10T23:22:32Z",
      "product_status:known_not_affected": "524",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-38325",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-38325.json",
      "version": "9"
    }
  }
}



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…