# CVE-2024-46736: smb: client: fix double put of @cfile in smb2_rename_path()

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-09-18T07:11:58.499Z
- Modified: 2026-08-05T11:38:12.776Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 1e60bc0e954389af82f1d9a85f13a63f6572350f before b27ea9c96efd2c252a981fb00d0f001b86c90f3e; from 71f15c90e785d1de4bcd65a279e7256684c25c0d before 1a46c7f6546b73cbf36f5a618a1a6bbb45391eb3; from 71f15c90e785d1de4bcd65a279e7256684c25c0d before 3523a3df03c6f04f7ea9c2e7050102657e331a4f; from 6.6.32 before 6.6.51; 6.9 (not affected: before 6.9; from 6.6.51 up to 6.6.*; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.6.32 before 6.6.51; from 6.9 before 6.10.10; 6.11

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/b27ea9c96efd2c252a981fb00d0f001b86c90f3e> (patch)
- <https://git.kernel.org/stable/c/1a46c7f6546b73cbf36f5a618a1a6bbb45391eb3> (patch)
- <https://git.kernel.org/stable/c/3523a3df03c6f04f7ea9c2e7050102657e331a4f> (patch)

## Sources

- CVE List: [CVE-2024-46736](https://www.cve.org/CVERecord?id=CVE-2024-46736), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-46736](https://nvd.nist.gov/vuln/detail/CVE-2024-46736), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-46736 · Whole record: https://cve.day/CVE-2024-46736.json · Rebuilt by cve.day 2026-11-25T22:58:45.546Z
