In the Linux kernel, the following vulnerability has been resolved: cifs: Fix memory and information leak in smb3_reconfigure() In smb3_reconfigure(), if smb3_sync_session_ctx_passwords() fails, the function returns immediately without freeing and erasing the newly allocated new_password and new_password2. This causes both a memory leak and a potential information leak. Fix this by calling kfree_sensitive() on both password buffers before returning in this error case.
History

Fri, 23 Jan 2026 14:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cifs: Fix memory and information leak in smb3_reconfigure() In smb3_reconfigure(), if smb3_sync_session_ctx_passwords() fails, the function returns immediately without freeing and erasing the newly allocated new_password and new_password2. This causes both a memory leak and a potential information leak. Fix this by calling kfree_sensitive() on both password buffers before returning in this error case.
Title cifs: Fix memory and information leak in smb3_reconfigure()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-01-23T14:15:17.916Z

Reserved: 2026-01-13T15:30:19.662Z

Link: CVE-2025-71151

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-01-23T15:16:05.917

Modified: 2026-01-23T15:16:05.917

Link: CVE-2025-71151

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.