CVE-2021-42341

Summary

CVECVE-2021-42341
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-10-14 05:15:00 UTC
Updated2021-10-20 19:03:00 UTC
Descriptioncheckpath 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.

Risk And Classification

Problem Types: NVD-CWE-Other

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Openrc Project Openrc All All All All

References

ReferenceSourceLinkTags
checkpath: fix allocation size of string buffer by thesamesam · Pull Request #462 · OpenRC/openrc · GitHub MISC github.com
checkpath -- free(): invalid pointer · Issue #459 · OpenRC/openrc · GitHub MISC github.com
checkpath: fix allocation size of path buffer · OpenRC/openrc@bb83341 · GitHub MISC github.com
/lib/rc/bin/checkpath is broken in most recent release · Issue #418 · OpenRC/openrc · GitHub MISC github.com
checkpath: remove extra slashes from paths · OpenRC/openrc@63db2d9 · GitHub MISC github.com
816900 – sys-apps/openrc: checkpath exists with 'free(): invalid pointer' when launching www-apps/grafana-bin with init scripts MISC bugs.gentoo.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 501759 Alpine Linux Security Update for openrc
  • 501975 Alpine Linux Security Update for openrc
  • 504242 Alpine Linux Security Update for openrc

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report