Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38325

published critical CVSS 3.1 · 9.8

ksmbd: add free_transport ops in ksmbd connection

Published
10 Jul 2025, 08:14:59 UTC
Updated
05 Aug 2026, 12:01:09 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1da8bd9a10ecd718692732294d15fd801c0eabb5 to < 52f5a52dc17a4a7b4363ac03fe2c4ef26f020dc6 · 1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e to < 3890da762a66191c440b0bd6e3ee45501edbb0c1 · 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de to < 3f3aae77280aad9f5acc6709c596148966f765c7 · 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de to < a89f5fae998bdc4d0505306f93844c9ae059d50c · e59796fc80603bcd8569d4d2e10b213c1918edb4 · 6.12.26 to < 6.12.35 · 6.14.4 to < 6.15 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.12.35 through 6.12.* (unaffected · semver) · 6.15.4 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Ubuntu noble linux-aws-6.14 Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-aws-6.14-cloud-tools-6.14.0-1015 Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-aws-6.14-headers-6.14.0-1015 Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-aws-6.14-tools-6.14.0-1015 Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Show 92 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble linux-azure-6.14 Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-azure-6.14-cloud-tools-6.14.0-1014 Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-azure-6.14-headers-6.14.0-1014 Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-azure-6.14-tools-6.14.0-1014 Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-azure-nvidia-6.14 Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-azure-nvidia-6.14-cloud-tools-6.14.0-1007 Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-azure-nvidia-6.14-headers-6.14.0-1007 Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-azure-nvidia-6.14-tools-6.14.0-1007 Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-buildinfo-6.14.0-1007-azure-nvidia Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-buildinfo-6.14.0-1014-azure Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-buildinfo-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-buildinfo-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-buildinfo-6.14.0-1015-aws Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-buildinfo-6.14.0-1015-aws-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-buildinfo-6.14.0-1015-oracle Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-buildinfo-6.14.0-1015-oracle-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-buildinfo-6.14.0-1018-gcp Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-buildinfo-6.14.0-1018-gcp-64k Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-cloud-tools-6.14.0-1007-azure-nvidia Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-cloud-tools-6.14.0-1014-azure Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-cloud-tools-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-cloud-tools-6.14.0-1015-aws Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-cloud-tools-6.14.0-1015-aws-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-gcp-6.14 Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-gcp-6.14-headers-6.14.0-1018 Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-gcp-6.14-tools-6.14.0-1018 Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-headers-6.14.0-1007-azure-nvidia Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-headers-6.14.0-1014-azure Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-headers-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-headers-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-headers-6.14.0-1015-aws Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-headers-6.14.0-1015-aws-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-headers-6.14.0-1015-oracle Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-headers-6.14.0-1015-oracle-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-headers-6.14.0-1018-gcp Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-headers-6.14.0-1018-gcp-64k Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-image-unsigned-6.14.0-1007-azure-nvidia Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-image-unsigned-6.14.0-1014-azure Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-image-unsigned-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-image-unsigned-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-image-unsigned-6.14.0-1015-aws Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-image-unsigned-6.14.0-1015-aws-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-image-unsigned-6.14.0-1015-oracle Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-image-unsigned-6.14.0-1015-oracle-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-image-unsigned-6.14.0-1018-gcp Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-image-unsigned-6.14.0-1018-gcp-64k Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-lib-rust-6.14.0-1018-gcp Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-modules-6.14.0-1007-azure-nvidia Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-modules-6.14.0-1014-azure Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-modules-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-modules-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-modules-6.14.0-1015-aws Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-modules-6.14.0-1015-aws-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-modules-6.14.0-1015-oracle Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-modules-6.14.0-1015-oracle-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-modules-6.14.0-1018-gcp Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-modules-6.14.0-1018-gcp-64k Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-modules-extra-6.14.0-1007-azure-nvidia Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-modules-extra-6.14.0-1014-azure Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-modules-extra-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-modules-extra-6.14.0-1015-aws Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-modules-extra-6.14.0-1015-aws-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-modules-extra-6.14.0-1015-oracle Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-modules-extra-6.14.0-1015-oracle-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-modules-extra-6.14.0-1018-gcp Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-modules-extra-6.14.0-1018-gcp-64k Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-modules-ipu6-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-modules-ipu7-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-modules-iwlwifi-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-modules-iwlwifi-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-modules-usbio-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-modules-vision-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-oem-6.14 Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-oem-6.14-headers-6.14.0-1014 Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-oem-6.14-tools-6.14.0-1014 Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-oracle-6.14 Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-oracle-6.14-headers-6.14.0-1015 Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-oracle-6.14-tools-6.14.0-1015 Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-realtime-6.14 Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-realtime-6.14-cloud-tools-6.14.0-1014 Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-realtime-6.14-headers-6.14.0-1014 Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-realtime-6.14-tools-6.14.0-1014 Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-tools-6.14.0-1007-azure-nvidia Advisory build 6.14.0-1007.7 USN-7834-1
Ubuntu noble linux-tools-6.14.0-1014-azure Advisory build 6.14.0-1014.14~24.04.1 USN-7834-1
Ubuntu noble linux-tools-6.14.0-1014-oem Advisory build 6.14.0-1014.14 USN-7833-1
Ubuntu noble linux-tools-6.14.0-1014-realtime Advisory build 6.14.0-1014.14~24.04.1 USN-7833-2
Ubuntu noble linux-tools-6.14.0-1015-aws Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-tools-6.14.0-1015-aws-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-3
Ubuntu noble linux-tools-6.14.0-1015-oracle Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-tools-6.14.0-1015-oracle-64k Advisory build 6.14.0-1015.15~24.04.1 USN-7833-1
Ubuntu noble linux-tools-6.14.0-1018-gcp Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4
Ubuntu noble linux-tools-6.14.0-1018-gcp-64k Advisory build 6.14.0-1018.19~24.04.1 USN-7833-4

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

5

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The vulnerable teardown path belongs to ksmbd's 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 — a remote peer triggers it by establishing and dropping an SMB Direct connection. AC:L - The type confusion is deterministic — every SMB Direct connection teardown funnels through ksmbd_conn_free() → 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. PR: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. UI: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. S: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. C:H - The type confusion plus the unconditional kfree(t) in the RDMA free_transport() leave conn->transport 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. I: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->transport->ops->writev in __smb2_lease_break_noti()), a direct control-flow hijack primitive once the freed object is groomed. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1da8bd9a10ecd718692732294d15fd801c0eabb5 to < 52f5a52dc17a4a7b4363ac03fe2c4ef26f020dc6 (affected · git)1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e to < 3890da762a66191c440b0bd6e3ee45501edbb0c1 (affected · git)21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de to < 3f3aae77280aad9f5acc6709c596148966f765c7 (affected · git)21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de to < a89f5fae998bdc4d0505306f93844c9ae059d50c (affected · git)e59796fc80603bcd8569d4d2e10b213c1918edb4 (affected · git)6.12.26 to < 6.12.35 (affected · semver)6.14.4 to < 6.15 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.12.35 through 6.12.* (unaffected · semver)6.15.4 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

ksmbd: add free_transport ops in ksmbd connection

Provenance

Schema
5.2
Searchable
yes
Content hash
d9cd5f90ffed0e86595984ba6aaa133eaa7fdcc4a2e674edbc2b56f7a3dcdae7
Ingested
23 Sep 2026, 08:46:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected