CVE-2025-71151: cifs: Fix memory and information leak in smb3_reconfigure()

Published Jan 23, 2026
·
Updated

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

cifs: Fix memory and information leak in smb3reconfigure()

In smb3reconfigure(), if smb3syncsessionctxpasswords() fails, the function returns immediately without freeing and erasing the newly allocated newpassword and newpassword2. This causes both a memory leak and a potential information leak.

Fix this by calling kfreesensitive() on both password buffers before returning in this error case.

Affected Software

8 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=6.6.64<6.6.120
Linux Linux kernel>=6.11.11<6.12
Linux Linux kernel>=6.12.2<6.12.64
Linux Linux kernel>=6.13<6.18.3
Linux Linux kernel=6.19-rc1
Linux Linux kernel=6.19-rc2
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

Event History

Jan 23, 2026
CVE Published
via MITRE·02:15 PM
Data Sourced
via MITRE·02:15 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-71151?

CVE-2025-71151 has been classified with a severity level that indicates there's a potential risk of memory and information leaks.

2

How do I fix CVE-2025-71151?

To fix CVE-2025-71151, update your Linux kernel to the latest stable version that includes the patch addressing this vulnerability.

3

What are the potential impacts of CVE-2025-71151?

The potential impacts of CVE-2025-71151 include exposure of sensitive information and memory leaks, which could be exploited by an attacker.

4

Which software is affected by CVE-2025-71151?

CVE-2025-71151 affects the Linux kernel versions prior to the patch addressing the security vulnerability.

5

Is there a workaround for CVE-2025-71151?

There is no specific workaround for CVE-2025-71151; applying the appropriate kernel update is recommended.

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