CVE-2024-46736
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2024-46736) has been identified and resolved in the SMB client component. The issue specifically affects the smb2_rename_path() function where a double put of @cfile occurs. This vulnerability was discovered in September 2024 and affects the Linux kernel's SMB client implementation (Kernel Git).

Technical details

The vulnerability occurs when smb2_set_path_attr() is called with a valid @cfile and returns -EINVAL. In this scenario, the reference of @cfile is already dropped by the previous smb2_compound_op() call, but the code fails to call cifs_get_writable_path() again, leading to a potential double-free condition. This issue was introduced by commit 71f15c90e785 ("smb: client: retry compound request without reusing lease") (Kernel Git).

Impact

The vulnerability could potentially lead to memory corruption due to the double-free of the @cfile reference. This type of issue can result in system instability or potentially be exploited for privilege escalation, though no specific exploits have been reported in the wild.

Mitigation and workarounds

The issue has been fixed by adding a call to cifs_get_writable_path() when smb2_set_path_attr() returns -EINVAL. The fix ensures proper reference counting by obtaining a new reference to @cfile before the retry attempt. Users should update to the patched version of the Linux kernel that includes the fix (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management