Bug 2244940 (CVE-2023-45145)

Summary: CVE-2023-45145 redis: possible bypass of Unix socket permissions on startup
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aileenc, amasferr, bbuckingham, bcourt, bdettelb, chazlett, davidn, ehelms, epacific, gmalinko, hhorak, janstey, jcammara, jhardy, jneedle, jobarker, jorton, jsherril, lzap, mabashia, mhulan, mkudlej, nmoumoul, orabin, pcreech, pdelbell, rchan, rcollet, simaishi, smcdonal, teagle, tjochec, yguenane, zsadeh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: redis 7.2.2, redis 7.0.14, redis 6.2.14 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Redis, an in-memory database that persists on disk. On startup, Redis listens on a Unix socket before adjusting its permissions to the user-provided configuration. If a permissive umask(2) is used, this creates a race condition that enables, during a short period of time, another process to establish an otherwise unauthorized connection.
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: 2244941, 2244942, 2247172    
Bug Blocks: 2244939    

Description Robb Gatica 2023-10-18 22:31:28 UTC
CVE-2023-45145 - The wrong order of listen(2) and chmod(2) calls creates a
race condition that can be used by another process to bypass desired Unix
socket permissions on startup.

Upstream have released version 7.0.14/7.2.2 to fix CVE-2023-45145.

Reference:
- https://github.com/redis/redis/releases/tag/7.0.14
- https://bugs.mageia.org/32406

Comment 1 Robb Gatica 2023-10-18 22:31:47 UTC
Created redis tracking bugs for this issue:

Affects: epel-all [bug 2244941]
Affects: fedora-all [bug 2244942]

Comment 4 errata-xmlrpc 2024-12-05 21:41:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:10869 https://access.redhat.com/errata/RHSA-2024:10869

Comment 5 errata-xmlrpc 2025-01-22 10:35:54 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

Comment 6 errata-xmlrpc 2025-01-27 01:25:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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