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, amackenz, amasferr, apevec, bbuckingham, bcoca, bcourt, bdettelb, chazlett, cwelton, davidn, eglynn, ehelms, epacific, gmalinko, gparvin, hhorak, janstey, jcammara, jhardy, jjoyce, jneedle, jobarker, jorton, jsherril, jwon, kshier, lhh, lzap, mabashia, mburns, mgarciac, mhulan, mkudlej, nathans, njean, nmoumoul, orabin, osapryki, owatkins, pahickey, pcreech, pdelbell, rchan, rcollet, redis-maint, rhos-maint, simaishi, smcdonal, spower, stcannon, teagle, tfister, 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: 2163189, 2169703, 2163188, 2163190, 2163191, 2163192, 2163193, 2163194, 2163195, 2163196, 2163380, 2163381    
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]