{"id":"CVE-2025-40084","aliases":["CVE-2025-40084"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: transport_ipc: validate payload size before reading handle","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nksmbd: transport_ipc: validar el tamaño de la carga útil antes de leer el handle\n\nhandle_response() desreferencia la carga útil como un handle de 4 bytes sin verificar que el tamaño de la carga útil declarado sea de al menos 4 bytes. Un mensaje malformado o truncado de ksmbd.mountd puede provocar una lectura de 4 bytes más allá del tamaño de la carga útil declarado. Validar el tamaño antes de desreferenciar.\n\nEsta es una corrección mínima para proteger la lectura inicial del handle.","source":"nvd"}],"published":"2025-10-29T13:37:03.185Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"a02e432d5130da4c723aabe1205bac805889fdb2","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"2dc125f5da134c0915a840b62565c60a595673dd","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"898d527ed94c19980a4d848f10057f1fed578ffb","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"867ffd9d67285612da3f0498ca618297f8e41f01","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"6.1.158","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.115","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.56","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.6","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a02e432d5130da4c723aabe1205bac805889fdb2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/898d527ed94c19980a4d848f10057f1fed578ffb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/867ffd9d67285612da3f0498ca618297f8e41f01","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40084","url":"https://www.cve.org/CVERecord?id=CVE-2025-40084","licence":"CVE Terms of Use","modified":"2026-08-05T12:07:38.947Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40084","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40084","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.989Z","epss":{"score":0.00153,"percentile":0.04672,"date":"2026-12-01T12:00:22.000Z"}}