VDB

CVE-2025-40084

CVE-2025-40084 PUBLISHED CVSS 7.1 HIGH

ksmbd: transport_ipc: validate payload size before reading handle

Reported by linux · Published October 29, 2025

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.

EPSS 0.15% · 4.5th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxa02e432d5130da4c723aabe1205bac805889fdb2, 898d527ed94c19980a4d848f10057f1fed578ffb, 867ffd9d67285612da3f0498ca618297f8e41f01, 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0, 2dc125f5da134c0915a840b62565c60a595673dd

Risk scores

CVSS 3.1
7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS Score
0.15%
4.5th percentile

Affected products

VendorProductVersions
LinuxLinux0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf
LinuxLinux5.15, 0, 6.1.158
LinuxLinux0626e6641f6b467447c81dd7678a69c66f7746cf, 6.6.115, 6.12.56
linuxlinux_kernel5.15, 5.15, 5.15

Timeline

  • Oct 29, 2025 CVE Published
  • Oct 30, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (90 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (135 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40084
vulnetix vdb fixes CVE-2025-40084

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40084/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›