{"id":"CVE-2025-40084","summary":"ksmbd: transport_ipc: validate payload size before reading handle","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: transport_ipc: validate payload size before reading handle\n\nhandle_response() dereferences the payload as a 4-byte handle without\nverifying that the declared payload size is at least 4 bytes. A malformed\nor truncated message from ksmbd.mountd can lead to a 4-byte read past the\ndeclared payload size. Validate the size before dereferencing.\n\nThis is a minimal fix to guard the initial handle read.","modified":"2026-04-16T04:39:46.268000678Z","published":"2025-10-29T13:37:03.185Z","related":["openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40084.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/867ffd9d67285612da3f0498ca618297f8e41f01"},{"type":"WEB","url":"https://git.kernel.org/stable/c/898d527ed94c19980a4d848f10057f1fed578ffb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a02e432d5130da4c723aabe1205bac805889fdb2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40084.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40084"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"a02e432d5130da4c723aabe1205bac805889fdb2"},{"fixed":"2dc125f5da134c0915a840b62565c60a595673dd"},{"fixed":"898d527ed94c19980a4d848f10057f1fed578ffb"},{"fixed":"867ffd9d67285612da3f0498ca618297f8e41f01"},{"fixed":"6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40084.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.115"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40084.json"}}],"schema_version":"1.7.5"}