CVE-2025-38437
published high CVSS 3.1 · 8.8ksmbd: fix potential use-after-free in oplock/lease break ack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < e38ec88a2b42c494601b1213816d75f0b54d9bf0 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 97c355989928a5f60b228ef5266c1be67a46cdf9 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 815f1161d6dbc4c54ccf94b7d3fdeab34b4d7477 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 8106adc21a2270c16abf69cd74ccd7c79c6e7acd · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 50f930db22365738d9387c974416f38a06e8057e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.146 through 6.1.* (unaffected · semver) · 6.6.99 through 6.6.* (unaffected · semver) · 6.12.39 through 6.12.* (unaffected · semver) · 6.15.7 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 |
| Debian | bookworm | linux | Advisory build | 6.1.147-1 | DSA-5973-1 |
| Ubuntu | bionic | linux | Advisory build | 4.15.0-260.272 | LSN-0122-1 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.153-1~deb11u1 | DLA-4328-1 |
| Debian | trixie | linux | Advisory build | 6.12.41-1 | DSA-5975-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | linux-aws | Advisory build | 4.15.0-1197.210 | LSN-0122-1 |
| Ubuntu | bionic | linux-azure-4.15 | Advisory build | 4.15.0-1207.222 | LSN-0122-1 |
| Ubuntu | bionic | linux-gcp-4.15 | Advisory build | 4.15.0-1190.207 | LSN-0122-1 |
| Ubuntu | bionic | linux-hwe-5.4 | Advisory build | 5.4.0-245.265~18.04.1 | LSN-0122-1 |
| Ubuntu | bionic | linux-oracle | Advisory build | 4.15.0-1160.171 | LSN-0122-1 |
| Ubuntu | focal | linux | Advisory build | 5.4.0-245.265 | LSN-0122-1 |
| Ubuntu | jammy | linux | Advisory build | 5.15.0-202.212 | LSN-0122-1 |
| Ubuntu | jammy | linux-aws | Advisory build | 5.15.0-1119.126 | LSN-0122-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1065.68~22.04.1 | LSN-0122-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1046 | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1046 | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1046 | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-azure | Advisory build | 5.15.0-1125.134 | LSN-0122-1 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1051 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1051 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1051 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-100-generic | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-100-generic-64k | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-100-lowlatency | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-100-lowlatency-64k | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1043-oracle | Advisory build | 6.8.0-1043.44~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1043-oracle-64k | Advisory build | 6.8.0-1043.44~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1044-ibm | Advisory build | 6.8.0-1044.44~22.04.1 | USN-8028-8 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1046-aws | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1046-aws-64k | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1046-nvidia | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1046-nvidia-64k | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1047-gcp | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1047-gcp-64k | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.1-1041-realtime | Advisory build | 6.8.1-1041.42~22.04.1 | USN-8028-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-100-generic | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-100-lowlatency | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1046-aws | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1046-aws-64k | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.1-1041-realtime | Advisory build | 6.8.1-1041.42~22.04.1 | USN-8028-2 |
| Ubuntu | jammy | linux-gcp | Advisory build | 5.15.0-1120.130 | LSN-0122-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1069.77~22.04.1 | LSN-0122-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1047 | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1047 | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-gke | Advisory build | 5.15.0-1115.121 | LSN-0122-1 |
| Ubuntu | jammy | linux-headers-6.8.0-100-generic | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-headers-6.8.0-100-generic-64k | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-headers-6.8.0-100-lowlatency | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-headers-6.8.0-100-lowlatency-64k | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-headers-6.8.0-1043-oracle | Advisory build | 6.8.0-1043.44~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-headers-6.8.0-1043-oracle-64k | Advisory build | 6.8.0-1043.44~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-headers-6.8.0-1044-ibm | Advisory build | 6.8.0-1044.44~22.04.1 | USN-8028-8 |
| Ubuntu | jammy | linux-headers-6.8.0-1046-aws | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-headers-6.8.0-1046-aws-64k | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-headers-6.8.0-1046-nvidia | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-headers-6.8.0-1046-nvidia-64k | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-headers-6.8.0-1047-gcp | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1047-gcp-64k | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-headers-6.8.1-1041-realtime | Advisory build | 6.8.1-1041.42~22.04.1 | USN-8028-2 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-149.149~22.04.1 | LSN-0122-1 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-100 | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-100 | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-100 | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-ibm | Advisory build | 5.15.0-1113.117 | LSN-0122-1 |
| Ubuntu | jammy | linux-ibm-6.8 | Advisory build | 6.8.0-1044.44~22.04.1 | USN-8028-8 |
| Ubuntu | jammy | linux-ibm-6.8 | Advisory build | 6.8.0-1066.67~22.04.1 | LSN-0122-1 |
| Ubuntu | jammy | linux-ibm-6.8-headers-6.8.0-1044 | Advisory build | 6.8.0-1044.44~22.04.1 | USN-8028-8 |
| Ubuntu | jammy | linux-ibm-6.8-tools-6.8.0-1044 | Advisory build | 6.8.0-1044.44~22.04.1 | USN-8028-8 |
| Ubuntu | jammy | linux-image-6.8.0-100-generic | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-100-generic | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-100-generic-64k | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-100-lowlatency | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-100-lowlatency-64k | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1043-oracle | Advisory build | 6.8.0-1043.44~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1043-oracle-64k | Advisory build | 6.8.0-1043.44~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1044-ibm | Advisory build | 6.8.0-1044.44~22.04.1 | USN-8028-8 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1046-aws | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1046-aws-64k | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1046-nvidia | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1046-nvidia-64k | Advisory build | 6.8.0-1046.49~22.04.1 | USN-8028-5 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1047-gcp | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1047-gcp-64k | Advisory build | 6.8.0-1047.50~22.04.2 | USN-8031-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.1-1041-realtime | Advisory build | 6.8.1-1041.42~22.04.1 | USN-8028-2 |
| Ubuntu | jammy | linux-lowlatency | Advisory build | 5.15.0-197.207 | LSN-0122-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-100 | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-100 | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-100-lowlatency | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-100 | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-modules-6.8.0-100-generic | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-modules-6.8.0-100-generic-64k | Advisory build | 6.8.0-100.100~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-modules-6.8.0-100-lowlatency | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
| Ubuntu | jammy | linux-modules-6.8.0-100-lowlatency-64k | Advisory build | 6.8.0-100.100.1~22.04.1 | USN-8028-6 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix potential use-after-free in oplock/lease break ack If ksmbd_iov_pin_rsp return error, use-after-free can happen by accessing opinfo->state and opinfo_put and ksmbd_fd_put could called twice.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The vulnerable code is the ksmbd in-kernel SMB server's SMB2_OPLOCK_BREAK handler (fs/smb/server/smb2pdu.c), reached directly from an SMB2 PDU received on TCP/445. No local access is required. AC:L - The attacker fully controls both sides of the sequence — granting the oplock/lease, triggering the break from a second connection, and sending the ack — and can drive the only remaining condition (a `krealloc` failure under `__GFP_RETRY_MAYFAIL`, which fails instead of OOM-killing) by compounding many acks to force repeated iov growth while exhausting kernel memory with concurrent connections and large buffers. PR:L - `smb2_check_user_session()` rejects SMB2_OPLOCK_BREAK without a valid session, and the path needs a tree connect plus an open handle holding an oplock or lease, so a basic authenticated share user (or a guest account where the share permits it) is required. UI:N - The attacker performs every step — file open, conflicting open to force the break, and the oplock/lease break ack — with no action by any legitimate user or administrator. S:U - The corruption and its impact are confined to the kernel's own memory and the ksmbd server's security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The refcount underflow frees a still-linked `struct oplock_info` and an extra reference on `struct ksmbd_conn`/`struct ksmbd_file`, so subsequent dereferences of `opinfo->conn`, `->sess`, `->o_fp` and the waitqueue lists read heap the attacker can groom, yielding kernel memory disclosure. I:H - The freed object contains two list_heads and two wait_queue_heads still referenced by `fp->f_opinfo`, `ci->m_op_list` and the lease table; reallocating it lets `wake_up_interruptible_all()` invoke an attacker-supplied `wait_queue_entry->func` pointer and lets list unlink act as a write-what-where, giving arbitrary write and code execution. A:H - Even without successful exploitation the use-after-free, refcount underflow, and premature `__ksmbd_close_fd()`/connection release reliably produce oops or panic, and the attack can be repeated to keep the server down.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < e38ec88a2b42c494601b1213816d75f0b54d9bf0 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 97c355989928a5f60b228ef5266c1be67a46cdf9 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 815f1161d6dbc4c54ccf94b7d3fdeab34b4d7477 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 8106adc21a2270c16abf69cd74ccd7c79c6e7acd (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 50f930db22365738d9387c974416f38a06e8057e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.146 through 6.1.* (unaffected · semver)6.6.99 through 6.6.* (unaffected · semver)6.12.39 through 6.12.* (unaffected · semver)6.15.7 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/50f930db22365738d9387c974416f38a06e8057e
- https://git.kernel.org/stable/c/8106adc21a2270c16abf69cd74ccd7c79c6e7acd
- https://git.kernel.org/stable/c/815f1161d6dbc4c54ccf94b7d3fdeab34b4d7477
- https://git.kernel.org/stable/c/97c355989928a5f60b228ef5266c1be67a46cdf9
- https://git.kernel.org/stable/c/e38ec88a2b42c494601b1213816d75f0b54d9bf0
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Provider assertions
2Linux · cna
ksmbd: fix potential use-after-free in oplock/lease break ack
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 041ed8c945ca70748475dca2980579e272f92726999c6d0422d05cc8a5eb79c3
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record