VersionDrift
Product

Valkey 9.1.2 → 9.2.0

3 releases · 3 breaking changes · 2 security fixes · 2 advisories fixed

2security3breaking0deprecated37feature63fix

Vulnerabilities fixed by this upgrade

  • 7.5 CVE-2026-130822 Use-after-free when client eviction frees the client whose command is still executing
  • 8.8 GHSA-f4q9-j22m-xqq9 Integer truncation in Valkey cluster publish message construction causes a heap buffer overflow

Breaking changes

  • breaking Remove PHLONGEST in favor of PHPREFIXES, which now returns matches longest-first with paging and an EXCLUDESELF option by @yangbodong22011 (#5070) in 9.2.0
  • breaking Remove the # Hotkeys INFO section and its hotkeys_last_window_samples and hotkeys_last_window_duration_ms fields, which only shipped in the 9.2 release candidates by @ranshid (#5340) in 9.2.0
  • breaking Remove the forkless_fallbacks_old_rdb_version counter from INFO debug along with the redundant old RDB version fork fallback for full sync by @nitaicaro (#5461) in 9.2.0

Security changes

  • security CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435) in 9.1.4
  • security GHSA-f4q9-j22m-xqq9: Fix a heap buffer overflow in cluster Pub/Sub message construction that could allow an authenticated client to potentially execute arbitrary code by publishing an oversized message by @roshkhatri (#5030) in 9.1.3

Every release in between

featureAdd new DELEX command to conditionally delete a string key when its value matches (IFEQ) or differs from (IFNE) a given value by @lightsigma96 (#4607)
featureAdd Zstd as a streaming compression codec for RDB persistence and replication, offering better compression ratios than LZ4 by @sarthakaggarwal97 (#3798)
featureSupport streaming-compressed RDB preambles in AOF bases, so compressed full-sync RDB files can be reused directly as AOF bases by @sarthakaggarwal97 (#4754)
featureACL GENPASS and the hash function seed draw randomness from the configured OpenSSL 3 provider when built with TLS, supporting deployments that require a validated crypto module by @MarkAtwood (#4339)
featureSupport forkless full synchronization to replicas, serving disk and diskless full syncs from a background-thread snapshot without forking by @nitaicaro (#4797)
featureAdd ACL DIGEST command that returns a fingerprint of the ACL rules currently in effect, useful to verify what ACL LOAD applied by @melancholictheory (#4446)
featureAdd forkless RDB snapshots, opt-in via the new forkless-infrastructure-enabled and bgsave-default-method configs, with new INFO persistence fields reporting the save method and progress by @JimB123 (#4460)
featureAdd the XACKDEL and XDELEX stream commands with KEEPREF, DELREF and ACKED modes to acknowledge and delete messages once consumer groups no longer need them by @nickiaq (#4629)
featureSupport a secondary server certificate via tls-alt-cert-file, tls-alt-key-file and tls-alt-key-file-pass, e.g. a post-quantum certificate alongside RSA, with matching INFO TLS fields by @pkhartsk (#3717)
featureAdd ACL roles: named, reusable sets of ACL selectors managed with ACL SETROLE/DELROLE/GETROLE/ROLES and assigned to users with role:, in commands, the ACL file and valkey.conf by @yang-z-o (#3967)
featureAdd a maxmemory-scripts config to limit memory used by cached EVAL scripts, and mark SCRIPT LOAD as DENYOOM so it respects the global maxmemory limit by @enjoy-binbin (#866)
featureAdd Path Hash, a new radix-tree-backed data type with PH* commands for exact lookup, longest-prefix matching, and prefix traversal over binary-safe paths by @yangbodong22011 (#4506)
featureSupport whole-stream LZ4 compression of RDB files via the new rdbcompression lz4 option; the default per-string LZF behavior is unchanged by @sarthakaggarwal97 (#3531)
featureAdd server-side hot key detection with new HOTKEYS GET/RESET commands, enabled by setting hotkeys-top-k by @alon-arenberg (#3708)
featureAdd optional replication throttling (repl-throttling-enabled) that slows client writes when a replica falls behind, avoiding disconnects and full syncs by @harrylin98 (#4356)
featurePrioritize system-critical events (cluster heartbeats, replication, slot migration) over heavy client traffic, tunable via the new priority-preemptive-poll-interval-us config by @satheeshaGowda (#4076)
featureReserve connection slots for administrative clients: connections from the CIDR ranges listed in the new priority-subnets config are tagged as prioritized, maxclients-reserved caps normal clients at maxclients minus that many slots, and INFO clients reports connected_priority_clients by…
featureAdd INCREX command to atomically increment a key by an integer or float while setting its expiration, with NX/XX conditions by @GavinDmello (#3253)
featureFix 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)
featureStop treating LINDEX, LRANGE and LPOS as format-changing commands during forkless background iteration, so list reads no longer get write-style handling by @JimB123 (#5283)
featureKeep the forkless save queue growing under write load by not counting keys expedited by writes as leftover work by @taham0 (#5298)
featureMake BCAST client tracking cost scale with the prefixes a key matches instead of all registered prefixes, so many unmatched prefixes no longer slow writes and the event loop by @madolson (#5183)
featureReclaim memory from sorted sets that shrink or have frequent score updates by compacting sparse B+tree leaves on delete by @rainsupreme (#4526)
featureSpeed up sorted set score updates in listpack encoding by replacing the score in place when the member keeps its position by @charsyam (#3491)
featureFix quadratic slowdown in HRANDFIELD and SRANDMEMBER with counts on collections whose elements differ only in letter case by @madolson (#5167)
featureBound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering tracking-table-max-keys by @tanmayBeginsJourney (#4775)
featureSpeed up the INFO command by around 5% by pre-allocating the output buffer by @charsyam (#3413)
featureReclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
featureSpeed up ZPOPMIN and ZPOPMAX on B+tree encoded sorted sets by detaching edge items without a key search or copy by @charsyam (#4852)
featureCounting a hash's fields with expirations is now O(1) for hashtable-encoded hashes by tracking the volatile set size on each mutation by @frostzt (#4829)
featureSpeed up AOF command propagation by serializing commands directly into the AOF buffer, removing an allocation and copy per command by @charsyam (#3496)
featureCache the earliest event-loop timer to avoid an O(N) scan per iteration, reducing overhead with many timers such as RDMA connections by @royenheart (#4354)
featureSpeed up HGETALL, HKEYS and HVALS with exact-length reply headers, fused bulk replies, and entry prefetching by @jjuleslasarte (#4417)
featureEliminate false sharing in per-thread memory usage counters, improving throughput with I/O threads on SMT x86 systems by @omerrubi-amzn (#4107)
featureRead-only list iteration (e.g. LRANGE, LPOS) no longer decompresses and recompresses quicklist nodes in place, cutting CPU cost on compressed lists by @murphyjacob4 (#4782)
featureSpeed up ZSCAN on btree-encoded sorted sets by avoiding temporary member and score copies and prefetching items by @charsyam (#4856)
featureReduce cache-line false sharing on IO thread activity and job counters for better multi-threaded IO performance by @omerrubi-amzn (#4976)
breakingRemove PHLONGEST in favor of PHPREFIXES, which now returns matches longest-first with paging and an EXCLUDESELF option by @yangbodong22011 (#5070)
breakingRemove the # Hotkeys INFO section and its hotkeys_last_window_samples and hotkeys_last_window_duration_ms fields, which only shipped in the 9.2 release candidates by @ranshid (#5340)
breakingRemove the forkless_fallbacks_old_rdb_version counter from INFO debug along with the redundant old RDB version fork fallback for full sync by @nitaicaro (#5461)
+284 more items in the release notes
securityCVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435)
fixFix a crash when a key with a name of 2 GiB or more is sampled for eviction, and incorrect comparison of strings that large 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)
fixFix a server crash in SCRIPT DEBUG SYNC mode when a debugger command arrives in more than one read by @madolson (#5127)
fixCorrect command metadata so the numfields count argument of hash field commands is no longer associated with a key specification by @sarthakaggarwal97 (#5211)
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)
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)
fixMark the RESTORE and RESTORE-ASKING IDLETIME and FREQ options as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212)
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)
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 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 and MSETEX 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 script or 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 crash when the Lua debugger is started on an empty or newline-only script by @madolson (#5117)
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 an active defrag crash when a database is replaced by an async FLUSHDB/FLUSHALL, SWAPDB or a 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)
fixReclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190)
fixFix a memory leak when GEOSEARCH or GEOSEARCHSTORE is given repeated BYPOLYGON options by @charsyam (#4995)
fixFix a memory leak in ValkeyModule_GetCommandKeysWithFlags when introspecting commands with large key lists by @christopherlim98 (#5046)
fixMEMORY USAGE now counts hash fields that have expired but not yet been reaped, fixing under-reported sizes by @sushilpaneru1 (#5092)
fixFix a crash in ValkeyModule_Call when script-mode validation fails and error replies were not requested by @dvkashapov (#5091)
+36 more items in the release notes
securityGHSA-f4q9-j22m-xqq9: Fix a heap buffer overflow in cluster Pub/Sub message construction that could allow an authenticated client to potentially execute arbitrary code by publishing an oversized message by @roshkhatri (#5030)
fixFix stream commands that mutate consumer-group or PEL state (XGROUP, XSETID, XREADGROUP, XACK, XCLAIM, XAUTOCLAIM) not triggering WATCH and client-side tracking invalidation by @Tarte12 (#3459)
fixReject module write commands while the server is paused for writes, preventing a crash from module timer callbacks during CLIENT PAUSE WRITE or CLUSTER FAILOVER by @smkher (#3645)
fixFix event loop busy-spinning on virtual machines by not using raw TSC for the monotonic clock when the kernel clocksource is not tsc by @quanyeyang (#4707)
fixFix a crash in ValkeyModule_HashHasStringRef on a missing or expired field and correct wrong return values in the hash stringRef module APIs by @ShubhamTaple (#4504)
fixFix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data by @enjoy-binbin (#4733)
fixFix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION by @leomurillo (#4997)
fixClear a stale primary-failure gossip flag on replicas so later failovers don't incorrectly skip the election delay by @charsyam (#4533)
fixCorrect ValkeyModule_FreeModuleUser, ValkeyModule_ACLAddLogEntry and ValkeyModule_ACLAddLogEntryByUserName declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks by @rainsupreme (#4676)
fixvalkey-check-aof now recognizes RDB base files with the VALKEY signature instead of misreporting a valid multipart AOF as invalid by @sarthakaggarwal97 (#4739)
fixFix module commands that access undeclared keys in other slots reading or writing the wrong slot in cluster mode, and aborting in debug builds by @patrickswedish (#4424)
fixReject relative expire times in SET/GETEX, RESTORE, and ValkeyModule_SetExpire that overflow when added to the current time, preventing server aborts from negative expires by @madolson (#4880)
fixHDEL, HGETDEL, HPERSIST, and HEXPIRE no longer propagate fields they treat as expired, preventing replica and AOF-reload divergence by @xdk-amz (#4772)
fixFix a server crash when loading an ACL file containing a selector with an unmatched parenthesis by @magic-peach (#4214)
fixFix a segfault on Alpine/musl when Lua is built as a module, caused by a symbol clash on an internal clock function by @mohammedgqudah (#4270)
fixCOPY of a hash now includes expired-but-unreaped fields so their deletion is propagated and replicas stay in sync by @pirate329 (#4939)
fixRestore acceptance of hexadecimal float sorted set scores (such as 0x10), keeping replication and AOF replay compatible with Valkey 9.0 by @quanyeyang (#4875)
fixSorted set range commands with a negative LIMIT offset now return an empty result instead of a spurious element on btree-encoded keys by @xiaocj (#4637)
fixFix listpack encoding incompatibility that caused RDB load and replication failures for entries of certain lengths between 9.0 and 9.1.x by @jjuleslasarte (#4819)
fixFix atomic slot migration not replicating evictions on the import target, which let replicas grow far past maxmemory by @shanezx-sc (#4920)
fixRedact error text in server logs when hide-user-data-from-log is enabled, so command arguments no longer leak into logs by @zackcam (#4815)
fixFix HSETEX and HGETEX failing to parse their arguments when the key is named fields by @sebxt (#4945)
fixFix cluster config saving to avoid publishing truncated nodes.conf files, losing the startup lock after the first save, and failing every save on SMB filesystems such as Azure Files; the lock now lives on a separate nodes.conf.lock file by @KewangZhili (#4489)
fixFix LSET on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error by @charsyam (#4823)
fixFix atomic slot migration with cluster-databases > 1 applying writes made during the snapshot to the wrong database on the target by @pirate329 (#4952)
See how far your stack has drifted from upstream. Release data from vendors’ own sources · feed under CC BY 4.0 · Code under AGPL-3.0 Settings Feed status