CVE-2025-40084

ksmbd: transport_ipc: validate payload size before reading handle

HIGH
7.1
CVSS Score
Published: October 29, 2025 at 01:37 PM UTC
Updated: October 19, 2026 at 09:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0626e6641f6b467447c81dd7678a69c66f7746cf5.15626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 2dc125f5da134c0915a840b62565c60a595673dd (fixed)
Vendor states this is fixed in 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 (fixed)
Vendor states this is fixed in 867ffd9d67285612da3f0498ca618297f8e41f01 (fixed)
Vendor states this is fixed in 898d527ed94c19980a4d848f10057f1fed578ffb (fixed)
Vendor states this is fixed in a02e432d5130da4c723aabe1205bac805889fdb2 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.1.158 (unaffected)
Vendor states this is fixed in 6.12.56 (unaffected)
Vendor states this is fixed in 6.17.6 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.115 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.1HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card