{"id":"CVE-2025-37962","summary":"ksmbd: fix memory leak in parse_lease_state()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix memory leak in parse_lease_state()\n\nThe previous patch that added bounds check for create lease context\nintroduced a memory leak. When the bounds check fails, the function\nreturns NULL without freeing the previously allocated lease_ctx_info\nstructure.\n\nThis patch fixes the issue by adding kfree(lreq) before returning NULL\nin both boundary check cases.","modified":"2026-05-15T11:53:32.695488929Z","published":"2025-05-20T16:01:54.612Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37962.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2148d34371b06dac696c0497a98a6bf905a51650"},{"type":"WEB","url":"https://git.kernel.org/stable/c/829e19ef741d9e9932abdc3bee5466195e0852cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af9e2d4732a548db8f6f5a90c2c20a789a3d7240"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb4447bcce915b43b691123118893fca4f372a8f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/facf22c1a394c1e023dab5daf9a494f722771e1c"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37962.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37962"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.134"},{"fixed":"6.1.139"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.6.87"},{"fixed":"6.6.91"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.23"},{"fixed":"6.12.29"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.14.2"},{"fixed":"6.14.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37962.json"}}],"schema_version":"1.7.5"}