Amazon Linux AMI update for sudo



Published: 2024-08-06
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-27320
CWE-ID CWE-415
Exploitation vector Local
Public exploit N/A
Vulnerable software
Subscribe
Amazon Linux AMI
Operating systems & Components / Operating system

sudo
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Double Free

EUVDB-ID: #VU72719

Risk: Low

CVSSv3.1: 7.7 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-27320

CWE-ID: CWE-415 - Double Free

Exploit availability: No

Description

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

The vulnerability exists due to a boundary error when matching a sudoers rule that contains a per-command chroot directive (CHROOT=dir). A local user can trigger a double free error and execute arbitrary code with elevated privileges.


Mitigation

Update the affected packages:

aarch64:
    sudo-devel-1.9.12-1.p2.amzn2023.0.3.aarch64
    sudo-python-plugin-debuginfo-1.9.12-1.p2.amzn2023.0.3.aarch64
    sudo-debuginfo-1.9.12-1.p2.amzn2023.0.3.aarch64
    sudo-logsrvd-debuginfo-1.9.12-1.p2.amzn2023.0.3.aarch64
    sudo-logsrvd-1.9.12-1.p2.amzn2023.0.3.aarch64
    sudo-debugsource-1.9.12-1.p2.amzn2023.0.3.aarch64
    sudo-1.9.12-1.p2.amzn2023.0.3.aarch64
    sudo-python-plugin-1.9.12-1.p2.amzn2023.0.3.aarch64

src:
    sudo-1.9.12-1.p2.amzn2023.0.3.src

x86_64:
    sudo-logsrvd-debuginfo-1.9.12-1.p2.amzn2023.0.3.x86_64
    sudo-debuginfo-1.9.12-1.p2.amzn2023.0.3.x86_64
    sudo-devel-1.9.12-1.p2.amzn2023.0.3.x86_64
    sudo-python-plugin-1.9.12-1.p2.amzn2023.0.3.x86_64
    sudo-python-plugin-debuginfo-1.9.12-1.p2.amzn2023.0.3.x86_64
    sudo-logsrvd-1.9.12-1.p2.amzn2023.0.3.x86_64
    sudo-debugsource-1.9.12-1.p2.amzn2023.0.3.x86_64
    sudo-1.9.12-1.p2.amzn2023.0.3.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

sudo: before 1.8.23-10.59

External links

http://alas.aws.amazon.com/AL2023/ALAS-2023-133.html


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###