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. This results in memory corruption. CVE-2021...
HighCVSS 7.5
EPSS 2.1%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Debian
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.
Upgrade path
12 packages: 12 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/openrc(Alpine v3.14) | < 0.43.3-r2 | 0.43.3-r2 | Fixed |
| alpine/openrc(Alpine v3.15) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.16) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.17) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.18) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.19) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.20) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.21) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.22) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.23) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| alpine/openrc(Alpine v3.24) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 | Fixed |
| openrc project openrc | >= 0.44.0, < 0.44.7 | 0.44.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openrc project openrc | >= 0.44.0, < 0.44.7 | 0.44.7 |
| alpine/openrc(Alpine:v3.14) | < 0.43.3-r2 | 0.43.3-r2 |
| alpine/openrc(Alpine:v3.15) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.16) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.17) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.18) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.19) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.20) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.21) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.22) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.23) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
| alpine/openrc(Alpine:v3.24) | >= 0.44.0, < 0.44.6-r1 | 0.44.6-r1 |
References
- bugs.gentoo.org exploit patch third-party-advisory
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- github.com exploit patch third-party-advisory
- github.com exploit patch third-party-advisory
- github.com patch third-party-advisory
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2021-42341 vendor-advisory