CVE-2025-40084
published high CVSS 3.1 · 7.1ksmbd: transport_ipc: validate payload size before reading handle
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < a02e432d5130da4c723aabe1205bac805889fdb2 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 2dc125f5da134c0915a840b62565c60a595673dd · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 898d527ed94c19980a4d848f10057f1fed578ffb · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 867ffd9d67285612da3f0498ca618297f8e41f01 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.158 through 6.1.* (unaffected · semver) · 6.6.115 through 6.6.* (unaffected · semver) · 6.12.56 through 6.12.* (unaffected · semver) · 6.17.6 through 6.17.* (unaffected · semver) · 6.18 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.158-1 | DSA-6053-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.158-1~deb11u1 | DLA-4379-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermaarch64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermppc64le | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longterms390x | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermx86_64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermaarch64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermppc64le | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longterms390x | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermx86_64 | Advisory build | 6.18.16-1.1 | OPENSUSE-SU-2026:10301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 6.17.7-1.1 | OPENSUSE-SU-2025:15702-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1050 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1050 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1050 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| 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-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-nvidia-64k | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| 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.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1052-gcp-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-generic-64k | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-lowlatency-64k | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| 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.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1052 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1052 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-nvidia-64k | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-headers-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| 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.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1052-gcp-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-generic-64k | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-lowlatency-64k | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-106 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-106 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-106 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-ibm-6.8 | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-ibm-6.8-headers-6.8.0-1049 | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-ibm-6.8-tools-6.8.0-1049 | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-nvidia-64k | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| 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.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1052-gcp-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-generic-64k | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-lowlatency-64k | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-106 | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-106 | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
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: transport_ipc: validate payload size before reading handle handle_response() dereferences the payload as a 4-byte handle without verifying that the declared payload size is at least 4 bytes. A malformed or truncated message from ksmbd.mountd can lead to a 4-byte read past the declared payload size. Validate the size before dereferencing. This is a minimal fix to guard the initial handle read.
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
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - The vulnerable code is reached only via a generic netlink message to the `SMBD_GENL` family (`handle_generic_event` → `handle_response`), which requires a local socket on the machine; a remote SMB client on TCP/445 cannot inject IPC responses. AC:L - The attacker fully controls the crafted netlink message — a zero-length `KSMBD_EVENT_RPC_RESPONSE`/`SPNEGO_AUTHEN_RESPONSE` attribute followed by a chosen nlattr header supplies both the undersized `sz` and the out-of-bounds "handle" value, and IDA-allocated handles are small and brute-forceable. PR:L - The `netlink_capable(CAP_NET_ADMIN)` gate exists only when `CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN` is set, and builds that disable it let any unprivileged local user open a `NETLINK_GENERIC` socket and send the message; there is also no check binding the sender to the registered `ksmbd_tools_pid`. UI:N - The attacker sends the malformed netlink message directly; no victim action is needed beyond ksmbd already running, which is the normal state on an SMB server. S:U - The out-of-bounds read and the resulting fault stay within the kernel's own security authority, with no crossing of a VM, IOMMU, or sandbox boundary. C:H - The unchecked deref reads 4 bytes past the declared payload, and the undersized response it admits causes `ipc_validate_msg()` and the SPNEGO/RPC consumers to read fields beyond a tiny slab allocation, whose contents can be reflected back toward the SMB client. I:N - The `memcpy(entry->response, payload, sz)` is bounded by the same `sz` used for the allocation, so the bug yields no out-of-bounds write or other data-modification primitive. A:H - A zero-length payload makes `kvzalloc(0)` return `ZERO_SIZE_PTR`, which passes the non-NULL check and is then dereferenced in `ipc_validate_msg()`, producing a kernel oops that is repeatable at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < a02e432d5130da4c723aabe1205bac805889fdb2 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 2dc125f5da134c0915a840b62565c60a595673dd (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 898d527ed94c19980a4d848f10057f1fed578ffb (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 867ffd9d67285612da3f0498ca618297f8e41f01 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.158 through 6.1.* (unaffected · semver)6.6.115 through 6.6.* (unaffected · semver)6.12.56 through 6.12.* (unaffected · semver)6.17.6 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd
- https://git.kernel.org/stable/c/6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0
- https://git.kernel.org/stable/c/867ffd9d67285612da3f0498ca618297f8e41f01
- https://git.kernel.org/stable/c/898d527ed94c19980a4d848f10057f1fed578ffb
- https://git.kernel.org/stable/c/a02e432d5130da4c723aabe1205bac805889fdb2
Provider assertions
1Linux · cna
ksmbd: transport_ipc: validate payload size before reading handle
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7b81a270ca9b5583f8d56f7fd922ba1569474b316acb57f12d001ce1a8d2eff5
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record