Out-of-bounds write in Sudo - CVE-2022-43995

 

Out-of-bounds write in Sudo - CVE-2022-43995

Published: November 5, 2022 / Updated: November 7, 2022


Vulnerability identifier: #VU68973
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-43995
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Sudo
Affected software:
Sudo

Detailed vulnerability description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary condition within plugins/sudoers/auth/passwd.c when Sudo is configured to use the crypt() password backend (e.g. when passwd authentication is enabled). A local user with access to Sudo  can enter a password of 8 characters or fewer to trigger a heap-based buffer over-read and gain access to sensitive information.


How to mitigate CVE-2022-43995

Install updates from vendor's website.

Sources