Out-of-bounds write in Samba - CVE-2021-44142

 

Out-of-bounds write in Samba - CVE-2021-44142

Published: January 31, 2022 / Updated: September 22, 2022


Vulnerability identifier: #VU60186
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/U:Amber
CVE-ID: CVE-2021-44142
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: Samba
Affected software:
Samba

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing EA metadata while opening files in smbd within the VFS Samba module (vfs_fruit). A remote attacker with ability to write to file's extended attributes can trigger an out-of-bounds write and execute arbitrary code with root privileges.

Note, the vulnerability in vfs_fruit exists in the default configuration of the fruit VFS module using fruit:metadata=netatalk or fruit:resource=file.


How to mitigate CVE-2021-44142

Install updates from vendor's website.

Sources