Bug 2080289 (CVE-2022-24736)

Summary: CVE-2022-24736 redis: Malformed Lua script can crash Redis
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: agerstmayr, aileenc, amackenz, amasferr, apevec, bcoca, bdettelb, caswilli, chazlett, chousekn, cmeyers, davidn, dhalasz, drieden, eglynn, fabian.deutsch, fedora, fpercoco, gblomqui, ggaughan, gmalinko, gparvin, hhorak, jal233, janstey, jcammara, jhardy, jjoyce, jobarker, jochrist, jorton, jramanat, jwong, jwon, kaycoth, lhh, mabashia, mburns, mgoodwin, micjohns, mkudlej, nathans, njean, notting, osapryki, pahickey, pdelbell, rcollet, redis-maint, relrod, rhos-maint, rpetrell, sdoran, smcdonal, spower, stcannon, sthirugn, tjochec, tkuratom, vkrizan, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: redis 7.0.0, redis 6.2.7 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Redis database when a malformed Lua script can cause a NULL pointer dereference. This flaw allows an attacker to load a crafting script, which results in a crash of the redis-server process.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-04 21:33:28 UTC 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: 2090373, 2090375, 2080290, 2080291, 2080883, 2080884, 2080885, 2080886, 2080887, 2090374, 2090376    
Bug Blocks: 2080292    

Description Pedro Sampaio 2022-04-29 12:44:28 UTC
edis is an in-memory database that persists on disk. Prior to versions 6.2.7 and 7.0.0, an attacker attempting to load a specially crafted Lua script can cause NULL pointer dereference which will result with a crash of the redis-server process. The problem is fixed in Redis versions 7.0.0 and 6.2.7. An additional workaround to mitigate this problem without patching the redis-server executable, if Lua scripting is not being used, is to block access to `SCRIPT LOAD` and `EVAL` commands using ACL rules.

References:

https://github.com/redis/redis/pull/10651
https://github.com/redis/redis/security/advisories/GHSA-3qpw-7686-5984
https://github.com/redis/redis/releases/tag/7.0.0
https://github.com/redis/redis/releases/tag/6.2.7

Comment 1 Pedro Sampaio 2022-04-29 12:44:57 UTC
Created redis tracking bugs for this issue:

Affects: epel-7 [bug 2080291]
Affects: fedora-all [bug 2080290]

Comment 4 errata-xmlrpc 2022-11-08 09:31:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7541 https://access.redhat.com/errata/RHSA-2022:7541

Comment 5 errata-xmlrpc 2022-11-15 10:14:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8096 https://access.redhat.com/errata/RHSA-2022:8096

Comment 6 Product Security DevOps Team 2022-12-04 21:33:23 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-24736