CVE-2025-71153 PUBLISHED

ksmbd: Fix memory leak in get_file_all_info()

Assigner: Linux
Reserved: 13.01.2026 Published: 23.01.2026 Updated: 23.01.2026

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: Fix memory leak in get_file_all_info()

In get_file_all_info(), if vfs_getattr() fails, the function returns immediately without freeing the allocated filename, leading to a memory leak.

Fix this by freeing the filename before returning in this error case.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from c8f7ad2df083c510e640c0bf76166593cc116ff2 to 5012b4c812230ae066902a00442708c999111183 (excl.)
  • affected from 5614c8c487f6af627614dd2efca038e4afe0c6d7 to 676907004256e0226c7ed3691db9f431404ca258 (excl.)
  • affected from 5614c8c487f6af627614dd2efca038e4afe0c6d7 to d026f47db68638521df8543535ef863814fb01b1 (excl.)
  • affected from 5614c8c487f6af627614dd2efca038e4afe0c6d7 to 0c56693b06a68476ba113db6347e7897475f9e4c (excl.)
  • Version f9278ba4967027ad2bf001694f0e489c7bbae6d5 is affected
  • Version 88779f09295d82b86601fe42595748488bf5e20c is affected
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.9 is affected
  • unaffected from 0 to 6.9 (excl.)
  • unaffected from 6.6.120 to 6.6.* (incl.)
  • unaffected from 6.12.64 to 6.12.* (incl.)
  • unaffected from 6.18.4 to 6.18.* (incl.)
  • unaffected from 6.19-rc4 to * (incl.)

References