CVE-2024-46736Published Sep 18, 2024 · Sep 18Updated 2d ago
smb: client: fix double put of @cfile in smb2_rename_path()
Linux
Critical9.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
06.6.516.10.106.11In 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.
From the CVE record · Linux
The Linux kernel SMB client can release a cfile reference twice in smb2_rename_path() when smb2_set_path_attr() receives a valid cfile and returns -EINVAL. The input does not describe what an attacker could achieve or specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check their SMB client; affected versions are not specified.