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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| openrc_project openrc | from 0.44.0 before 0.44.7 | NVD |
All scores
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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
| https://github.com/OpenRC/openrc/commit/bb8334104baf4d5a4a442a8647fb9204738f2204 | patch, third-party-advisory | |
| https://github.com/OpenRC/openrc/issues/459 | exploit, patch, third-party-advisory | |
| https://github.com/OpenRC/openrc/pull/462 | patch, third-party-advisory | |
| https://bugs.gentoo.org/816900 | exploit, patch, third-party-advisory | |
| https://github.com/OpenRC/openrc/commit/63db2d99e730547339d1bdd28e8437999c380cae | patch, third-party-advisory | |
| https://github.com/OpenRC/openrc/issues/418 | exploit, patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-42341 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-42341 changed 2026-06-17 | Public domain |