CVE-2021-42341
Summary
| CVE | CVE-2021-42341 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-10-14 05:15:00 UTC |
| Updated | 2021-10-20 19:03:00 UTC |
| 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. |
Risk And Classification
Problem Types: NVD-CWE-Other
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Openrc Project | Openrc | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| checkpath: fix allocation size of string buffer by thesamesam · Pull Request #462 · OpenRC/openrc · GitHub | MISC | github.com | |
| checkpath -- free(): invalid pointer · Issue #459 · OpenRC/openrc · GitHub | MISC | github.com | |
| checkpath: fix allocation size of path buffer · OpenRC/openrc@bb83341 · GitHub | MISC | github.com | |
| /lib/rc/bin/checkpath is broken in most recent release · Issue #418 · OpenRC/openrc · GitHub | MISC | github.com | |
| checkpath: remove extra slashes from paths · OpenRC/openrc@63db2d9 · GitHub | MISC | github.com | |
| 816900 – sys-apps/openrc: checkpath exists with 'free(): invalid pointer' when launching www-apps/grafana-bin with init scripts | MISC | bugs.gentoo.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.