{"id":"CVE-2025-71153","summary":"ksmbd: Fix memory leak in get_file_all_info()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: Fix memory leak in get_file_all_info()\n\nIn get_file_all_info(), if vfs_getattr() fails, the function returns\nimmediately without freeing the allocated filename, leading to a memory\nleak.\n\nFix this by freeing the filename before returning in this error case.","modified":"2026-03-20T12:46:39.001729Z","published":"2026-01-23T14:25:52.988Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71153.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0c56693b06a68476ba113db6347e7897475f9e4c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5012b4c812230ae066902a00442708c999111183"},{"type":"WEB","url":"https://git.kernel.org/stable/c/676907004256e0226c7ed3691db9f431404ca258"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d026f47db68638521df8543535ef863814fb01b1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71153.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71153"},{"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":"c8f7ad2df083c510e640c0bf76166593cc116ff2"},{"fixed":"5012b4c812230ae066902a00442708c999111183"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5614c8c487f6af627614dd2efca038e4afe0c6d7"},{"fixed":"676907004256e0226c7ed3691db9f431404ca258"},{"fixed":"d026f47db68638521df8543535ef863814fb01b1"},{"fixed":"0c56693b06a68476ba113db6347e7897475f9e4c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"f9278ba4967027ad2bf001694f0e489c7bbae6d5"},{"last_affected":"88779f09295d82b86601fe42595748488bf5e20c"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71153.json"}}],"schema_version":"1.7.5"}