{"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-04-16T04:42:15.616868309Z","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":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"629dd37acc336ad778979361c351e782053ea284"},{"fixed":"facf22c1a394c1e023dab5daf9a494f722771e1c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"60b7207893a8a06c78441934931a08fdad63f18e"},{"fixed":"af9e2d4732a548db8f6f5a90c2c20a789a3d7240"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"800c482c9ef5910f05e3a713943c67cc6c1d4939"},{"fixed":"2148d34371b06dac696c0497a98a6bf905a51650"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9a1b6ea955e6c7b29939a6d98701202f9d9644ec"},{"fixed":"829e19ef741d9e9932abdc3bee5466195e0852cf"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bab703ed8472aa9d109c5f8c1863921533363dae"},{"fixed":"eb4447bcce915b43b691123118893fca4f372a8f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"a41cd52f00907a040ca22c73d4805bb79b0d0972"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37962.json"}}],"schema_version":"1.7.5"}