CVE-2021-32765 Integer Overflow to Buffer Overflow in Hiredis
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
Hiredis is a minimalistic C client library for the Redis database. In affected versions Hiredis is vulnurable to integer overflow if provided maliciously crafted or corrupted RESP mult-bulk protocol data. When parsing multi-bulk (array-like) replies, hiredis fails to check if count * sizeof(redisReply*) can be represented in SIZE_MAX. If it can not, and the calloc() call doesn't itself make this check, it would result in a short allocation and subsequent buffer overflow. Users of hiredis who are unable to update may set the maxelements context option to a value small enough that no overflow is possible.
Upgrade path
7 packages: 4 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp management services for element software and netapp hci | All versions | No fix listed | No fix yet |
| ubuntu/hiredis(Ubuntu Pro 16.04) | = 0.13.1-2; = 0.13.3-1; = 0.13.3-2; = 0.13.3-2ubuntu0.1~esm1 +1 more | No fix listed | No fix yet |
| debian/hiredis(Debian 12) | < 0.14.1-2 | 0.14.1-2 | Fixed |
| debian/hiredis(Debian 13) | < 0.14.1-2 | 0.14.1-2 | Fixed |
| debian/hiredis(Debian 14) | < 0.14.1-2 | 0.14.1-2 | Fixed |
| redis hiredis | < 1.0.1; = < 1.0.1 | 1.0.1 | Fixed |
| debian linux | = 9.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/hiredis(Debian:12) | < 0.14.1-2 | 0.14.1-2 |
| debian/hiredis(Debian:13) | < 0.14.1-2 | 0.14.1-2 |
| debian/hiredis(Debian:14) | < 0.14.1-2 | 0.14.1-2 |
| redis hiredis | < 1.0.1 | 1.0.1 |
| debian linux | = 9.0 | No fix listed |
| netapp management services for element software and netapp hci | All versions | No fix listed |
| redis hiredis | = < 1.0.1 | No fix listed |
| ubuntu/hiredis(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/hiredis(Ubuntu:Pro:16.04) | = 0.13.1-2 | No fix listed |
| ubuntu/hiredis(Ubuntu:Pro:16.04) | = 0.13.3-1 | No fix listed |
| ubuntu/hiredis(Ubuntu:Pro:16.04) | = 0.13.3-2 | No fix listed |
| ubuntu/hiredis(Ubuntu:Pro:16.04) | = 0.13.3-2ubuntu0.1~esm1 | No fix listed |
References
- Debian Security Tracker CVE-2021-32765 vendor-advisory
- github.com patch third-party-advisory
- github.com issue-tracking mitigation third-party-advisory
- [debian-lts-announce] 20211012 [SECURITY] [DLA 2783-1] hiredis security update mailing-list third-party-advisory
- GLSA-202210-32 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- wiki.sei.cmu.edu issue-tracking third-party-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking