In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF and double free in smb2_open_file() Zero out @err_iov and @err_buftype before retrying SMB2_open() to prevent an UAF bug if @data != NULL, otherwise a double free.
The issue is that the variables @err_iov and @err_buftype are not zeroed before re-invoking SMB2_open(). If the @data pointer is not NULL, this leads to access of already freed memory (use-after-free). Otherwise, the same memory resources may be freed twice (double free), which can result in corruption of the kernel heap structure.
An attacker may potentially lead to arbitrary code execution in kernel context, privilege escalation, or destabilization of the operating system by triggering use-after-free or double free conditions.
Patches available from the vendor should be applied according to the references — patches have been published in the kernel.org repository (git.kernel.org/stable) for many stable branches. It is recommended to update the kernel to a version containing the indicated commits.
Linux kernel with SMB client enabled (cifs/smb3 module); versions indicated in vendor references (commits available in stable branches of the kernel.org repository)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux Kernel
OSLinux6.196.1.163 – 6.1.165 (bez)6.6.124 – 6.6.128 (bez)6.12.70 – 6.12.75 (bez)6.18.10 – 6.18.14 (bez)6.19.1 – 6.19.4 (bez)
Related vulnerabilities
Type confusion w V8 (Google Chrome) — zdalne uszkodzenie sterty
Commvault Command Center – nieuwierzytelniony RCE przez path traversal w ZIP
IBM Aspera Faspex 4.4.2 Patch Level 1 and earlier could allow a remote attacker to execute arbitrary code on t...
VMware Workspace ONE Access and Identity Manager contain a remote code execution vulnerability due to server-s...
VMware Workspace One Access, Access Connector, Identity Manager, and Identity Manager Connector address have a...