Openrc · Openrc · CVE-2021-42341
**Name of the Vulnerable Software and Affected Versions**
OpenRC versions prior to 0.44.7
**Description**
The issue arises from the `checkpath` function in OpenRC, which uses the direct output of `strlen()` to allocate strings. This approach fails to account for the `0` byte at the end of the string, resulting in memory corruption.
**Recommendations**
For OpenRC versions prior to 0.44.7, update to version 0.44.7 or later to resolve the issue. As a temporary workaround, consider restricting the use of the `checkpath` function until a patch is available.