CVE-2025-71151: cifs: Fix memory and information leak in smb3_reconfigure()
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto 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
Frequently Asked Questions
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.
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.
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.
Which software is affected by CVE-2025-71151?
CVE-2025-71151 affects the Linux kernel versions prior to the patch addressing the security vulnerability.
Is there a workaround for CVE-2025-71151?
There is no specific workaround for CVE-2025-71151; applying the appropriate kernel update is recommended.