{"id":"CVE-2024-57925","summary":"ksmbd: fix a missing return value check bug","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix a missing return value check bug\n\nIn the smb2_send_interim_resp(), if ksmbd_alloc_work_struct()\nfails to allocate a node, it returns a NULL pointer to the\nin_work pointer. This can lead to an illegal memory write of\nin_work-\u003eresponse_buf when allocate_interim_rsp_buf() attempts\nto perform a kzalloc() on it.\n\nTo address this issue, incorporating a check for the return\nvalue of ksmbd_alloc_work_struct() ensures that the function\nreturns immediately upon allocation failure, thereby preventing\nthe aforementioned illegal memory access.","modified":"2026-04-02T12:25:24.061826Z","published":"2025-01-19T11:52:43.244Z","related":["MGASA-2025-0030","MGASA-2025-0032","USN-7379-2","USN-7380-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57925.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/271ae0edbfc942795c162e6cf20d2bc02bd7fde4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2976e91a3e569cf2c92c9f71512c0ab1312fe965"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/781c743e18bfd9b7dc0383f036ae952bd1486f21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57925.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57925"},{"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":"6f0207218c4c125f5bf32055ac4220b4ef3b7e67"},{"fixed":"781c743e18bfd9b7dc0383f036ae952bd1486f21"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f8cf1ebb7de62c7d807707ce4abb69d483629263"},{"fixed":"ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"041bba4414cda37d00063952c9bff9c3d5812a19"},{"fixed":"271ae0edbfc942795c162e6cf20d2bc02bd7fde4"},{"fixed":"2976e91a3e569cf2c92c9f71512c0ab1312fe965"},{"fixed":"4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57925.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"}]}