All reports
Medium

kernel: smb: client: fix double put of @cfile in smb2_rename_path()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-46736

Probability of exploitation in the next 30 days: 0.61%

FIRST EPSS · 2026-11-21

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.

A flaw was found in the Linux kernel's Server Message Block (SMB) client. This vulnerability occurs in the smb2_rename_path() function when handling specific error conditions during file attribute operations. A local attacker could exploit this flaw, leading to a double free of a file object, which may result in a denial of service.