{"id":"CVE-2024-57925","aliases":["CVE-2024-57925"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: fix a missing return value check bug","summary":"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->response_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->response_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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: se corrige un error de comprobación del valor de retorno faltante En smb2_send_interim_resp(), si ksmbd_alloc_work_struct() no puede asignar un nodo, devuelve un puntero NULL al puntero in_work. Esto puede provocar una escritura de memoria ilegal de in_work-&gt;response_buf cuando allocate_interim_rsp_buf() intenta realizar un kzalloc() en él. Para solucionar este problema, la incorporación de una comprobación del valor de retorno de ksmbd_alloc_work_struct() garantiza que la función regrese inmediatamente después de un error de asignación, lo que evita el acceso ilegal a la memoria mencionado anteriormente.","source":"nvd"}],"published":"2025-01-19T11:52:43.244Z","modified":"2026-06-17T08:14:14.787Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"6f0207218c4c125f5bf32055ac4220b4ef3b7e67","fixed":"781c743e18bfd9b7dc0383f036ae952bd1486f21","status":"affected"},{"type":"git","introduced":"f8cf1ebb7de62c7d807707ce4abb69d483629263","fixed":"ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce","status":"affected"},{"type":"git","introduced":"041bba4414cda37d00063952c9bff9c3d5812a19","fixed":"271ae0edbfc942795c162e6cf20d2bc02bd7fde4","status":"affected"},{"type":"git","introduced":"041bba4414cda37d00063952c9bff9c3d5812a19","fixed":"2976e91a3e569cf2c92c9f71512c0ab1312fe965","status":"affected"},{"type":"git","introduced":"041bba4414cda37d00063952c9bff9c3d5812a19","fixed":"4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c","status":"affected"},{"type":"semver","introduced":"5.15.145","fixed":"5.15.177","status":"affected"},{"type":"semver","introduced":"6.1.71","fixed":"6.1.125","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"5.15.177","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.125","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.72","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.10","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.145","fixed":"5.16"},{"status":"affected","introduced":"6.1.71","fixed":"6.1.125"},{"status":"affected","introduced":"6.6","fixed":"6.6.72"},{"status":"affected","introduced":"6.7","fixed":"6.12.10"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/781c743e18bfd9b7dc0383f036ae952bd1486f21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/271ae0edbfc942795c162e6cf20d2bc02bd7fde4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2976e91a3e569cf2c92c9f71512c0ab1312fe965","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:53:03.932Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-57925","url":"https://www.cve.org/CVERecord?id=CVE-2024-57925","licence":"CVE Terms of Use","modified":"2026-05-23T15:56:20.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-57925","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57925","licence":"Public domain","modified":"2026-06-17T08:14:14.787Z"}],"updatedAt":"2026-11-25T22:58:51.135Z","epss":{"score":0.00208,"percentile":0.11484,"date":"2026-12-01T12:00:22.000Z"}}