{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-57925","id":"CVE-2024-57925","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","descriptionLong":"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.","published":"2025-01-19T11:52:43.244Z","updated":"2026-11-17T07:01:28.800499873Z","reserved":"2025-01-19T11:50:08.376Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6f0207218c4c125f5bf32055ac4220b4ef3b7e67","lessThan":"781c743e18bfd9b7dc0383f036ae952bd1486f21","status":"affected","versionType":"git"},{"version":"f8cf1ebb7de62c7d807707ce4abb69d483629263","lessThan":"ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce","status":"affected","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","lessThan":"271ae0edbfc942795c162e6cf20d2bc02bd7fde4","status":"affected","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","lessThan":"2976e91a3e569cf2c92c9f71512c0ab1312fe965","status":"affected","versionType":"git"},{"version":"041bba4414cda37d00063952c9bff9c3d5812a19","lessThan":"4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c","status":"affected","versionType":"git"},{"version":"5.15.145","lessThan":"5.15.177","status":"affected","versionType":"semver"},{"version":"6.1.71","lessThan":"6.1.125","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"5.15.177","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.125","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.72","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.10","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/781c743e18bfd9b7dc0383f036ae952bd1486f21","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ee7e40f7fb17f08a8cbae50553e5c2e10ae32fce","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/271ae0edbfc942795c162e6cf20d2bc02bd7fde4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2976e91a3e569cf2c92c9f71512c0ab1312fe965","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4c16e1cadcbcaf3c82d5fc310fbd34d0f5d0db7c","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57925.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57925","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00208,"epssPercentile":0.10968,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-57925","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57925","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-57925","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-57925","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}