CVE-2021-42341

HIGH
7.5
CVSS Score
Published: October 14, 2021 at 05:01 AM UTC
Updated: June 17, 2026 at 04:09 AM UTC
1 product affected across 1 vendorOpenrc

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.44.0 ≤ v < 0.44.7
Affected range stops below 0.44.7, so it looks safe — our inference, not a vendor statement

References (6)

x_refsource_MISCExploitPatchThird Party Advisory
https://bugs.gentoo.org/816900
x_refsource_MISCExploitPatchThird Party Advisory
https://github.com/OpenRC/openrc/issues/418
x_refsource_MISCExploitPatchThird Party Advisory
https://github.com/OpenRC/openrc/issues/459
x_refsource_MISCPatchThird Party Advisory
https://github.com/OpenRC/openrc/pull/462

CVSS

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

Quick Info

StatusMODIFIED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card