diff --git a/0006-bugfix-for-CVE-2025-49844.patch b/0006-bugfix-for-CVE-2025-49844.patch new file mode 100644 index 0000000000000000000000000000000000000000..d1fa2bc385f6bf459d235df40f696bca1f127163 --- /dev/null +++ b/0006-bugfix-for-CVE-2025-49844.patch @@ -0,0 +1,32 @@ +From 02b16202a30f619628305ed89d3ae7700c280793 Mon Sep 17 00:00:00 2001 +From: Mincho Paskalev +Date: Mon, 23 Jun 2025 11:41:37 +0300 +Subject: [PATCH] Lua script may lead to remote code execution (CVE-2025-49844) + +--- + deps/lua/src/lparser.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/deps/lua/src/lparser.c b/deps/lua/src/lparser.c +index dda7488dcad..ee7d90c90d7 100644 +--- a/deps/lua/src/lparser.c ++++ b/deps/lua/src/lparser.c +@@ -384,13 +384,17 @@ Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { + struct LexState lexstate; + struct FuncState funcstate; + lexstate.buff = buff; +- luaX_setinput(L, &lexstate, z, luaS_new(L, name)); ++ TString *tname = luaS_new(L, name); ++ setsvalue2s(L, L->top, tname); ++ incr_top(L); ++ luaX_setinput(L, &lexstate, z, tname); + open_func(&lexstate, &funcstate); + funcstate.f->is_vararg = VARARG_ISVARARG; /* main func. is always vararg */ + luaX_next(&lexstate); /* read first token */ + chunk(&lexstate); + check(&lexstate, TK_EOS); + close_func(&lexstate); ++ --L->top; + lua_assert(funcstate.prev == NULL); + lua_assert(funcstate.f->nups == 0); + lua_assert(lexstate.fs == NULL); diff --git a/redis.spec b/redis.spec index cb343ee6552c9e1750432b0a78bc153fc9b23c76..e107dd73b8cf69942ad51f7975096380164753eb 100644 --- a/redis.spec +++ b/redis.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 # temp workaround to https://bugzilla.redhat.com/2059488 %undefine _package_note_file @@ -36,6 +36,7 @@ Patch0003: 0003-Fix-CVE-2025-46818.patch Patch0004: 0004-Fix-CVE-2025-46819.patch # https://github.com/redis/redis/commit/fc9abc775e308374f667fdf3e723ef4b7eb0e3ca Patch0005: 0005-Fix-CVE-2025-46817.patch +Patch0006: 0006-bugfix-for-CVE-2025-49844.patch BuildRequires: make BuildRequires: gcc @@ -140,6 +141,7 @@ sed -i -e 's|^dir .*$|dir /var/lib/redis|g' redis.conf %ifarch x86_64 sed -e 's/--with-lg-quantum/--with-lg-page=12 --with-lg-quantum/' -i deps/Makefile %endif +%patch -P0006 -p1 %ifarch aarch64 sed -e 's/--with-lg-quantum/--with-lg-page=16 --with-lg-quantum/' -i deps/Makefile %endif @@ -297,6 +299,9 @@ fi %changelog +* Sat Nov 01 2025 tomcruiseqi - 7.2.10-3 +- Fix CVE-2025-49844 + * Fri Oct 10 2025 wh02252983 - 7.2.10-2 - Add patch to fix CVE-2025-46818 and CVE-2025-46819 and CVE-2025-46817