Valkey 9.0.7 → 9.1.2
4 releases · 0 breaking changes · 8 security fixes · 4 advisories fixed
8security0breaking0deprecated2feature108fix
Vulnerabilities fixed by this upgrade
- 8.8 GHSA-fq2f-crmw-q97r Unauthenticated use-after-free of the Lua interpreter state in Valkey (script debugger command cache)
- 7.5 GHSA-jcj7-v34w-v9vv Use-after-free in the RDMA pending-data handler when a client
- 8.8 CVE-2026-63639 UAF in stream deserialization may lead to remote code execution
- 7.5 CVE-2026-56684 UAF in Valkey with TLS may lead to remote code execution
Breaking changes
None in the release notes.
Security changes
- security GHSA-jcj7-v34w-v9vv: Fix a use-after-free in RDMA connection handling that could allow an authenticated client to crash the server using CLIENT KILL. Only affects servers built with USE_RDMA and configured with an RDMA listener (#4534) in 9.1.2
- security GHSA-fq2f-crmw-q97r: Fix an unauthenticated use-after-free of the Lua interpreter state, caused by a process-global script debugger command table that cached a raw pointer to a freed interpreter and was never invalidated (#4574) in 9.1.2
- security CVE-2026-56684: Fix a use-after-free in TLS connection handling that could allow an authenticated client to achieve remote code execution using CLIENT KILL (#4234) in 9.1.1
- security CVE-2026-63639: Reject corrupt stream RDB files containing a shared NACK across consumers, which could allow remote code execution. Reported by @z0v3r1n and @lifip. (#4073) in 9.1.1
- security (CVE-2026-23479) Use-After-Free in unblock client flow in 9.1.0
- security (CVE-2026-25243) Invalid Memory Access in RESTORE command in 9.1.0
- security (CVE-2026-23631) Use-after-free when full sync occurs during a yielding Lua/function execution in 9.1.0
- security CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435) in 9.0.8
Every release in between
securityGHSA-jcj7-v34w-v9vv: Fix a use-after-free in RDMA connection handling that could allow an authenticated client to crash the server using CLIENT KILL. Only affects servers built with USE_RDMA and configured with an RDMA listener (#4534)
securityGHSA-fq2f-crmw-q97r: Fix an unauthenticated use-after-free of the Lua interpreter state, caused by a process-global script debugger command table that cached a raw pointer to a freed interpreter and was never invalidated (#4574)
fixFix a double-free crash when a module timer callback stops its own timer with ValkeyModule_StopTimer by @quanyeyang (#4211)
fixFix torn RESP3 push frames when a client publishes to a channel it is also subscribed to, which could desync client libraries by @quanyeyang (#4253)
fixListpacks are now always validated on RDB load and RESTORE, preventing deferred assertion crashes; sanitize-dump-payload and its ACL flags become no-ops by @jjuleslasarte (#3721)
fixFix crashes, hangs, and CPU spinning when the RDMA transport is used together with I/O threads by @quanyeyang (#3611)
fixRESET now clears the CLIENT IMPORT-SOURCE flag, so reused pooled connections return to normal expiration semantics by @tjade273 (#3973)
fixTruncate a partially written MULTI block from the AOF on short read, preventing loss of newer writes after a later restart by @chzhoo (#4342)
fixFix an ACL bypass where duplicate STORE/STOREDIST options let GEORADIUS write or delete keys outside the user's permitted patterns by @tjade273 (#3971)
fixFix command log redaction leaking between commands in a MULTI transaction and missing for commands executed from scripts by @madolson (#4323)
fixFix a use-after-free crash when a module's cluster message type is received after the module is unloaded by @enjoy-binbin (#4360)
fixFix out-of-bounds access for cluster module message type 255, which is now a valid, dispatchable message type by @enjoy-binbin (#4410)
fixAOF loading no longer performs ACL checks on replayed commands, preventing silent data loss when the default user is disabled by @lukepalmer (#3984)
fixFix a client memory accounting leak on replicas that inflated the mem_clients_normal INFO field after primary disconnections by @enjoy-binbin (#4395)
fixFix a permanent client deadlock when a blocking command like BLPOP is followed by a partially delivered pipelined command by @foobar (#4531)
fixHGETEX now requires write permission on the key, closing an ACL gap that let read-only users change field TTLs or delete fields by @ranshid (#4576)
fixCompare the whole TLS certificate CN during authentication, so an embedded NUL can no longer impersonate another ACL user by @madolson (#4577)
fixFix atomic slot migration failures with I/O threads by not offloading the export job's writes while snapshotting by @satheeshaGowda (#4104)
fixReject invalid slot import ranges when loading an RDB, so corrupted files can no longer create bad migration jobs by @enjoy-binbin (#4229)
fixReject RDB slot import records with an invalid job name length, preventing an out-of-bounds read at startup by @quanyeyang (#4210)
fixMOVE and COPY now check ACL access to the current database, so users can no longer exfiltrate keys from an unauthorized DB by @cjx-zar (#4155)
fixFix a crash on COPY with a trailing DB option during slot migration, and block cross-DB COPY regardless of option order by @madolson (#4301)
fixFix a server panic when pipelined commands with invalid arity reach the key prefetcher with I/O threads enabled by @madolson (#4302)
fixHPERSIST, HTTL, HPTTL, HEXPIRETIME, and HPEXPIRETIME now return a syntax error when the FIELDS keyword is missing by @cjx-zar (#4300)
fixFix a race between TLS I/O-thread writes and reads that could leave slot migration export jobs stuck until timeout by @jjuleslasarte (#4320)
fixFix a signed overflow that let very large hash field expiration times (e.g. via HPEXPIREAT) crash the server by @ranshid (#4312)
fixFix a frozen monotonic clock on hosts with unsynchronized TSC that stopped background tasks and key expiration by @quanyeyang (#4346)
fixFix a stack overflow crash when retrying a failed TLS write with a large reply by @murphyjacob4 (#4307)
fixFix the --check-system clocksource check to skip hosts using a hardware clock and suggest only actually available clocksources by @quanyeyang (#4272)
fixFix an assertion failure with I/O threads when a blocked client's pending command was processed again before unblocking by @quanyeyang (#4376)
fixSentinel no longer loads the built-in Lua scripting engine, removing a spurious warning at startup by @enjoy-binbin (#4327)
fixValidate channel, message, and module payload lengths in cluster bus packets, preventing forged packets from crashing nodes by @tjade273 (#3972)
fixHarden stream validation on RDB load and RESTORE so crafted payloads can no longer crash the server on later commands by @madolson (#3922)
fixReject stream payloads with mismatched live/deleted record counts, preventing XDEL from destroying unaccounted entries by @roshkhatri (#4381)
fixSkip unnecessary post-read processing with I/O threads on socket and TLS connections, restoring small-payload throughput by @quanyeyang (#4401)
fixFix a use-after-free crash when serving clients blocked on the same key if one client is freed during processing by @quanyeyang (#4212)
fixAvoid an unneeded client lookup per write completion with I/O threads on socket and TLS connections, improving pipelined throughput by @dgershko (#4440)
fixFix CLUSTER SLOT-STATS ORDERBY returning wrong ordering when slot counters differ by more than 2^31 by @jzy1688 (#4459)
fixFix slot migration failures with I/O threads and TLS by keeping the export job's ACK reads on the main thread while snapshotting by @satheeshaGowda (#4559)
securityCVE-2026-56684: Fix a use-after-free in TLS connection handling that could allow an authenticated client to achieve remote code execution using CLIENT KILL (#4234)
securityCVE-2026-63639: Reject corrupt stream RDB files containing a shared NACK across consumers, which could allow remote code execution. Reported by @z0v3r1n and @lifip. (#4073)
fixOmit the implicit alldbs ACL rule from ACL LIST, ACL SAVE and CONFIG REWRITE so older versions can parse the output by @dvkashapov (#3964)
fixImprove throughput when IO threads are enabled by offloading object deallocation from the main thread by @roshkhatri (#3938)
fixFix use-after-free crash when ACL LOAD removes a user whose authenticated client has its close deferred by @ranshid (#3800)
fixEnforce db= ACL permissions on every DB clause of COPY, closing a bypass with REPLACE or repeated DB tokens by @enjoy-binbin (#3801)
fixEnforce database-level ACLs for CLUSTER FLUSHSLOT, which removes keys from all databases by @enjoy-binbin (#3806)
fixFix use-after-free in the module API when unregistering the first registered cluster message receiver by @eifrah-aws (#3846)
fixFix HRANDFIELD with a positive count looping forever when non-expired fields are fewer than the requested count by @cjx-zar (#4047)
fixFix clients left on the wrong database after module keyspace notifications for MOVE and COPY by @enjoy-binbin (#4024)
fixFix Sentinel crash during coordinated failover when the command link to the old primary disconnects by @lukepalmer (#4068)
fixFix crash when active hash field expiration leaves a single-entry expiry bucket whose last field is later removed by @ranshid (#3950)
fixFix assertion in HEXPIRE, HGETDEL and HPERSIST when a module blocks the client in a keyspace notification callback by @enjoy-binbin (#3743)
fixFix undefined behavior in the failover delay calculation when cluster-node-timeout is below 30 milliseconds by @enjoy-binbin (#3941)
fixReject zipmap RESTORE/RDB payloads with overflowing length fields that could cause out-of-bounds access on 32-bit builds by @madolson (#3920)
fixReject NAN scores in listpack and ziplist encoded sorted sets on RDB/RESTORE load, preventing a crash on skiplist conversion by @madolson (#3921)
fixFix corrupted replies (dropped leading bytes) caused by a reply buffer race when IO threads are enabled by @nanyan0312 (#4060)
fixFix startup crash on 32-bit systems where time_t is 64-bit (such as Alpine 3.23) when generating INFO output by @chenshi5012 (#3787)
fixHGETDEL now returns a syntax error when the FIELDS keyword is missing or misplaced by @lcxn123 (#4049)
fixCOMMAND INFO in RESP3 now returns the subcommands field as an array instead of a set for commands without subcommands by @rickrams (#3939)
fixSend the replica version on the dual-channel RDB connection so full syncs with newer encodings like hash field TTLs succeed by @hpatro (#4105)
fixFix duplicate failure handling and an invalid reply sequence in cluster slot migration by @chx9 (#3723)
fixReject control characters in SENTINEL SET values to prevent config-file injection via Sentinel config rewrite by @eifrah-aws (#3847)
fixReject control characters and delimiters in cluster AUX fields and validate cluster-announce-ip to prevent nodes.conf injection by @eifrah-aws (#3848)
fixRedact key names and user data from more server log messages when hide-user-data-from-log is enabled by @zackcam (#3872)
fixACL LOG now reports the denied database ID for COPY instead of the command name when db= access is denied by @enjoy-binbin (#3888)
fixFix garbled shard IDs in the cluster UPDATE message log line by @enjoy-binbin (#3942)
fixFix negative master_sync_total_bytes in INFO replication during disk-based sync when the RDB exceeds 2GB by @chx9 (#3811)
fixIncrease the maximum process title length from 255 to 1024 characters to avoid truncation with long paths by @pkhartsk (#3843)
security(CVE-2026-23479) Use-After-Free in unblock client flow
security(CVE-2026-25243) Invalid Memory Access in RESTORE command
security(CVE-2026-23631) Use-after-free when full sync occurs during a yielding Lua/function execution
featureAdd cluster bus network traffic usage metric in bytes by @hpatro (#3396)
featureReduce latency spikes during rehashing via incremental page release by @chzhoo (#3481)
fixFix(syncio): Set errno on EOF in syncRead and propagate to conn->last by @abmathur-ie (#3580)
fixFix GEOSEARCH BYPOLYGON leak on invalid COUNT by @bandalgomsu (#3568)
fixHandle NULL pointer in streamTrim listpack delta calculation by @smkher (#3591)
fixFixes server crash when RDMA benchmark clients disconnect by @quanyeyang (#3448)
fixFix the memory leak in valkey-benchmark by @nmvk (#3643)
securityCVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435)
fixFix a server crash when a key with a name of 2 GiB or more is sampled for eviction, and hangs, crashes, or duplicate set members when comparing strings of that size by @madolson (#5133)
fixCorrect command metadata to describe the ZINCRBY increment and ZINTER/ZINTERSTORE/ZUNION/ZUNIONSTORE weights as doubles instead of integers by @sarthakaggarwal97 (#5210)
fixPropagate PFADD elements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128)
fixCorrect expiry command metadata to show that XX can be combined with GT or LT, rather than all four conditions being mutually exclusive by @sarthakaggarwal97 (#5213)
fixFix a server panic when a Lua script returns or raises an error table whose metatable has an __index metamethod that raises an error by @madolson (#5118)
fixFix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159)
fixMark the RESTORE and RESTORE-ASKING IDLETIME and FREQ options as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212)
fixFix a crash when processing a heartbeat from a cluster node whose role is locally unknown, such as after loading an incomplete nodes.conf by @enjoy-binbin (#4091)
fixFix a memory leak when server.register_function named arguments are repeated in a different letter case by @madolson (#5120)
fixFix quadratic slowdown in HRANDFIELD and SRANDMEMBER with counts on collections whose elements differ only in letter case by @madolson (#5167)
fixFix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by @madolson (#5184)
fixFix SCRIPT KILL and FUNCTION KILL not stopping Lua scripts that loop inside nested coroutines, and script timeouts not being detected when work is spread across coroutines by @madolson (#5108)
fixFix an out-of-bounds write in PFADD and PFMERGE on a corrupted sparse HyperLogLog ending in a truncated XZERO opcode by rejecting it as invalid by @madolson (#5124)
fixFix a server abort in PFADD and PFMERGE on short sparse HyperLogLogs when hll-sparse-max-bytes is set to 31 or less by @madolson (#5138)
fixFix a server crash in SORT and SORT_RO with BY or GET patterns when an element is 2 GiB or larger by @madolson (#5146)
fixFix ValkeyModule_Calloc and ValkeyModule_TryCalloc returning an undersized buffer when nmemb * size overflows by @madolson (#5155)
fixFix ValkeyModule_CallReplyAttributeElement always returning an error on RESP3 attribute replies by @madolson (#5157)
fixFix EXEC succeeding after a key that was already expired at WATCH time is overwritten, which can happen on replicas by @madolson (#5169)
fixCorrect command metadata so the numfields count argument of hash field commands is no longer associated with a key specification by @sarthakaggarwal97 (#5211)
fixFix PFMERGE with no source keys bypassing ACL key permissions and failing in COMMAND GETKEYS, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087)
fixFix HSETEX with a repeated EX, PX or EXAT option being rejected by replicas and lost on AOF reload by @madolson (#5088)
fixFix a memory leak when a module command is refused by ACL while the ACL log is disabled with acllog-max-len 0 by @madolson (#5162)
fixFix a crash on the first FUNCTION LOAD after startup when the shebang engine name contains a NUL byte by @madolson (#5115)
fixFix an active defrag crash when a large set, sorted set or list is replaced by a hashtable-encoded hash while it is being defragmented by @madolson (#5164)
fixFix FCALL errors or a crash when FUNCTION FLUSH SYNC runs before the lazy free triggered by FUNCTION RESTORE of more than 64 functions has completed by @madolson (#5105)
fixFix long stalls in SRANDMEMBER, ZRANDMEMBER, HRANDFIELD and SPOP on a small key whose hashtable is still shrinking from a much larger size by @madolson (#5170)
fixFix notify-keyspace-events dropping the n (new key) flag from CONFIG GET and CONFIG REWRITE when A is also set by @pirate329 (#5199)
fixFix a cluster node failing to restart with an assertion after a gossip entry carrying the MYSELF flag adds a second myself node to nodes.conf by @madolson (#5134)
fixFix ACL LOAD not disconnecting default user clients subscribed to channels the reloaded rules no longer allow by @madolson (#5085)
fixFix active defrag crash when a database's keyspace is replaced (async FLUSHDB/FLUSHALL, SWAPDB, replica full sync) while a large key is being defragmented by @taham0 (#4968)
fixAllow modules to block RESP3 clients that are subscribed to Pub/Sub channels instead of failing ValkeyModule_BlockClient with ENOTSUP by @quanyeyang (#4863)
fixBound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering tracking-table-max-keys by @tanmayBeginsJourney (#4775)
fixFix a memory leak when GEOSEARCH or GEOSEARCHSTORE is given repeated BYPOLYGON options by @charsyam (#4995)
fixMEMORY USAGE now counts hash fields that have expired but not yet been reaped, fixing under-reported sizes by @sushilpaneru1 (#5092)
fixFix a memory leak in ValkeyModule_GetCommandKeysWithFlags when introspecting commands with large key lists by @christopherlim98 (#5046)
fixIn cluster mode, one cross-slot command in a script no longer makes every later script and function call fail until restart by @madolson (#5191)
fixCorrect SENTINEL SIMULATE-FAILURE metadata so COMMAND DOCS shows the required mode argument and its tokens by @sarthakaggarwal97 (#5208)
fixFix a TLS busy loop that consumed 100% CPU when a connection's read or write handler was removed while OpenSSL was waiting for the opposite event by @yairgott (#3510)
fixFix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by @royenheart (#4351)
+27 more items in the release notes