{"id":"CVE-2025-40084","published":"2025-10-29T13:37:03Z","modified":"2026-08-05T12:07:38Z","title":"ksmbd: transport_ipc: validate payload size before reading handle","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00153,"percentile":0.04497,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a02e432d5130da4c723aabe1205bac805889fdb2","tags":[]},{"url":"https://git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd","tags":[]},{"url":"https://git.kernel.org/stable/c/898d527ed94c19980a4d848f10057f1fed578ffb","tags":[]},{"url":"https://git.kernel.org/stable/c/867ffd9d67285612da3f0498ca618297f8e41f01","tags":[]},{"url":"https://git.kernel.org/stable/c/6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0","tags":[]}],"priority":{"score":5.9,"factors":[{"name":"EPSS percentile","points":0.9},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a02e432d5130da4c723aabe1205bac805889fdb2",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2dc125f5da134c0915a840b62565c60a595673dd",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 898d527ed94c19980a4d848f10057f1fed578ffb",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 867ffd9d67285612da3f0498ca618297f8e41f01",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2025-36664","exploited":false,"provenance":"source"}}