redis: upgrade 6.2.14 -> 6.2.16
PATCH 1/3 redis: upgrade 6.2.14 -> 6.2.16
From: Yi Zhao <[email protected]>
ChangeLog:
Security fixes
==============
* (CVE-2024-31449) Lua library commands may lead to stack overflow and potential RCE.
* (CVE-2024-31228) Potential Denial-of-service due to unbounded pattern matching.
---
...1-hiredis-use-default-CC-if-it-is-set.patch} | 14 +++++++-------
...file-to-use-environment-build-setting.patch} | 10 +++++-----
...0003-hack-to-force-use-of-libc-malloc.patch} | 9 ++++-----
...h => 0004-src-Do-not-reset-FINAL_LIBS.patch} | 8 ++++----
...URCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch} | 6 ++----
.../0006-Define-correct-gregs-for-RISCV32.patch | 12 +++++-------
.../redis/redis/init-redis-server | 0
.../redis/{redis_6.2.14.bb => redis_6.2.16.bb} | 17 +++++++++--------
8 files changed, 36 insertions(+), 40 deletions(-)
rename meta-oe/recipes-extended/redis/redis/{hiredis-use-default-CC-if-it-is-set.patch => 0001-hiredis-use-default-CC-if-it-is-set.patch} (85%)
rename meta-oe/recipes-extended/redis/redis/{lua-update-Makefile-to-use-environment-build-setting.patch => 0002-lua-update-Makefile-to-use-environment-build-setting.patch} (93%)
rename meta-oe/recipes-extended/redis/redis/{oe-use-libc-malloc.patch => 0003-hack-to-force-use-of-libc-malloc.patch} (92%)
rename meta-oe/recipes-extended/redis/redis/{0001-src-Do-not-reset-FINAL_LIBS.patch => 0004-src-Do-not-reset-FINAL_LIBS.patch} (86%)
rename meta-oe/recipes-extended/redis/redis/{GNU_SOURCE.patch => 0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch} (91%)
mode change 100755 => 100644 meta-oe/recipes-extended/redis/redis/init-redis-server
rename meta-oe/recipes-extended/redis/{redis_6.2.14.bb => redis_6.2.16.bb} (79%)meta-oe/recipes-extended/redis/redis/0001-hiredis-use-default-CC-if-it-is-set.patch renamed from meta-oe/recipes-extended/redis/redis/hiredis-use-default-CC-if-it-is-set.patch +7 -7
@@ -1,11 +1,16 @@ -From dc745a33f3875cc72d41bd34ed490b352e546352 Mon Sep 17 00:00:00 2001 +From 67990f216f2fbbc8a6699c700dfc089aa617905f Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 17:39:52 -0600 Subject: [PATCH] hiredis: use default CC if it is set +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit Instead of trying to automagically figure out CC, which breaks with OE as CC has spaces in it, just skip it if one was already passed in. +Upstream-Status: Pending + Signed-off-by: Venture Research <[email protected]> Update to work with 4.0.8
@@ -14,13 +19,11 @@ Signed-off-by: Alistair Francis <[email protected]> Reworked for 6.0.4 Signed-off-by: Andreas Müller <[email protected]> --- -Upstream-Status: Pending - deps/hiredis/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile -index 25ac154..569f82b 100644 +index 7e41c97..54717e3 100644 --- a/deps/hiredis/Makefile +++ b/deps/hiredis/Makefile @@ -42,8 +42,6 @@ endef
@@ -32,6 +35,3 @@ index 25ac154..569f82b 100644 OPTIMIZATION?=-O3 WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers DEBUG_FLAGS?= -g -ggdb --- -2.21.3 -
meta-oe/recipes-extended/redis/redis/0002-lua-update-Makefile-to-use-environment-build-setting.patch renamed from meta-oe/recipes-extended/redis/redis/lua-update-Makefile-to-use-environment-build-setting.patch +5 -5
@@ -1,4 +1,4 @@ -From 097a2b259cb266c2c861dc74fa6f80712d6138c5 Mon Sep 17 00:00:00 2001 +From ef989aab052510bfda32b2b325a5f80b76c42677 Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Fri, 8 Feb 2013 20:22:19 -0600 Subject: [PATCH] lua: update Makefile to use environment build settings
@@ -6,6 +6,8 @@ Subject: [PATCH] lua: update Makefile to use environment build settings OE-specific parameters, instead of overriding all of these simply use the ones that are already passed in. Also configure for only Linux... +Upstream-Status: Pending + Signed-off-by: Venture Research <[email protected]> Updated to work with 3.0.x
@@ -15,18 +17,16 @@ Signed-off-by: Armin Kuster <[email protected]> updated to work wtih 6.2.1 Signed-off-by: Yi Fan Yu <[email protected]> --- -Upstream-Status: Pending - deps/Makefile | 1 - deps/lua/Makefile | 1 - deps/lua/src/Makefile | 16 ++++++---------- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/deps/Makefile b/deps/Makefile -index ff16ee9..d8d64aa 100644 +index cbe3aef..76bc222 100644 --- a/deps/Makefile +++ b/deps/Makefile -@@ -74,7 +74,6 @@ LUA_LDFLAGS+= $(LDFLAGS) +@@ -81,7 +81,6 @@ endif # lua's Makefile defines AR="ar rcu", which is unusual, and makes it more # challenging to cross-compile lua (and redis). These defines make it easier # to fit redis into cross-compilation environments, which typically set AR.
meta-oe/recipes-extended/redis/redis/0003-hack-to-force-use-of-libc-malloc.patch renamed from meta-oe/recipes-extended/redis/redis/oe-use-libc-malloc.patch +4 -5
@@ -1,4 +1,4 @@ -From 1fa047162983d4a7e0576f0837a73a6027a783bd Mon Sep 17 00:00:00 2001 +From b9586abcb803747301f6cc4ff93c7642bef693ea Mon Sep 17 00:00:00 2001 From: Venture Research <[email protected]> Date: Wed, 6 Feb 2013 20:51:02 -0600 Subject: [PATCH] hack to force use of libc malloc
@@ -9,19 +9,18 @@ removed in favor of magic. Note that this of course doesn't allow tcmalloc and jemalloc, however jemalloc wasn't building correctly. +Upstream-Status: Pending + Signed-off-by: Venture Research <[email protected]> Update to work with 4.0.8 Signed-off-by: Alistair Francis <[email protected]> - --- -Upstream-Status: Pending - src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index ecd6929..c7f43c5 100644 +index 7d75c83..35dd314 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@
meta-oe/recipes-extended/redis/redis/0004-src-Do-not-reset-FINAL_LIBS.patch renamed from meta-oe/recipes-extended/redis/redis/0001-src-Do-not-reset-FINAL_LIBS.patch +4 -4
@@ -1,4 +1,4 @@ -From 97584e1eb78dc18599534b47b6670c20c63f5ee2 Mon Sep 17 00:00:00 2001 +From a4d87aca1c00c53b386ee7490223971e00873add Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 10 Sep 2019 20:04:26 -0700 Subject: [PATCH] src: Do not reset FINAL_LIBS
@@ -9,17 +9,17 @@ environment to get it going e.g. -latomic is needed on clang/x86 to provide for 64bit atomics Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> +Signed-off-by: Khem Raj <[email protected]> --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 5564351..83ccd76 100644 +index 35dd314..3770f96 100644 --- a/src/Makefile +++ b/src/Makefile -@@ -91,7 +91,7 @@ endif +@@ -93,7 +93,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
meta-oe/recipes-extended/redis/redis/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch renamed from meta-oe/recipes-extended/redis/redis/GNU_SOURCE.patch +2 -4
@@ -1,4 +1,4 @@ -From 98d526f76049be21bf3d77158236b2189419a78e Mon Sep 17 00:00:00 2001 +From 2e6311c9c7cd85bf63eab8fe92c08ec1ec01b6fc Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 21 Dec 2019 12:09:51 -0800 Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER
@@ -9,6 +9,7 @@ Fixes | | ^~~~~~~~~~~~~~~~~~~~~~~~~ Upstream-Status: Pending + Signed-off-by: Khem Raj <[email protected]> --- src/zmalloc.c | 1 +
@@ -26,6 +27,3 @@ index 1f33d09..5e182d1 100644 #include <stdio.h> #include <stdlib.h> #include <stdint.h> --- -2.25.1 -
meta-oe/recipes-extended/redis/redis/0006-Define-correct-gregs-for-RISCV32.patch +5 -7
@@ -1,9 +1,10 @@ -From 26bd72f3b8de22e5036d86e6c79f815853b83473 Mon Sep 17 00:00:00 2001 +From 6149911f7a6fbaef3ed418408e2b501fa9479ffa Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 26 Oct 2020 21:32:22 -0700 Subject: [PATCH] Define correct gregs for RISCV32 Upstream-Status: Pending + Signed-off-by: Khem Raj <[email protected]> Updated patch for 6.2.1
@@ -13,10 +14,10 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c -index 5318c14..8c21b47 100644 +index bb76c5d..55a0696 100644 --- a/src/debug.c +++ b/src/debug.c -@@ -1055,7 +1055,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { +@@ -1067,7 +1067,9 @@ static void* getAndSetMcontextEip(ucontext_t *uc, void *eip) { #endif #elif defined(__linux__) /* Linux */
@@ -27,7 +28,7 @@ index 5318c14..8c21b47 100644 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); #elif defined(__X86_64__) || defined(__x86_64__) GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip); -@@ -1222,8 +1224,28 @@ void logRegisters(ucontext_t *uc) { +@@ -1234,8 +1236,28 @@ void logRegisters(ucontext_t *uc) { #endif /* Linux */ #elif defined(__linux__)
@@ -57,6 +58,3 @@ index 5318c14..8c21b47 100644 serverLog(LL_WARNING, "\n" "EAX:%08lx EBX:%08lx ECX:%08lx EDX:%08lx\n" --- -2.25.1 -
meta-oe/recipes-extended/redis/redis/init-redis-server +0 -0
meta-oe/recipes-extended/redis/redis_6.2.16.bb renamed from meta-oe/recipes-extended/redis/redis_6.2.14.bb +9 -8
@@ -10,19 +10,20 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://redis.conf \ file://init-redis-server \ file://redis.service \ - file://hiredis-use-default-CC-if-it-is-set.patch \ - file://lua-update-Makefile-to-use-environment-build-setting.patch \ - file://oe-use-libc-malloc.patch \ - file://0001-src-Do-not-reset-FINAL_LIBS.patch \ - file://GNU_SOURCE.patch \ + file://0001-hiredis-use-default-CC-if-it-is-set.patch \ + file://0002-lua-update-Makefile-to-use-environment-build-setting.patch \ + file://0003-hack-to-force-use-of-libc-malloc.patch \ + file://0004-src-Do-not-reset-FINAL_LIBS.patch \ + file://0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch \ file://0006-Define-correct-gregs-for-RISCV32.patch \ - " -SRC_URI[sha256sum] = "34e74856cbd66fdb3a684fb349d93961d8c7aa668b06f81fd93ff267d09bc277" + " + +SRC_URI[sha256sum] = "846bff83c26d827d49f8cc8114ea9d1e72eea1169f7de36b8135ea2cec104e7d" inherit autotools-brokensep update-rc.d systemd useradd FINAL_LIBS:x86:toolchain-clang = "-latomic" -FINAL_LIBS:riscv32:toolchain-clang = "-latomic" +FINAL_LIBS:riscv32 = "-latomic" FINAL_LIBS:mips = "-latomic" FINAL_LIBS:arm = "-latomic" FINAL_LIBS:powerpc = "-latomic"
Signature · 1 line
2.25.1
PATCH 2/3 redis: upgrade 6.2.16 -> 6.2.18
From: Vijay Anusuri <[email protected]>
Changelog:
https://github.com/redis/redis/releases/tag/6.2.17
https://github.com/redis/redis/releases/tag/6.2.18
Security fixes
==============
* (CVE-2024-46981) Lua script commands may lead to remote code execution
* (CVE-2025-21605) An unauthenticated client can cause an unlimited growth of output buffers
---
.../recipes-extended/redis/{redis_6.2.16.bb => redis_6.2.18.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-extended/redis/{redis_6.2.16.bb => redis_6.2.18.bb} (96%)meta-oe/recipes-extended/redis/redis_6.2.18.bb renamed from meta-oe/recipes-extended/redis/redis_6.2.16.bb +1 -1
@@ -18,7 +18,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] = "846bff83c26d827d49f8cc8114ea9d1e72eea1169f7de36b8135ea2cec104e7d" +SRC_URI[sha256sum] = "470c75bac73d7390be4dd66479c6f29e86371c5d380ce0c7efb4ba2bbda3612d" inherit autotools-brokensep update-rc.d systemd useradd
Signature · 1 line
2.25.1
PATCH 3/3 redis: upgrade 6.2.18 -> 6.2.20
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Changelog:
6.2.19:
(CVE-2025-32023) Fix out-of-bounds write in HyperLogLog commands
(CVE-2025-48367) Retry accepting other connections even if the accepted connection reports an error
6.2.20:
(CVE-2025-49844) A Lua script may lead to remote code execution (CVE-2025-46817) A Lua script may lead to integer overflow and potential RCE (CVE-2025-46818) A Lua script can be executed in the context of another user (CVE-2025-46819) LUA out-of-bound read
---
.../recipes-extended/redis/{redis_6.2.18.bb => redis_6.2.20.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-extended/redis/{redis_6.2.18.bb => redis_6.2.20.bb} (96%)meta-oe/recipes-extended/redis/redis_6.2.20.bb renamed from meta-oe/recipes-extended/redis/redis_6.2.18.bb +1 -1
@@ -18,7 +18,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] = "470c75bac73d7390be4dd66479c6f29e86371c5d380ce0c7efb4ba2bbda3612d" +SRC_URI[sha256sum] = "7f8b8a7aed53c445a877adf9e3743cdd323518524170135a58c0702f2dba6ef4" inherit autotools-brokensep update-rc.d systemd useradd
Signature · 1 line
2.25.1
Re: [oe][meta-oe][scarthgap][PATCH 3/3] redis: upgrade 6.2.18 -> 6.2.20
Hi Team,
Any Update on this ?
Thanks & Regards,
Vijay
Quoted 51 lines · On Wed, Oct 15, 2025 at 9:52 AM <[email protected]> wrote:
From: Gyorgy Sarvari <[email protected]>
Changelog:
6.2.19:
(CVE-2025-32023) Fix out-of-bounds write in HyperLogLog commands (CVE-2025-48367) Retry accepting other connections even if the accepted connection reports an error6.2.20:
(CVE-2025-49844) A Lua script may lead to remote code execution (CVE-2025-46817) A Lua script may lead to integer overflow and potential RCE
(CVE-2025-46818) A Lua script can be executed in the context of another user
(CVE-2025-46819) LUA out-of-bound readSigned-off-by Gyorgy Sarvari <[email protected]>Signed-off-by Khem Raj <[email protected]>(cherry picked from commit 1a22715b82584696dec489914d8bb9ccf73b5600)Signed-off-by Vijay Anusuri <[email protected]>--- .../recipes-extended/redis/{redis_6.2.18.bb => redis_6.2.20.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-oe/recipes-extended/redis/{redis_6.2.18.bb => redis_6.2.20.bb}(96%)
meta-oe/recipes-extended/redis/redis_6.2.20.bb renamed from meta-oe/recipes-extended/redis/redis_6.2.18.bb +0
-1@@ -18,7 +18,7 @@ SRC_URI = " http://download.redis.io/releases/${BP}.tar.gz \ file://0006-Define-correct-gregs-for-RISCV32.patch \ " -SRC_URI[sha256sum] ="
470c75bac73d7390be4dd66479c6f29e86371c5d380ce0c7efb4ba2bbda3612d" +SRC_URI[sha256sum] = "7f8b8a7aed53c445a877adf9e3743cdd323518524170135a58c0702f2dba6ef4"inherit autotools-brokensep update-rc.d systemd useradd
--
2.25.1