{"id":"CVE-2024-57925","state":"PUBLISHED","title":"ksmbd: fix a missing return value check bug","description":"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.","publishedAt":"2025-01-19T11:52:43.244Z","updatedAt":"2026-05-23T15:56:20.939Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6f0207218c4c125f5bf32055ac4220b4ef3b7e67","status":"affected","lessThan":"781c743e18bfd9b7dc0383f036ae952bd1486f21","versionType":"git"},{"version":"f8cf1ebb7de62c7d807707ce4abb69d483629263","status":"affected","lessThan":"ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","status":"affected","lessThan":"271ae0edbfc942795c162e6cf20d2bc02bd7fde4","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","status":"affected","lessThan":"2976e91a3e569cf2c92c9f71512c0ab1312fe965","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","status":"affected","lessThan":"4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c","versionType":"git"},{"version":"5.15.145","status":"affected","lessThan":"5.15.177","versionType":"semver"},{"version":"6.1.71","status":"affected","lessThan":"6.1.125","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"5.15.177","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.125","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.72","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.10","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/781c743e18bfd9b7dc0383f036ae952bd1486f21","https://git.kernel.org/stable/c/ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce","https://git.kernel.org/stable/c/271ae0edbfc942795c162e6cf20d2bc02bd7fde4","https://git.kernel.org/stable/c/2976e91a3e569cf2c92c9f71512c0ab1312fe965","https://git.kernel.org/stable/c/4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/57xxx/CVE-2024-57925.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-57925","state":"PUBLISHED","datePublished":"2025-01-19T11:52:43.244Z","dateUpdated":"2026-05-23T15:56:20.939Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-19T11:50:08.376Z"},"containers":{"cna":{"title":"ksmbd: fix a missing return value check bug","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6f0207218c4c125f5bf32055ac4220b4ef3b7e67","status":"affected","lessThan":"781c743e18bfd9b7dc0383f036ae952bd1486f21","versionType":"git"},{"version":"f8cf1ebb7de62c7d807707ce4abb69d483629263","status":"affected","lessThan":"ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","status":"affected","lessThan":"271ae0edbfc942795c162e6cf20d2bc02bd7fde4","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","status":"affected","lessThan":"2976e91a3e569cf2c92c9f71512c0ab1312fe965","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","status":"affected","lessThan":"4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c","versionType":"git"},{"version":"5.15.145","status":"affected","lessThan":"5.15.177","versionType":"semver"},{"version":"6.1.71","status":"affected","lessThan":"6.1.125","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"5.15.177","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.125","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.72","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.10","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/781c743e18bfd9b7dc0383f036ae952bd1486f21"},{"url":"https://git.kernel.org/stable/c/ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce"},{"url":"https://git.kernel.org/stable/c/271ae0edbfc942795c162e6cf20d2bc02bd7fde4"},{"url":"https://git.kernel.org/stable/c/2976e91a3e569cf2c92c9f71512c0ab1312fe965"},{"url":"https://git.kernel.org/stable/c/4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:56:20.939Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.145","versionEndExcluding":"5.15.177"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.71","versionEndExcluding":"6.1.125"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.72"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.1,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-57925","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:53:03.932205Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","type":"CWE","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:57:14.579Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:55:55.097Z"}}]}}}