CVE-2021-42341

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

published October 14, 2021

CVSS
—
EPSS
2%
Percentile
81.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02117 · 81.7th percentile
Published
2021-10-14T05:01Z
EPSS history
Timeline
  • 14 OCT 05:01Z
    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
    cvelistv5