redis:5 security update

エラータID: AXSA:2021-2497:01

Release date: 
Friday, October 22, 2021 - 11:16
Subject: 
redis:5 security update
Affected Channels: 
Asianux Server 8 for x86_64
Severity: 
High
Description: 

Redis is an advanced key-value store. It is often referred to as a
data-structure server since keys can contain strings, hashes, lists, sets, and
sorted sets. For performance, Redis works with an in-memory data set. You can
persist it either by dumping the data set to disk every once in a while, or by
appending each command to a log.

Security Fix(es):

redis: Lua scripts can overflow the heap-based Lua stack (CVE-2021-32626)
redis: Integer overflow issue with Streams (CVE-2021-32627)
redis: Integer overflow bug in the ziplist data structure (CVE-2021-32628)
redis: Denial of service via Redis Standard Protocol (RESP) request (CVE-2021-32675)
redis: Integer overflow issue with intsets (CVE-2021-32687)
redis: Integer overflow issue with strings (CVE-2021-41099)

For more details about the security issue(s), including the impact, a CVSS
score, acknowledgments, and other related information, refer to the CVE page(s)
listed in the References section.

CVE(s):
CVE-2021-32626
Redis is an open source, in-memory database that persists on disk. In affected versions specially crafted Lua scripts executing in Redis can cause the heap-based Lua stack to be overflowed, due to incomplete checks for this condition. This can result with heap corruption and potentially remote code execution. This problem exists in all versions of Redis with Lua scripting support, starting from 2.6. The problem is fixed in versions 6.2.6, 6.0.16 and 5.0.14. For users unable to update an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
CVE-2021-32627
Redis is an open source, in-memory database that persists on disk. In affected versions an integer overflow bug in Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and constructing specially crafted very large stream elements. The problem is fixed in Redis 6.2.6, 6.0.16 and 5.0.14. For users unable to upgrade an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the proto-max-bulk-len configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
CVE-2021-32628
Redis is an open source, in-memory database that persists on disk. An integer overflow bug in the ziplist data structure used by all versions of Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves modifying the default ziplist configuration parameters (hash-max-ziplist-entries, hash-max-ziplist-value, zset-max-ziplist-entries or zset-max-ziplist-value) to a very large value, and then constructing specially crafted commands to create very large ziplists. The problem is fixed in Redis versions 6.2.6, 6.0.16, 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the above configuration parameters. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
CVE-2021-32675
Redis is an open source, in-memory database that persists on disk. When parsing an incoming Redis Standard Protocol (RESP) request, Redis allocates memory according to user-specified values which determine the number of elements (in the multi-bulk header) and size of each element (in the bulk header). An attacker delivering specially crafted requests over multiple connections can cause the server to allocate significant amount of memory. Because the same parsing mechanism is used to handle authentication requests, this vulnerability can also be exploited by unauthenticated users. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate this problem without patching the redis-server executable is to block access to prevent unauthenticated users from connecting to Redis. This can be done in different ways: Using network access control tools like firewalls, iptables, security groups, etc. or Enabling TLS and requiring users to authenticate using client side certificates.
CVE-2021-32687
Redis is an open source, in-memory database that persists on disk. An integer overflow bug affecting all versions of Redis can be exploited to corrupt the heap and potentially be used to leak arbitrary contents of the heap or trigger remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration parameter to a very large value and constructing specially crafted commands to manipulate sets. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the set-max-intset-entries configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.
CVE-2021-41099
Redis is an open source, in-memory database that persists on disk. An integer overflow bug in the underlying string library can be used to corrupt the heap and potentially result with denial of service or remote code execution. The vulnerability involves changing the default proto-max-bulk-len configuration parameter to a very large value and constructing specially crafted network payloads or commands. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the proto-max-bulk-len configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.

Additional info:
N/A

Modularity name: redis
Stream name: 5

Solution: 

Update packages.

Additional Info: 

N/A

Download: 

SRPMS
  1. redis-5.0.3-5.module+el8+1311+c8a6cfff.src.rpm
    MD5: 5144043c1621a08dfeb84c6973bca162
    SHA-256: b39d9d2913bc91ea0b00a0896cdc77d5671da7d07c1920c7123d8fa2552a1a9e
    Size: 2.43 MB

Asianux Server 8 for x86_64
  1. redis-5.0.3-5.module+el8+1311+c8a6cfff.x86_64.rpm
    MD5: e8787a7f662daf700d56dd5548a2fd48
    SHA-256: 52febfbdbc59f89f979e6a89e9bf40e68396f78a3c565ad360dfb324ed11fda1
    Size: 925.99 kB
  2. redis-debugsource-5.0.3-5.module+el8+1311+c8a6cfff.x86_64.rpm
    MD5: 0c0c278ca6cba36c69a12f4a41b6c2ef
    SHA-256: 42c5c3eee9601e741bcb8384e32afe70bf1d3da17d733ba7e4501aba949ff4eb
    Size: 1.05 MB
  3. redis-devel-5.0.3-5.module+el8+1311+c8a6cfff.x86_64.rpm
    MD5: c0d090eb2e043746a6bcb161223b7b4a
    SHA-256: bca5b00780684a6a54627e4075cba21f57a44b841eae8c6171f7a8a1167d68d9
    Size: 23.79 kB
  4. redis-doc-5.0.3-5.module+el8+1311+c8a6cfff.noarch.rpm
    MD5: e9d0c2109451b29268c6cdf0942f5cca
    SHA-256: a31f90398160015edc5419b09a0cbc0572d719a3256a34f687fa7c153f183a2e
    Size: 457.26 kB