CVEfocus › CVE database › CVE-2021-42341

CVE-2021-42341

CVSS 7.5 HighEPSS 2.1% (higher than 82% of CVEs)Published 2021-10-14Updated 2024-08-04Assigner: mitre

checkpath in OpenRC before 0.44.7 uses the direct output of strlen() to allocate strings, which does not account for the '\0' byte at the end of the string. This results in memory corruption. CVE-2021-42341 was introduced in git commit 63db2d99e730547339d1bdd28e8437999c380cae, which was introduced as part of OpenRC 0.44.0 development.

What to do

Fixed builds are available from Alpine: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04openrcFix pending
Alpine Linux 3.24openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.23openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.22openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.21openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.20openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.19openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.18openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.17openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.16openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.15openrcFixed0.44.6-r1ALPINE-CVE-2021-42341
Alpine Linux 3.14openrcFixed0.43.3-r2ALPINE-CVE-2021-42341

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.