CVE-2021-32762 Integer overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platforms
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
Redis is an open source, in-memory database that persists on disk. The redis-cli command line tool and redis-sentinel service may be vulnerable to integer overflow when parsing specially crafted large multi-bulk network replies. This is a result of a vulnerability in the underlying hiredis library which does not perform an overflow check before calling the calloc() heap allocation function. This issue only impacts systems with heap allocators that do not perform their own overflow checks. Most modern systems do and are therefore not likely to be affected. Furthermore, by default redis-sentinel uses the jemalloc allocator which is also not vulnerable. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14.
Upgrade path
25 packages: 18 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp management services for element software | All versions | No fix listed | No fix yet |
| netapp management services for 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 |
| ubuntu/webdis(Ubuntu 16.04) | = 0.1.1-2.1; All versions | No fix listed | No fix yet |
| alpine/redis(Alpine v3.11) | >= 5.0.0, < 5.0.14-r0 | 5.0.14-r0 | Fixed |
| alpine/redis(Alpine v3.12) | >= 5.0.0, < 5.0.14-r0 | 5.0.14-r0 | Fixed |
| alpine/redis(Alpine v3.13) | >= 6.0.0, < 6.0.16-r0 | 6.0.16-r0 | Fixed |
| alpine/redis(Alpine v3.14) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.15) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.16) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.17) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.18) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.19) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.20) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.21) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.22) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.23) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| alpine/redis(Alpine v3.24) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 | Fixed |
| debian/redis(Debian 12) | < 5:6.0.16-1 | 5:6.0.16-1 | Fixed |
| debian/redis(Debian 13) | < 5:6.0.16-1 | 5:6.0.16-1 | Fixed |
| debian/redis(Debian 14) | < 5:6.0.16-1 | 5:6.0.16-1 | Fixed |
| Redis | = < 5.0.14; = >= 6.0.0, < 6.0.16; = >= 6.2.0, < 6.2.6; >= 5.0.0, < 5.0.14 +2 more | 5.0.14, 6.0.16, 6.2.6 | Fixed |
| debian linux | = 10.0; = 11.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 33; = 34; = 35 | No fix listed | Versions listed |
| oracle communications operations monitor | = 4.3; = 4.4; = 5.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/redis(Debian:12) | < 5:6.0.16-1 | 5:6.0.16-1 |
| debian/redis(Debian:13) | < 5:6.0.16-1 | 5:6.0.16-1 |
| debian/redis(Debian:14) | < 5:6.0.16-1 | 5:6.0.16-1 |
| Redis | >= 5.0.0, < 5.0.14 | 5.0.14 |
| Redis | >= 6.0.0, < 6.0.16 | 6.0.16 |
| Redis | >= 6.2.0, < 6.2.6 | 6.2.6 |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| fedoraproject fedora | = 33 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| netapp management services for element software | All versions | No fix listed |
| netapp management services for netapp hci | All versions | No fix listed |
| oracle communications operations monitor | = 4.3 | No fix listed |
| oracle communications operations monitor | = 4.4 | No fix listed |
| oracle communications operations monitor | = 5.0 | No fix listed |
| Redis | = < 5.0.14 | No fix listed |
| Redis | = >= 6.0.0, < 6.0.16 | No fix listed |
| Redis | = >= 6.2.0, < 6.2.6 | No fix listed |
| alpine/redis(Alpine:v3.11) | >= 5.0.0, < 5.0.14-r0 | 5.0.14-r0 |
| alpine/redis(Alpine:v3.12) | >= 5.0.0, < 5.0.14-r0 | 5.0.14-r0 |
| alpine/redis(Alpine:v3.13) | >= 6.0.0, < 6.0.16-r0 | 6.0.16-r0 |
| alpine/redis(Alpine:v3.14) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.15) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.16) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
Show 15 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/redis(Alpine:v3.17) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.18) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.19) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.20) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.21) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.22) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.23) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| alpine/redis(Alpine:v3.24) | >= 6.2.0, < 6.2.6-r0 | 6.2.6-r0 |
| 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 |
| ubuntu/webdis(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/webdis(Ubuntu:16.04) | = 0.1.1-2.1 | No fix listed |
References
- Debian Security Tracker CVE-2021-32762 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking third-party-advisory
- FEDORA-2021-61c487f241 vendor-advisory
- FEDORA-2021-8913c7900c vendor-advisory
- FEDORA-2021-aa94492a09 vendor-advisory
- GLSA-202209-17 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- DSA-5001 third-party-advisory vendor-advisory
- www.oracle.com patch third-party-advisory
- security.alpinelinux.org vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking