CVEvulnerability
CVE-2021-42341
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2021-10-14
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:N/A:P
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 configurations
• openrc project openrc (>= 0.44.0 < 0.44.7)
References
- 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/commit/bb8334104baf4d5a4a442a8647fb9204738f2204 Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/issues/418 Exploit, 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/commit/bb8334104baf4d5a4a442a8647fb9204738f2204 Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/issues/418 Exploit, 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