Skip to content

Known exploited

Is your fleet exposed to CVE-2021-3156?

Sudo Heap-Based Buffer Overflow Vulnerability. CVE-2021-3156 is in CISA's catalog of vulnerabilities known to be exploited, and it affects packages on 13 Linux releases that SysWard tracks. A host is exposed while it has a build older than the fixed version for its release.

Added to CISA's catalog
April 6, 2022
Due date for US federal agencies
April 27, 2022
Used in ransomware
Not known
Affected software
Sudo

What it is

Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.

The sudo packages contain the sudo utility which allows system administrators to provide certain users with the permission to execute privileged commands, which are used for system management purposes, without having to log in as root. Security Fix(es): * sudo: Heap buffer overflow in argument parsing (CVE-2021-3156) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the Refere...

From a distribution's security advisory

CISA's required action: Apply updates per vendor instructions.

Affected Linux releases

Pick your release for the full list of affected packages and the commands to check and update a host.

ReleaseAffected packagesFixed in
Ubuntu 20.04 LTS sudo, sudo-ldap 1.8.31-1ubuntu1.2
Debian 11 sudo 1.9.5p1-1.1
Debian 12 sudo 1.9.5p1-1.1
Debian 13 sudo 1.9.5p1-1.1
RHEL 8 sudo 1.8.29-6.el8_3.1
Rocky Linux 8 sudo 1.8.29-6.el8_3.1
AlmaLinux 8 sudo 1.8.29-6.el8_3.1
Oracle Linux 8 sudo 1.8.29-6.el8_3.1
Amazon Linux 2 sudo, sudo-devel 1.8.23-4.amzn2.2.1
SLES 15 SP6 sudo, sudo-devel, sudo-plugin-python and 3 more 1.9.15p5-150600.1.2
SLES 15 SP7 sudo, sudo-devel, sudo-plugin-python and 3 more 1.9.15p5-150600.3.6.2
SLES 16 sudo, sudo-devel, sudo-plugin-python and 3 more 1.9.17p1-160000.2.2
Arch Linux sudo 1.9.5.p2-1

Releases not listed either are not affected, are past their vendor's support, or are not ones SysWard has security data for.

Why the version number alone can mislead

Long-lived distributions fix a vulnerability in the version they already ship and raise only their own build number. Comparing your package's upstream version with the release where the project fixed the bug gives the wrong answer in both directions. Compare against the fixed build for your release, which is what the release pages list.

Know which of your hosts are affected

SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.

Get started free Check one server now, no signup