CVE-2021-42341
JSON

7.5high

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 e…

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
2.12% (higher than 83% of CVEs)
Published
Last changed
Assigned by
mitre

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
openrc_project openrcfrom 0.44.0 before 0.44.7NVD

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

What each source says

CVE List

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.

NVD (es)

checkpath en OpenRC versiones anteriores a 0.44.7, usa la salida directa de la función strlen() para asignar cadenas, que no tiene en cuenta el byte "\0" al final de la cadena. Esto resulta en una corrupción de memoria

References

Sources

SourceRecordLicence
CVE ListCVE-2021-42341 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-42341 changed 2026-06-17Public domain