CVE-2021-42341

Published on: 10/14/2021 12:00:00 AM UTC

Last Modified on: 10/20/2021 07:03:00 PM UTC

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Certain versions of Openrc from Openrc Project contain the following vulnerability:

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.

  • CVE-2021-42341 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as HIGH severity.

CVSS3 Score: 7.5 - HIGH

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK LOW NONE NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED NONE NONE HIGH

CVSS2 Score: 5 - MEDIUM

Access
Vector
Access
Complexity
Authentication
NETWORK LOW NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
NONE NONE PARTIAL

CVE References

Description Tags Link
checkpath: fix allocation size of string buffer by thesamesam · Pull Request #462 · OpenRC/openrc · GitHub github.com
text/html
URL Logo MISC github.com/OpenRC/openrc/pull/462
checkpath -- free(): invalid pointer · Issue #459 · OpenRC/openrc · GitHub github.com
text/html
URL Logo MISC github.com/OpenRC/openrc/issues/459
checkpath: fix allocation size of path buffer · OpenRC/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/OpenRC/openrc/commit/bb8334104baf4d5a4a442a8647fb9204738f2204
/lib/rc/bin/checkpath is broken in most recent release · Issue #418 · OpenRC/openrc · GitHub github.com
text/html
URL Logo MISC github.com/OpenRC/openrc/issues/418
checkpath: remove extra slashes from paths · OpenRC/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/OpenRC/openrc/commit/63db2d99e730547339d1bdd28e8437999c380cae
816900 – sys-apps/openrc: checkpath exists with 'free(): invalid pointer' when launching www-apps/grafana-bin with init scripts bugs.gentoo.org
text/html
URL Logo MISC bugs.gentoo.org/816900

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationOpenrc ProjectOpenrcAllAllAllAll
  • cpe:2.3:a:openrc_project:openrc:*:*:*:*:*:*:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2021-42341 : checkpath in OpenRC before 0.44.7 uses the direct output of strlen to allocate strings, which do… twitter.com/i/web/status/1… 2021-10-14 05:05:38
Twitter Icon @Robo_Alerts Potentially Critical CVE Detected! CVE-2021-42341 Description: checkpath in OpenRC before 0.44.7 uses the direct ou… twitter.com/i/web/status/1… 2021-10-14 06:00:09
© CVE.report 2021 Twitter Nitter Twitter Viewer |

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.

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