{"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-11-13T04:03:34.898772053Z","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":"a41cd52f00907a040ca22c73d4805bb79b0d0972"}]}],"versions":["v6.1.138","v6.1.137","v6.1.136","v6.1.135","v6.1.134","v6.6.90","v6.6.89","v6.6.88","v6.6.87","v6.12.28","v6.12.27","v6.12.26","v6.12.25","v6.12.24","v6.12.23","v6.14.6","v6.14.5","v6.14.4","v6.14.3","v6.14.2","v6.13.12","v6.13.11"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37962.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.13.11"},{"fixed":"6.14"}]},{"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.9.2"}