Skip to main content
← All vulnerabilities
CVE-2025-37962

ksmbd: fix memory leak in parse_lease_state()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.14, 6.1.139, 6.6.91, 6.12.29, 6.14.7
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix memory leak in parse_lease_state() The previous patch that added bounds check for create lease context introduced a memory leak. When the bounds check fails, the function returns NULL without freeing the previously allocated lease_ctx_info structure. This patch fixes the issue by adding kfree(lreq) before returning NULL in both boundary check cases.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 6.13.11 · fixed in 6.14

  • Linux Linux

    From 6.1.134 · fixed in 6.1.139; From 6.6.87 · fixed in 6.6.91; From 6.12.23 · fixed in 6.12.29; From 6.14.2 · fixed in 6.14.7

References 5

git.kernel.org