File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,19 @@ Bug fixes
36
36
mode. (#1155)
37
37
* Send the correct error message when `FUNCTION KIlL` is used to kill an
38
38
ongoing script. (#1171)
39
+ * Fix a potential memory corruption when databases are emptied, such as
40
+ through `FLUSHDB`, when during active defrag is running. (#1512)
39
41
40
42
Behavior changes
41
43
================
42
44
* Revert an unintended breaking change when sending an unsubuscribe command
43
45
when a client is not subscribed to any channels. (#1265)
44
46
47
+ Security fixes
48
+ ==============
49
+ * (CVE-2024-46981) Lua script commands may lead to remote code execution. (#1513)
50
+ * (CVE-2024-51741) Denial-of-service due to malformed ACL selectors. (#1514)
51
+
45
52
================================================================================
46
53
Valkey 8.0.1 - Released Tue 1 Oct 2024
47
54
================================================================================
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ void scriptingInit(int setup) {
282
282
void freeLuaScriptsSync (dict * lua_scripts , list * lua_scripts_lru_list , lua_State * lua ) {
283
283
dictRelease (lua_scripts );
284
284
listRelease (lua_scripts_lru_list );
285
- lua_gc (lctx . lua , LUA_GCCOLLECT , 0 );
285
+ lua_gc (lua , LUA_GCCOLLECT , 0 );
286
286
lua_close (lua );
287
287
288
288
#if !defined(USE_LIBC )
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ void sortCommandGeneric(client *c, int readonly) {
262
262
/* If GET is specified with a real pattern, we can't accept it in cluster mode,
263
263
* unless we can make sure the keys formed by the pattern are in the same slot
264
264
* as the key to sort. */
265
- if (server .cluster_enabled &&
265
+ if (server .cluster_enabled && ! isReturnSubstPattern ( c -> argv [ j + 1 ] -> ptr ) &&
266
266
!isReturnSubstPattern (c -> argv [j + 1 ]-> ptr ) &&
267
267
patternHashSlot (c -> argv [j + 1 ]-> ptr , sdslen (c -> argv [j + 1 ]-> ptr )) != getKeySlot (c -> argv [1 ]-> ptr )) {
268
268
addReplyError (c , "GET option of SORT denied in Cluster mode when "
You can’t perform that action at this time.
0 commit comments