Bug 2369153 (CVE-2025-27151)

Summary: CVE-2025-27151 redis: Redis Stack Buffer Overflow
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abarbaro, alinfoot, anthomas, aprice, bbrownin, bdettelb, brasmith, caswilli, cochase, dnakabaa, doconnor, dranck, dtrifiro, ehelms, ggainey, gkamathe, haoli, hkataria, jajackso, jcammara, jchui, jdobes, jhe, jkoehler, jmitchel, jneedle, jsamir, jtanner, juwatts, jvasik, jwong, kaycoth, kegrant, kgaikwad, kholdawa, koliveir, kshier, ktsao, lcouzens, lphiri, mabashia, mhulan, mskarbek, nboldt, nkathole, nmoumoul, oezr, orabin, osousa, pbraun, pcreech, psrna, rblanco, rbryant, rchan, shvarugh, simaishi, smallamp, smcdonal, stcannon, teagle, tfister, thavo, ttakamiy, vmugicag, weaton, xiaoxwan, yguenane, zzhou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in Redis. Using memcpy with the strlen filepath when copying a user-supplied file path into a fixed-size stack buffer in redis-check-aof results in a stack-based buffer overflow. This flaw allows a local attacker to trigger the overflow by providing a specially crafted file path, allowing potential code execution. The primary consequence is a possible denial of service.
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: 2380113    
Bug Blocks:    

Description OSIDB Bzimport 2025-05-29 10:01:08 UTC
Redis is an open source, in-memory database that persists on disk. In versions starting from 7.0.0 to before 8.0.2, a stack-based buffer overflow exists in redis-check-aof due to the use of memcpy with strlen(filepath) when copying a user-supplied file path into a fixed-size stack buffer. This allows an attacker to overflow the stack and potentially achieve code execution. This issue has been patched in version 8.0.2.

Comment 4 errata-xmlrpc 2025-07-21 01:21:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

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

Comment 5 errata-xmlrpc 2025-07-28 19:54:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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