CVE-2025-71153: ksmbd: Fix memory leak in get_file_all_info()

Published Jan 23, 2026
·
Updated

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

ksmbd: Fix memory leak in getfileallinfo()

In getfileallinfo(), if vfsgetattr() 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.

Affected Software

9 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=6.6.24<6.6.120
Linux Linux kernel>=6.7.12<6.8
Linux Linux kernel>=6.8.3<6.12.64
Linux Linux kernel>=6.13<6.18.4
Linux Linux kernel=6.19-rc1
Linux Linux kernel=6.19-rc2
Linux Linux kernel=6.19-rc3
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    In ksmbd's get_file_all_info(), free the allocated filename before returning when vfs_getattr() fails.

Event History

Jan 23, 2026
CVE Published
via MITRE·02:25 PM
Data Sourced
via MITRE·02:25 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-71153?

CVE-2025-71153 is classified as a moderate severity vulnerability due to the potential for a memory leak affecting kernel efficiency.

2

How do I fix CVE-2025-71153?

To fix CVE-2025-71153, you should update the Linux kernel to the latest version that addresses this memory leak.

3

What systems are affected by CVE-2025-71153?

CVE-2025-71153 affects versions of the Linux kernel using the ksmbd server implementation.

4

What type of vulnerability is CVE-2025-71153?

CVE-2025-71153 is a memory leak vulnerability occurring in the get_file_all_info function within the Linux kernel.

5

Is CVE-2025-71153 a critical vulnerability?

CVE-2025-71153 is not considered critical but may impact system performance if exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203