Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 859181 (CVE-2022-31144) - <dev-db/redis-7.0.4: Buffer overflow in XAUTOCLAIM command handling
Summary: <dev-db/redis-7.0.4: Buffer overflow in XAUTOCLAIM command handling
Status: RESOLVED FIXED
Alias: CVE-2022-31144
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B2 [glsa+]
Keywords:
Depends on: 860264
Blocks:
  Show dependency tree
 
Reported: 2022-07-18 23:20 UTC by Sam James
Modified: 2022-09-29 14:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-18 23:20:48 UTC
From https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES:

================================================================================
Redis 7.0.4 Released Monday Jul 18 12:00:00 IST 2022
================================================================================

Upgrade urgency: SECURITY, contains fixes to security issues.

Security Fixes:
* (CVE-2022-31144) A specially crafted XAUTOCLAIM command on a stream
  key in a specific state may result with heap overflow, and potentially
  remote code execution. The problem affects Redis versions 7.0.0 or newer.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-18 23:33:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e26f3cfacab6d82c401e7ca113d9210360c59fec

commit e26f3cfacab6d82c401e7ca113d9210360c59fec
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-18 23:32:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-18 23:32:34 +0000

    dev-db/redis: add 7.0.4
    
    Bug: https://bugs.gentoo.org/859181
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/redis/Manifest                         |   1 +
 dev-db/redis/files/redis-7.0.4-no-which.patch |  66 +++++++++
 dev-db/redis/redis-7.0.4.ebuild               | 187 ++++++++++++++++++++++++++
 3 files changed, 254 insertions(+)
Comment 2 Petr Vaněk gentoo-dev 2022-07-19 07:28:28 UTC
This seems to be pretty severe. New version works for me, should we stabilize? The diff between 7.0.3 (which is one week in the tree) and 7.0.4 is pretty small, basically just one line of source code changed, test adaptation plus few more lines related to a release.
Comment 3 Joonas Niilola gentoo-dev 2022-07-23 12:57:20 UTC
Sure let's stabilize and clean up some old versions.
Comment 4 Larry the Git Cow gentoo-dev 2022-07-26 04:26:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=638debda0bd03affa738c15bc57710d425734a23

commit 638debda0bd03affa738c15bc57710d425734a23
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-26 04:25:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-26 04:25:21 +0000

    dev-db/redis: drop 7.0.1-r1, 7.0.2, 7.0.3
    
    Bug: https://bugs.gentoo.org/859181
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/redis/Manifest              |   3 -
 dev-db/redis/redis-7.0.1-r1.ebuild | 186 -------------------------------------
 dev-db/redis/redis-7.0.2.ebuild    | 186 -------------------------------------
 dev-db/redis/redis-7.0.3.ebuild    | 186 -------------------------------------
 4 files changed, 561 deletions(-)
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-26 18:06:15 UTC
GLSA request filed
Comment 6 Larry the Git Cow gentoo-dev 2022-09-29 14:48:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=3b83b8330073185fb5605b449ed900293d014aeb

commit 3b83b8330073185fb5605b449ed900293d014aeb
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2022-09-29 14:21:49 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-09-29 14:47:59 +0000

    [ GLSA 202209-17 ] Redis: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/803302
    Bug: https://bugs.gentoo.org/816282
    Bug: https://bugs.gentoo.org/841404
    Bug: https://bugs.gentoo.org/856040
    Bug: https://bugs.gentoo.org/859181
    Bug: https://bugs.gentoo.org/872278
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 glsa-202209-17.xml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
Comment 7 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-29 14:50:02 UTC
GLSA released, all done!