Bug 2163133 (CVE-2022-35977)

Summary: CVE-2022-35977 redis: Integer overflow in the Redis SETRANGE and SORT/SORT_RO commands may result with false OOM panic
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adudiak, aileenc, akostadi, alcohan, amackenz, amasferr, apevec, bbuckingham, bcoca, bcourt, bdettelb, brking, cbartlet, chazlett, cwelton, dmayorov, doconnor, eglynn, ehelms, epacific, ggainey, gmalinko, gparvin, haoli, hhorak, hkataria, janstey, jcammara, jhardy, jjoyce, jlledo, jmitchel, jneedle, jobarker, jorton, jschluet, jsherril, juwatts, jwon, kegrant, koliveir, kshier, lhh, lsvaty, lzap, mabashia, mburns, mgarciac, mhulan, mkudlej, mmakovy, nathans, njean, nmoumoul, omaciel, orabin, owatkins, pahickey, pbraun, pcreech, pdelbell, pgrist, rchan, rcollet, redis-maint, rhaigner, rhos-maint, rstepani, shvarugh, simaishi, smallamp, smcdonal, spower, stcannon, teagle, tfister, thavo, tjochec, yguenane, zsadeh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: redis 7.0.8, redis 6.2.9, redis 6.0.17 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Redis, an in-memory database that persists on disk. This flaw allows authenticated users to issue specially crafted `SETRANGE` and `SORT(_RO)` commands to trigger an integer overflow, resulting in Redis attempting to allocate impossible amounts of memory and abort with an out-of-memory (OOM) panic.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2163188, 2163189, 2163190, 2163191, 2163192, 2163193, 2163194, 2163195, 2163196, 2163380, 2163381, 2169703    
Bug Blocks: 2161476    

Description Sandipan Roy 2023-01-23 07:38:12 UTC
Redis is an in-memory database that persists on disk. Authenticated users issuing specially crafted `SETRANGE` and `SORT(_RO)` commands can trigger an integer overflow, resulting with Redis attempting to allocate impossible amounts of memory and abort with an out-of-memory (OOM) panic. The problem is fixed in Redis versions 7.0.8, 6.2.9 and 6.0.17. Users are advised to upgrade. There are no known workarounds for this vulnerability.

https://github.com/redis/redis/security/advisories/GHSA-mrcw-fhw9-fj8j
https://github.com/redis/redis/commit/1ec82e6e97e1db06a72ca505f9fbf6b981f31ef7
https://github.com/redis/redis/releases/tag/6.0.17
https://github.com/redis/redis/releases/tag/6.2.9
https://github.com/redis/redis/releases/tag/7.0.8

Comment 1 Sandipan Roy 2023-01-23 07:45:04 UTC
Created pymodbus tracking bugs for this issue:

Affects: fedora-37 [bug 2163192]


Created python-rq tracking bugs for this issue:

Affects: epel-8 [bug 2163190]


Created redis tracking bugs for this issue:

Affects: epel-7 [bug 2163189]
Affects: fedora-36 [bug 2163191]
Affects: fedora-37 [bug 2163193]

Comment 13 errata-xmlrpc 2025-01-22 10:35:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:0595 https://access.redhat.com/errata/RHSA-2025:0595