Repository navigation
Reject relative expires that overflow when the base time is added - #4880
Conversation
SET/GETEX with EX/PX, RESTORE with a relative TTL, and ValkeyModule_SetExpire added commandTimeSnapshot() to a user-supplied value. SET/GETEX detected overflow by checking whether the sum went negative, which is signed overflow and can be optimized away; the other two never checked. Where checkAlreadyExpired() does not delete, such as import mode, the key was stored with a negative absolute expire and the active expire cycle then aborted on serverAssert(t >= 0). RDB load only dropped such keys on a primary loading a plain RDB, so an AOF preamble or a replica full sync kept them. Check against LLONG_MAX - basetime before adding, as convertExpireArgumentToUnixTime() does, and make RESTORE reply with the same invalid expire time error. On RDB load, treat a negative expire as already expired on every node. Signed-off-by: Madelyn Olson <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
sarthakaggarwal97
left a comment
There was a problem hiding this comment.
Thanks! Looks simple enough and makes sense. It would be good to get this backported before the next release!
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #4880 +/- ##
============================================
- Coverage 80.84% 80.72% -0.12%
============================================
Files 195 195
Lines 101907 101914 +7
============================================
- Hits 82384 82272 -112
- Misses 19523 19642 +119
🚀 New features to boost your workflow:
|
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
> [!NOTE] > **Opened ready despite 3 flagged items** (`force_ready` was set): notes flagged low-confidence; release-safety guardrail overrode AI triage; AI triaged PRs without release-notes (confirm include/exclude). Review the sections below and confirm before merging. Cuts **9.1.3** onto release line `9.1`. - Promotes the release notes into a dated section, bumps `src/version.h`, and refreshes the running contributor list. - Release notes computed over the range below (`9.1.2..c6dc0fc`): ``` mode: ga source_ref: 9.1 target_branch: 9.1 base: 9.1.2 @ 7f1dffe head: c6dc0fc @ c6dc0fc ``` ###⚠️ Notes to double-check The generator flagged these notes low-confidence; confirm category and wording before merging: | PR | Category | Why flagged | |----|----------|-------------| | #4571 | Build and Tooling | dev-utility-only change; flagged per build/tooling policy, may not be user-facing; non-fix category on a patch release needs explicit maintainer confirmation | | #4815 | Bug Fixes | could be Observability and Logging | | #4823 | Bug Fixes | explicit impact scope omitted: 32-bit | ### Release-impact review Code detected release-impact terms (availability, memory safety, data integrity, access control, protocol, compatibility) in these PRs; this forces review, it is not a severity classification. The requested urgency is **SECURITY**. Confirm it and decide whether any change needs a hand-authored **Security Fixes** entry:⚠️ [#4571](#4571) names **CVE-2026-6321**. A named CVE normally ships with `SECURITY` urgency and a hand-authored **Security Fixes** entry; this holds the cut at any other urgency. <details> <summary>10 PR(s) with impact signals</summary> | PR | Title | Signal | |----|-------|--------| | [#4571](#4571) | Bump fast-uri to 3.1.6 in reply-schema-linter to clear CVEs | data or persisted-state corruption risk | | [#4676](#4676) | Fix return types of three module API declarations to match definitions | security, access-control, or injection hardening | | [#3645](#3645) | fix: Reject module writes during client pause to prevent crash | server crash, assertion, or availability failure | | [#4880](#4880) | Reject relative expires that overflow when the base time is added | server crash, assertion, or availability failure | | [#4214](#4214) | fix(acl): prevent NULL pointer dereference on malformed selector in ACL file | server crash, assertion, or availability failure | | [#4504](#4504) | Fix crash and wrong return values in the hash stringRef module API | server crash, assertion, or availability failure | | [#4270](#4270) | make getMonotonicUs static in libvalkeylua | server crash, assertion, or availability failure | | [#4733](#4733) | Fix sds overflow assert on RESTORE payload with an overflowing string length | server crash, assertion, or availability failure | | [#4489](#4489) | Hold no descriptor on nodes.conf when rename() publishes it | server crash, assertion, or availability failure | | [#5030](#5030) | Fix cluster Pub/Sub length truncation | memory-safety risk | </details> ### Excluded from generated notes (listed under Security Fixes) #5030 was supplied as a `--security-fix`, so the generated bullet(s) in the normal categories were dropped to avoid double-listing. To keep the notes consistent, it appears only under **Security Fixes**, where each is reviewed as a factual security entry. ###⚠️ Release-safety guardrail overrode AI triage AI excluded these PRs (or gave no verdict) but their text names a release-impact signal, so code forced them into the notes; confirm each bullet, category, urgency, and security treatment: | PR | Title | Guardrail reason | |----|-------|------------------| | [#4571](#4571) | Bump fast-uri to 3.1.6 in reply-schema-linter to clear CVEs |⚠️ release-safety guardrail (data or persisted-state corruption risk; AI exclusion) | ### Triage summary - 20 PR(s) triaged into the notes - 9 PR(s) triaged out - 2 PR(s) hard-excluded by `no-release-notes` Per-PR verdicts (with reasons) are in the run's `triage-verdicts` artifact. To include a wrongly-dropped PR, label it `release-notes` and re-cut. ### Wording carried from other release lines A backported change is cut once per release line, and each cut words its notes independently. To keep one commit from being described differently per branch, a note whose source PR another line already published takes that published wording verbatim (joined on the trailing `(#N)`, which always names the original source PR). Only the text is reused; the category, the `by @handle` credit, and the `(#N)` are this cut's own. - Release lines consulted: `9.2`, `9.0`, `8.1`, `8.0`, `7.2`, `7.0`, `6.2`, `6.0`, `5.0`, `4.0`, `3.2`, `3.0`, `2.8`, `2.6`, `2.4`, `2.2` - 1 generated note(s) already matches the published wording: #4567 - Reused published wording for 8 note(s) <details> <summary>8 note(s) reusing published wording</summary> | PR | Wording from | Carried wording | This cut generated | |----|--------------|-----------------|--------------------| | #3459 | `9.2` (Valkey 9.2.0-rc1) | Fix stream commands that mutate consumer-group or PEL state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) not triggering `WATCH` and client-side tracking invalidation | Stream commands that modify consumer-group state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) now correctly trigger `WATCH` and client tracking invalidation | | #4733 | `7.2` (Valkey 7.2.15) | Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data | Fix a server abort when a `RESTORE` payload declares a string length that overflows the allocation size; such payloads are now rejected as bad data | | #4997 | `7.2` (Valkey 7.2.15) | Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION | Fix `ZINTER`/`ZINTERSTORE` returning input-order-dependent scores when a weighted term is 0 times infinity; such NaN terms now count as 0, matching `ZUNION` | | #4533 | `9.2` (Valkey 9.2.0-rc1) | Clear a stale primary-failure gossip flag on replicas so later failovers don't incorrectly skip the election delay | Fix a stale primary-failure gossip flag on cluster replicas that could let a later unrelated failover skip the normal election delay | | #4676 | `9.2` (Valkey 9.2.0-rc1) | Correct `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry` and `ValkeyModule_ACLAddLogEntryByUserName` declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks | Fix module API declarations of `ValkeyModule_FreeModuleUser` and the ACL log entry functions to return int, avoiding traps on platforms with strict call-signature checks such as WebAssembly | | #4214 | `7.2` (Valkey 7.2.15) | Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis | Fix a server crash when loading an ACL file containing a selector definition with an unmatched parenthesis | | #4489 | `7.2` (Valkey 7.2.15) | Fix 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 | Fix cluster config saving by locking a separate `nodes.conf.lock` file, fixing crash loops on SMB filesystems such as Azure Files and restoring protection against two nodes sharing one config | | #4823 | `7.2` (Valkey 7.2.15) | Fix `LSET` on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error | Fix `LSET` on 64-bit builds modifying the wrong element instead of returning an error for very large out-of-range indexes | </details> *Generated by valkey-ci-agent. Review before merging into the release line.* --------- Signed-off-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Signed-off-by: Sarthak Aggarwal <[email protected]> Co-authored-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Co-authored-by: Sarthak Aggarwal <[email protected]> Co-authored-by: Roshan Khatri <[email protected]>
> [!NOTE] > **Opened ready despite 2 flagged items** (`force_ready` was set): notes flagged low-confidence; AI triaged PRs without release-notes (confirm include/exclude). Review the sections below and confirm before merging. Cuts **8.1.11** onto release line `8.1`. - Promotes the release notes into a dated section, bumps `src/version.h`, and refreshes the running contributor list. - Release notes computed over the range below (`8.1.10..1b167ac`): ``` mode: ga source_ref: 8.1 target_branch: 8.1 base: 8.1.10 @ 55a5426 head: 1b167ac @ 1b167ac ``` ###⚠️ Notes to double-check The generator flagged these notes low-confidence; confirm category and wording before merging: | PR | Category | Why flagged | |----|----------|-------------| | #4676 | Bug Fixes | could be Module API Changes | | #4815 | Bug Fixes | could be Observability and Logging | | #4823 | Bug Fixes | explicit impact scope omitted: 32-bit | ### Release-impact review Code detected release-impact terms (availability, memory safety, data integrity, access control, protocol, compatibility) in these PRs; this forces review, it is not a severity classification. The requested urgency is **SECURITY**. Confirm it and decide whether any change needs a hand-authored **Security Fixes** entry: <details> <summary>8 PR(s) with impact signals</summary> | PR | Title | Signal | |----|-------|--------| | [#4676](#4676) | Fix return types of three module API declarations to match definitions | security, access-control, or injection hardening | | [#3645](#3645) | fix: Reject module writes during client pause to prevent crash | server crash, assertion, or availability failure | | [#3598](#3598) | fix: validate key count before allocating result in keyspec | undefined behavior or unsafe arithmetic | | [#4880](#4880) | Reject relative expires that overflow when the base time is added | server crash, assertion, or availability failure | | [#4214](#4214) | fix(acl): prevent NULL pointer dereference on malformed selector in ACL file | server crash, assertion, or availability failure | | [#4733](#4733) | Fix sds overflow assert on RESTORE payload with an overflowing string length | server crash, assertion, or availability failure | | [#4489](#4489) | Hold no descriptor on nodes.conf when rename() publishes it | server crash, assertion, or availability failure | | [#5030](#5030) | Fix cluster Pub/Sub length truncation | memory-safety risk | </details> ### Excluded from generated notes (listed under Security Fixes) #5030 was supplied as a `--security-fix`, so the generated bullet(s) in the normal categories were dropped to avoid double-listing. To keep the notes consistent, it appears only under **Security Fixes**, where each is reviewed as a factual security entry. ### Triage summary - 10 PR(s) triaged into the notes - 4 PR(s) triaged out - 2 PR(s) hard-excluded by `no-release-notes` Per-PR verdicts (with reasons) are in the run's `triage-verdicts` artifact. To include a wrongly-dropped PR, label it `release-notes` and re-cut. ### Wording carried from other release lines A backported change is cut once per release line, and each cut words its notes independently. To keep one commit from being described differently per branch, a note whose source PR another line already published takes that published wording verbatim (joined on the trailing `(#N)`, which always names the original source PR). Only the text is reused; the category, the `by @handle` credit, and the `(#N)` are this cut's own. - Release lines consulted: `9.2`, `9.1`, `9.0`, `8.0`, `7.2`, `7.0`, `6.2`, `6.0`, `5.0`, `4.0`, `3.2`, `3.0`, `2.8`, `2.6`, `2.4`, `2.2` - Reused published wording for 9 note(s) <details> <summary>9 note(s) reusing published wording</summary> | PR | Wording from | Carried wording | This cut generated | |----|--------------|-----------------|--------------------| | #3459 | `9.2` (Valkey 9.2.0-rc1) | Fix stream commands that mutate consumer-group or PEL state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) not triggering `WATCH` and client-side tracking invalidation | Fix stream commands (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) not triggering `WATCH` and client-side tracking invalidation when they modify consumer-group state | | #4733 | `7.2` (Valkey 7.2.15) | Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data | Fix a server abort on a corrupt or crafted `RESTORE` payload declaring a string length that overflows the allocation size; the payload is now rejected with a Bad data format error | | #4997 | `7.2` (Valkey 7.2.15) | Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION | Fix `ZINTER`/`ZINTERSTORE` scores depending on input order when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching `ZUNION` | | #4676 | `9.2` (Valkey 9.2.0-rc1) | Correct `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry` and `ValkeyModule_ACLAddLogEntryByUserName` declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks | Fix `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry`, and `ValkeyModule_ACLAddLogEntryByUserName` declarations to return int as implemented, fixing traps on platforms with strict indirect-call checks such as WebAssembly | | #4567 | `7.2` (Valkey 7.2.15) | Fix valkey-benchmark spinning on would-block writes, which could starve reply processing and the `--duration` timer | Fix `valkey-benchmark` spinning in a tight loop on would-block writes, which could starve reply processing and the `--duration` timer | | #3598 | `7.2` (Valkey 7.2.15) | Fix a huge memory allocation when a command such as COMMAND GETKEYS EVAL declares a far larger key count than the arguments provided | Fix a huge memory allocation in `COMMAND GETKEYS` when a command such as `EVAL` declares an enormous key count, which could trigger out-of-memory when overcommit is disabled | | #4214 | `7.2` (Valkey 7.2.15) | Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis | Fix a server crash when loading an ACL file containing a selector definition with an unmatched parenthesis | | #4489 | `7.2` (Valkey 7.2.15) | Fix 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 | Fix cluster config saves failing on SMB filesystems such as Azure Files and the startup lock not protecting `nodes.conf` after the first save; the lock is now held on a separate `nodes.conf.lock` file | | #4823 | `7.2` (Valkey 7.2.15) | Fix `LSET` on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error | Fix `LSET` modifying the wrong element instead of returning an out-of-range error for indexes beyond 32 bits on 64-bit builds | </details> *Generated by valkey-ci-agent. Review before merging into the release line.* --------- Signed-off-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Signed-off-by: Sarthak Aggarwal <[email protected]> Co-authored-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Co-authored-by: Sarthak Aggarwal <[email protected]> Co-authored-by: Roshan Khatri <[email protected]>
) `SET`/`GETEX` with `EX`/`PX`, `RESTORE` with a relative TTL, and `ValkeyModule_SetExpire` add the current time to a user-supplied expire without a valid overflow check. Where `checkAlreadyExpired()` does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts on `serverAssert(t >= 0)`. An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checks `value > LLONG_MAX - basetime` before adding, as `convertExpireArgumentToUnixTime()` already does, and RDB load now drops keys with a negative expire on every node, not just a primary. Signed-off-by: Madelyn Olson <[email protected]> Backport-Source-PR: 4880
> [!NOTE] > **Opened ready despite 2 flagged items** (`force_ready` was set): notes flagged low-confidence; AI triaged PRs without release-notes (confirm include/exclude). Review the sections below and confirm before merging. Cuts **8.0.12** onto release line `8.0`. - Promotes the release notes into a dated section, bumps `src/version.h`, and refreshes the running contributor list. - Release notes computed over the range below (`8.0.11..fff95b5`): ``` mode: ga source_ref: 8.0 target_branch: 8.0 base: 8.0.11 @ 4bf1df6 head: fff95b5 @ fff95b5 ``` ###⚠️ Notes to double-check The generator flagged these notes low-confidence; confirm category and wording before merging: | PR | Category | Why flagged | |----|----------|-------------| | #4676 | Bug Fixes | could be Module API Changes | | #4815 | Bug Fixes | could be Observability and Logging | | #4823 | Bug Fixes | explicit impact scope omitted: 32-bit | ### Release-impact review Code detected release-impact terms (availability, memory safety, data integrity, access control, protocol, compatibility) in these PRs; this forces review, it is not a severity classification. The requested urgency is **SECURITY**. Confirm it and decide whether any change needs a hand-authored **Security Fixes** entry: <details> <summary>8 PR(s) with impact signals</summary> | PR | Title | Signal | |----|-------|--------| | [#4676](#4676) | Fix return types of three module API declarations to match definitions | security, access-control, or injection hardening | | [#3598](#3598) | fix: validate key count before allocating result in keyspec | undefined behavior or unsafe arithmetic | | [#4880](#4880) | Reject relative expires that overflow when the base time is added | server crash, assertion, or availability failure | | [#4214](#4214) | fix(acl): prevent NULL pointer dereference on malformed selector in ACL file | server crash, assertion, or availability failure | | [#4733](#4733) | Fix sds overflow assert on RESTORE payload with an overflowing string length | server crash, assertion, or availability failure | | [#4489](#4489) | Hold no descriptor on nodes.conf when rename() publishes it | server crash, assertion, or availability failure | | [#3645](#3645) | fix: Reject module writes during client pause to prevent crash | server crash, assertion, or availability failure | | [#5030](#5030) | Fix cluster Pub/Sub length truncation | memory-safety risk | </details> ### Excluded from generated notes (listed under Security Fixes) #5030 was supplied as a `--security-fix`, so the generated bullet(s) in the normal categories were dropped to avoid double-listing. To keep the notes consistent, it appears only under **Security Fixes**, where each is reviewed as a factual security entry. ### Triage summary - 10 PR(s) triaged into the notes - 3 PR(s) triaged out - 2 PR(s) hard-excluded by `no-release-notes` Per-PR verdicts (with reasons) are in the run's `triage-verdicts` artifact. To include a wrongly-dropped PR, label it `release-notes` and re-cut. ### Wording carried from other release lines A backported change is cut once per release line, and each cut words its notes independently. To keep one commit from being described differently per branch, a note whose source PR another line already published takes that published wording verbatim (joined on the trailing `(#N)`, which always names the original source PR). Only the text is reused; the category, the `by @handle` credit, and the `(#N)` are this cut's own. - Release lines consulted: `9.2`, `9.1`, `9.0`, `8.1`, `7.2`, `7.0`, `6.2`, `6.0`, `5.0`, `4.0`, `3.2`, `3.0`, `2.8`, `2.6`, `2.4`, `2.2` - 1 generated note(s) already matches the published wording: #4567 - Reused published wording for 12 note(s) <details> <summary>12 note(s) reusing published wording</summary> | PR | Wording from | Carried wording | This cut generated | |----|--------------|-----------------|--------------------| | #3459 | `9.2` (Valkey 9.2.0-rc1) | Fix stream commands that mutate consumer-group or PEL state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) not triggering `WATCH` and client-side tracking invalidation | Fix stream commands like `XGROUP`, `XSETID`, `XACK`, `XCLAIM`, and `XREADGROUP` not triggering `WATCH` and client tracking invalidation when they modify consumer-group state | | #4733 | `9.1` (Valkey 9.1.3) | Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data | Fix server abort on a `RESTORE` payload declaring an overflowing string length; the corrupt payload is now rejected with a Bad data format error | | #3645 | `9.1` (Valkey 9.1.3) | Reject module write commands while the server is paused for writes, preventing a crash from module timer callbacks during `CLIENT PAUSE WRITE` or `CLUSTER FAILOVER` | Fix server crash when module timer callbacks or thread-safe contexts issue writes during `CLIENT PAUSE WRITE` or `CLUSTER FAILOVER`; such writes are now rejected | | #4997 | `9.1` (Valkey 9.1.3) | Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION | Fix `ZINTER`/`ZINTERSTORE` returning input-order-dependent scores when a weighted score is 0*inf; such terms now count as 0, matching `ZUNION` | | #4676 | `9.2` (Valkey 9.2.0-rc1) | Correct `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry` and `ValkeyModule_ACLAddLogEntryByUserName` declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks | Fix module API declarations of `ValkeyModule_FreeModuleUser` and the ACL log entry functions to return int as implemented, avoiding undefined behavior on platforms with strict call signature checks | | #3598 | `8.1` (Valkey 8.1.11) | Fix a huge memory allocation when a command such as COMMAND GETKEYS EVAL declares a far larger key count than the arguments provided | Fix `COMMAND GETKEYS` allocating huge amounts of memory for a command declaring a huge key count before validating it against the actual arguments | | #4880 | `9.1` (Valkey 9.1.3) | Reject relative expire times in `SET`/`GETEX`, `RESTORE`, and `ValkeyModule_SetExpire` that overflow when added to the current time, preventing server aborts from negative expires | Reject relative expire times in `SET`/`GETEX`, `RESTORE`, and the module `SetExpire` API that overflow when added to the current time, preventing assertion crashes | | #4214 | `9.1` (Valkey 9.1.3) | Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis | Fix server crash when loading an ACL file containing a selector definition with an unmatched parenthesis | | #4637 | `9.1` (Valkey 9.1.3) | Sorted set range commands with a negative `LIMIT` offset now return an empty result instead of a spurious element on btree-encoded keys | Fix sorted set range commands with a negative `LIMIT` offset returning a wrong element on btree-encoded keys; a negative offset now returns an empty result in both encodings | | #4815 | `9.1` (Valkey 9.1.3) | Redact error text in server logs when `hide-user-data-from-log` is enabled, so command arguments no longer leak into logs | Honor `hide-user-data-from-log` when logging error replies sent to replicas, primaries, or during AOF loading, redacting error text that may echo user data | | #4489 | `9.1` (Valkey 9.1.3) | Fix 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 | Fix cluster config save failures on SMB filesystems and ineffective nodes.conf locking by locking a separate nodes.conf.lock file and closing the temp file before publishing it | | #4823 | `9.1` (Valkey 9.1.3) | Fix `LSET` on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error | Fix `LSET` on 64-bit builds modifying the wrong element instead of returning an error for indexes that overflow 32 bits | </details> *Generated by valkey-ci-agent. Review before merging into the release line.* Signed-off-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Co-authored-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com>
> [!NOTE] > **Opened ready despite 2 flagged items** (`force_ready` was set): notes flagged low-confidence; AI triaged PRs without release-notes (confirm include/exclude). Review the sections below and confirm before merging. Cuts **9.0.7** onto release line `9.0`. - Promotes the release notes into a dated section, bumps `src/version.h`, and refreshes the running contributor list. - Release notes computed over the range below (`9.0.6..31a98d4`): ``` mode: ga source_ref: 9.0 target_branch: 9.0 base: 9.0.6 @ a100149 head: 31a98d4 @ 31a98d4 ``` ###⚠️ Notes to double-check The generator flagged these notes low-confidence; confirm category and wording before merging: | PR | Category | Why flagged | |----|----------|-------------| | #4815 | Bug Fixes | could be Observability and Logging | | #4823 | Bug Fixes | explicit impact scope omitted: 32-bit | ### Release-impact review Code detected release-impact terms (availability, memory safety, data integrity, access control, protocol, compatibility) in these PRs; this forces review, it is not a severity classification. The requested urgency is **SECURITY**. Confirm it and decide whether any change needs a hand-authored **Security Fixes** entry: <details> <summary>8 PR(s) with impact signals</summary> | PR | Title | Signal | |----|-------|--------| | [#4676](#4676) | Fix return types of three module API declarations to match definitions | security, access-control, or injection hardening | | [#3645](#3645) | fix: Reject module writes during client pause to prevent crash | server crash, assertion, or availability failure | | [#3598](#3598) | fix: validate key count before allocating result in keyspec | undefined behavior or unsafe arithmetic | | [#4880](#4880) | Reject relative expires that overflow when the base time is added | server crash, assertion, or availability failure | | [#4214](#4214) | fix(acl): prevent NULL pointer dereference on malformed selector in ACL file | server crash, assertion, or availability failure | | [#4733](#4733) | Fix sds overflow assert on RESTORE payload with an overflowing string length | server crash, assertion, or availability failure | | [#4489](#4489) | Hold no descriptor on nodes.conf when rename() publishes it | server crash, assertion, or availability failure | | [#5030](#5030) | Fix cluster Pub/Sub length truncation | memory-safety risk | </details> ### Excluded from generated notes (listed under Security Fixes) #5030 was supplied as a `--security-fix`, so the generated bullet(s) in the normal categories were dropped to avoid double-listing. To keep the notes consistent, it appears only under **Security Fixes**, where each is reviewed as a factual security entry. ### Triage summary - 16 PR(s) triaged into the notes - 6 PR(s) triaged out - 2 PR(s) hard-excluded by `no-release-notes` Per-PR verdicts (with reasons) are in the run's `triage-verdicts` artifact. To include a wrongly-dropped PR, label it `release-notes` and re-cut. ### Wording carried from other release lines A backported change is cut once per release line, and each cut words its notes independently. To keep one commit from being described differently per branch, a note whose source PR another line already published takes that published wording verbatim (joined on the trailing `(#N)`, which always names the original source PR). Only the text is reused; the category, the `by @handle` credit, and the `(#N)` are this cut's own. - Release lines consulted: `9.2`, `9.1`, `8.1`, `8.0`, `7.2`, `7.0`, `6.2`, `6.0`, `5.0`, `4.0`, `3.2`, `3.0`, `2.8`, `2.6`, `2.4`, `2.2` - Reused published wording for 19 note(s) <details> <summary>19 note(s) reusing published wording</summary> | PR | Wording from | Carried wording | This cut generated | |----|--------------|-----------------|--------------------| | #3459 | `9.2` (Valkey 9.2.0-rc1) | Fix stream commands that mutate consumer-group or PEL state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) not triggering `WATCH` and client-side tracking invalidation | Fix stream commands (`XGROUP`, `XSETID`, `XACK`, `XCLAIM`, `XAUTOCLAIM`, `XREADGROUP`) not triggering `WATCH` and client-side tracking invalidation when they modify consumer-group state | | #3645 | `9.1` (Valkey 9.1.3) | Reject module write commands while the server is paused for writes, preventing a crash from module timer callbacks during `CLIENT PAUSE WRITE` or `CLUSTER FAILOVER` | Fix a crash when module timer callbacks or thread-safe contexts attempt writes while the server is paused for writes; such module writes are now rejected with an error | | #4733 | `9.1` (Valkey 9.1.3) | Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data | Fix a server abort when a corrupt `RESTORE` payload declares a string length that overflows the allocation size; the payload is now rejected with a Bad data format error | | #4997 | `9.1` (Valkey 9.1.3) | Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION | Fix `ZINTER`/`ZINTERSTORE` returning input-order-dependent scores when a weighted score is 0*inf (NaN); it now counts as 0, matching `ZUNION` | | #4676 | `9.2` (Valkey 9.2.0-rc1) | Correct `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry` and `ValkeyModule_ACLAddLogEntryByUserName` declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks | Fix the declared return types of `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry`, and `ValkeyModule_ACLAddLogEntryByUserName` to match their implementations, avoiding traps on platforms with strict call-signature checks | | #4739 | `9.1` (Valkey 9.1.3) | valkey-check-aof now recognizes RDB base files with the `VALKEY` signature instead of misreporting a valid multipart AOF as invalid | Fix `valkey-check-aof` not recognizing RDB base files with the `VALKEY` signature, which made it report healthy multipart AOFs as invalid | | #4567 | `8.0` (Valkey 8.0.12) | Fix valkey-benchmark spinning on would-block writes, which could starve reply processing and the `--duration` timer | Fix `valkey-benchmark` spinning on would-block writes, which could starve reply processing and the `--duration` timer under high connection counts | | #3598 | `8.1` (Valkey 8.1.11) | Fix a huge memory allocation when a command such as COMMAND GETKEYS EVAL declares a far larger key count than the arguments provided | Fix a huge memory allocation in `COMMAND GETKEYS` when a command such as `EVAL` declares an excessive key count; the count is now validated before allocating | | #4880 | `9.1` (Valkey 9.1.3) | Reject relative expire times in `SET`/`GETEX`, `RESTORE`, and `ValkeyModule_SetExpire` that overflow when added to the current time, preventing server aborts from negative expires | Fix relative expire times in `SET`/`GETEX`, `RESTORE`, and `ValkeyModule_SetExpire` overflowing when the current time is added, which could store a negative expire and crash the server during active expiry or AOF restart | | #4772 | `9.1` (Valkey 9.1.3) | `HDEL`, `HGETDEL`, `HPERSIST`, and `HEXPIRE` no longer propagate fields they treat as expired, preventing replica and AOF-reload divergence | Fix `HDEL`, `HGETDEL`, `HPERSIST`, and `HEXPIRE` propagating already-expired hash fields, which could make replicas and AOF-reloaded data diverge from the primary | | #4214 | `9.1` (Valkey 9.1.3) | Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis | Fix a crash when loading an ACL file containing a selector definition with unmatched parentheses | | #4939 | `9.1` (Valkey 9.1.3) | `COPY` of a hash now includes expired-but-unreaped fields so their deletion is propagated and replicas stay in sync | Fix `COPY` of a hash dropping expired-but-unreaped fields, which left stale fields on replicas that were never deleted | | #4637 | `9.1` (Valkey 9.1.3) | Sorted set range commands with a negative `LIMIT` offset now return an empty result instead of a spurious element on btree-encoded keys | Fix `ZRANGEBYSCORE`/`ZRANGEBYLEX` and related range commands returning a wrong element on btree-encoded sorted sets when the LIMIT offset is negative; they now return an empty result | | #4920 | `9.1` (Valkey 9.1.3) | Fix atomic slot migration not replicating evictions on the import target, which let replicas grow far past `maxmemory` | Fix evictions on an atomic slot migration target not being replicated, which could make replicas grow far past maxmemory and keep keys the primary evicted | | #4815 | `9.1` (Valkey 9.1.3) | Redact error text in server logs when `hide-user-data-from-log` is enabled, so command arguments no longer leak into logs | Redact error reply text in server logs when `hide-user-data-from-log` is enabled, so keys and values no longer leak into the log from replication or AOF error paths | | #4945 | `9.1` (Valkey 9.1.3) | Fix `HSETEX` and `HGETEX` failing to parse their arguments when the key is named `fields` | Fix `HSETEX` and `HGETEX` failing with a parse error when the key is named "fields" | | #4489 | `9.1` (Valkey 9.1.3) | Fix 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 | Fix cluster config saving: the startup lock now uses a separate nodes.conf.lock file and no descriptor is held across the rename, fixing ineffective locking and save failures (crash loops) on SMB/Azure Files | | #4952 | `9.1` (Valkey 9.1.3) | Fix atomic slot migration with `cluster-databases` > 1 applying writes made during the snapshot to the wrong database on the target | Fix writes made during an atomic slot migration snapshot being applied to the wrong database on the target when cluster-databases is greater than 1 | | #4823 | `9.1` (Valkey 9.1.3) | Fix `LSET` on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error | Fix `LSET` on 64-bit builds modifying an element instead of returning an out-of-range error when the index exceeds 32 bits | </details> *Generated by valkey-ci-agent. Review before merging into the release line.* --------- Signed-off-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Signed-off-by: Sarthak Aggarwal <[email protected]> Co-authored-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com> Co-authored-by: Sarthak Aggarwal <[email protected]> Co-authored-by: Roshan Khatri <[email protected]>
… ) (#3729) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/valkey-io/valkey](https://github.com/valkey-io/valkey) | patch | `9.1.2` → `9.1.3` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/3566) for more information. --- ### Release Notes <details> <summary>valkey-io/valkey (ghcr.io/valkey-io/valkey)</summary> ### [`v9.1.3`](https://github.com/valkey-io/valkey/releases/tag/9.1.3) [Compare Source](valkey-io/valkey@9.1.2...9.1.3) ## Valkey 9.1.3 - Released Mon 26 October 2026 Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. ##### Security Fixes - 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](https://github.com/roshkhatri) ([#​5030](valkey-io/valkey#5030)) ##### Bug Fixes - Fix 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](https://github.com/Tarte12) ([#​3459](valkey-io/valkey#3459)) - Reject 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](https://github.com/smkher) ([#​3645](valkey-io/valkey#3645)) - Fix 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](https://github.com/quanyeyang) ([#​4707](valkey-io/valkey#4707)) - Fix a crash in `ValkeyModule_HashHasStringRef` on a missing or expired field and correct wrong return values in the hash stringRef module APIs by [@​ShubhamTaple](https://github.com/ShubhamTaple) ([#​4504](valkey-io/valkey#4504)) - Fix 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](https://github.com/enjoy-binbin) ([#​4733](valkey-io/valkey#4733)) - Fix 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](https://github.com/leomurillo) ([#​4997](valkey-io/valkey#4997)) - Clear a stale primary-failure gossip flag on replicas so later failovers don't incorrectly skip the election delay by [@​charsyam](https://github.com/charsyam) ([#​4533](valkey-io/valkey#4533)) - Correct `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](https://github.com/rainsupreme) ([#​4676](valkey-io/valkey#4676)) - valkey-check-aof now recognizes RDB base files with the `VALKEY` signature instead of misreporting a valid multipart AOF as invalid by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​4739](valkey-io/valkey#4739)) - Fix 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](https://github.com/patrickswedish) ([#​4424](valkey-io/valkey#4424)) - Reject 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](https://github.com/madolson) ([#​4880](valkey-io/valkey#4880)) - `HDEL`, `HGETDEL`, `HPERSIST`, and `HEXPIRE` no longer propagate fields they treat as expired, preventing replica and AOF-reload divergence by [@​xdk-amz](https://github.com/xdk-amz) ([#​4772](valkey-io/valkey#4772)) - Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis by [@​magic-peach](https://github.com/magic-peach) ([#​4214](valkey-io/valkey#4214)) - Fix a segfault on Alpine/musl when Lua is built as a module, caused by a symbol clash on an internal clock function by [@​mohammedgqudah](https://github.com/mohammedgqudah) ([#​4270](valkey-io/valkey#4270)) - `COPY` of a hash now includes expired-but-unreaped fields so their deletion is propagated and replicas stay in sync by [@​pirate329](https://github.com/pirate329) ([#​4939](valkey-io/valkey#4939)) - Restore acceptance of hexadecimal float sorted set scores (such as `0x10`), keeping replication and AOF replay compatible with Valkey 9.0 by [@​quanyeyang](https://github.com/quanyeyang) ([#​4875](valkey-io/valkey#4875)) - Sorted set range commands with a negative `LIMIT` offset now return an empty result instead of a spurious element on btree-encoded keys by [@​xiaocj](https://github.com/xiaocj) ([#​4637](valkey-io/valkey#4637)) - Fix listpack encoding incompatibility that caused RDB load and replication failures for entries of certain lengths between 9.0 and 9.1.x by [@​jjuleslasarte](https://github.com/jjuleslasarte) ([#​4819](valkey-io/valkey#4819)) - Fix atomic slot migration not replicating evictions on the import target, which let replicas grow far past `maxmemory` by [@​shanezx-sc](https://github.com/shanezx-sc) ([#​4920](valkey-io/valkey#4920)) - Redact error text in server logs when `hide-user-data-from-log` is enabled, so command arguments no longer leak into logs by [@​zackcam](https://github.com/zackcam) ([#​4815](valkey-io/valkey#4815)) - Fix `HSETEX` and `HGETEX` failing to parse their arguments when the key is named `fields` by [@​sebxt](https://github.com/sebxt) ([#​4945](valkey-io/valkey#4945)) - Fix 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](https://github.com/KewangZhili) ([#​4489](valkey-io/valkey#4489)) - Fix `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](https://github.com/charsyam) ([#​4823](valkey-io/valkey#4823)) - Fix atomic slot migration with `cluster-databases` > 1 applying writes made during the snapshot to the wrong database on the target by [@​pirate329](https://github.com/pirate329) ([#​4952](valkey-io/valkey#4952)) **Full Changelog**: <valkey-io/valkey@9.1.2...9.1.3> </details> --- ### Configuration 📅 **Schedule**: (in timezone America/Chicago) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNTEuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.rsr.net/roger/k8s-gitops/pulls/3729
…0 ) (#3831) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/valkey-io/valkey](https://github.com/valkey-io/valkey) | minor | `9.1.3` → `9.2.0` | --- ### Release Notes <details> <summary>valkey-io/valkey (ghcr.io/valkey-io/valkey)</summary> ### [`v9.2.0`](https://github.com/valkey-io/valkey/releases/tag/9.2.0) [Compare Source](https://github.com/valkey-io/valkey/compare/9.1.4...9.2.0) ## Valkey 9.2.0 GA - Released Wed 18 November 2026 Upgrade urgency LOW: This is the first stable release of Valkey 9.2. ##### Behavior Changes - `ZRANGEBYSCORE`, `ZREVRANGEBYSCORE`, `ZCOUNT`, and `ZRANGESTORE` now reject a bare `(` or an empty string as a score bound instead of silently treating it as 0 by [@​AlisinaDevelo](https://github.com/AlisinaDevelo) ([#​4054](https://github.com/valkey-io/valkey/issues/4054)) - Path Hash deletion commands now remove the key when the last path is deleted, following the Hash key lifecycle and emitting a generic del event by [@​yangbodong22011](https://github.com/yangbodong22011) ([#​5068](https://github.com/valkey-io/valkey/issues/5068)) - Active expiration of keys and hash fields now increments the dirty counter, so save points (and thus BGSAVE) may trigger more often by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3118](https://github.com/valkey-io/valkey/issues/3118)) ##### New Features and Enhanced Behavior - Add new `DELEX` command to conditionally delete a string key when its value matches (`IFEQ`) or differs from (`IFNE`) a given value by [@​lightsigma96](https://github.com/lightsigma96) ([#​4607](https://github.com/valkey-io/valkey/issues/4607)) - Add Zstd as a streaming compression codec for RDB persistence and replication, offering better compression ratios than LZ4 by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​3798](https://github.com/valkey-io/valkey/issues/3798)) - Support streaming-compressed RDB preambles in AOF bases, so compressed full-sync RDB files can be reused directly as AOF bases by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​4754](https://github.com/valkey-io/valkey/issues/4754)) - `ACL 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](https://github.com/MarkAtwood) ([#​4339](https://github.com/valkey-io/valkey/issues/4339)) - Support forkless full synchronization to replicas, serving disk and diskless full syncs from a background-thread snapshot without forking by [@​nitaicaro](https://github.com/nitaicaro) ([#​4797](https://github.com/valkey-io/valkey/issues/4797)) - Add ACL DIGEST command that returns a fingerprint of the ACL rules currently in effect, useful to verify what ACL LOAD applied by [@​melancholictheory](https://github.com/melancholictheory) ([#​4446](https://github.com/valkey-io/valkey/issues/4446)) - Add 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](https://github.com/JimB123) ([#​4460](https://github.com/valkey-io/valkey/issues/4460)) - Add 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](https://github.com/nickiaq) ([#​4629](https://github.com/valkey-io/valkey/issues/4629)) - Support 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](https://github.com/pkhartsk) ([#​3717](https://github.com/valkey-io/valkey/issues/3717)) - Add ACL roles: named, reusable sets of ACL selectors managed with `ACL SETROLE`/`DELROLE`/`GETROLE`/`ROLES` and assigned to users with `role:<name>`, in commands, the ACL file and valkey.conf by [@​yang-z-o](https://github.com/yang-z-o) ([#​3967](https://github.com/valkey-io/valkey/issues/3967)) - Add 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](https://github.com/enjoy-binbin) ([#​866](https://github.com/valkey-io/valkey/issues/866)) - Add 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](https://github.com/yangbodong22011) ([#​4506](https://github.com/valkey-io/valkey/issues/4506)) - Support whole-stream LZ4 compression of RDB files via the new `rdbcompression lz4` option; the default per-string LZF behavior is unchanged by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​3531](https://github.com/valkey-io/valkey/issues/3531)) - Add server-side hot key detection with new `HOTKEYS GET`/`RESET` commands, enabled by setting `hotkeys-top-k` by [@​alon-arenberg](https://github.com/alon-arenberg) ([#​3708](https://github.com/valkey-io/valkey/issues/3708)) - Add optional replication throttling (`repl-throttling-enabled`) that slows client writes when a replica falls behind, avoiding disconnects and full syncs by [@​harrylin98](https://github.com/harrylin98) ([#​4356](https://github.com/valkey-io/valkey/issues/4356)) - Prioritize system-critical events (cluster heartbeats, replication, slot migration) over heavy client traffic, tunable via the new `priority-preemptive-poll-interval-us` config by [@​satheeshaGowda](https://github.com/satheeshaGowda) ([#​4076](https://github.com/valkey-io/valkey/issues/4076)) - Reserve 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 [@​satheeshaGowda](https://github.com/satheeshaGowda) ([#​4005](https://github.com/valkey-io/valkey/issues/4005)) - Add `INCREX` command to atomically increment a key by an integer or float while setting its expiration, with `NX`/`XX` conditions by [@​GavinDmello](https://github.com/GavinDmello) ([#​3253](https://github.com/valkey-io/valkey/issues/3253)) ##### Performance and Efficiency Improvements - Fix long stalls in `SRANDMEMBER`, `ZRANDMEMBER`, `HRANDFIELD` and `SPOP` on a small key whose hashtable is still shrinking from a much larger size by [@​madolson](https://github.com/madolson) ([#​5170](https://github.com/valkey-io/valkey/issues/5170)) - Stop treating `LINDEX`, `LRANGE` and `LPOS` as format-changing commands during forkless background iteration, so list reads no longer get write-style handling by [@​JimB123](https://github.com/JimB123) ([#​5283](https://github.com/valkey-io/valkey/issues/5283)) - Keep the forkless save queue growing under write load by not counting keys expedited by writes as leftover work by [@​taham0](https://github.com/taham0) ([#​5298](https://github.com/valkey-io/valkey/issues/5298)) - Make 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](https://github.com/madolson) ([#​5183](https://github.com/valkey-io/valkey/issues/5183)) - Reclaim memory from sorted sets that shrink or have frequent score updates by compacting sparse B+tree leaves on delete by [@​rainsupreme](https://github.com/rainsupreme) ([#​4526](https://github.com/valkey-io/valkey/issues/4526)) - Speed up sorted set score updates in listpack encoding by replacing the score in place when the member keeps its position by [@​charsyam](https://github.com/charsyam) ([#​3491](https://github.com/valkey-io/valkey/issues/3491)) - Fix quadratic slowdown in `HRANDFIELD` and `SRANDMEMBER` with counts on collections whose elements differ only in letter case by [@​madolson](https://github.com/madolson) ([#​5167](https://github.com/valkey-io/valkey/issues/5167)) - Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering `tracking-table-max-keys` by [@​tanmayBeginsJourney](https://github.com/tanmayBeginsJourney) ([#​4775](https://github.com/valkey-io/valkey/issues/4775)) - Speed up the `INFO` command by around 5% by pre-allocating the output buffer by [@​charsyam](https://github.com/charsyam) ([#​3413](https://github.com/valkey-io/valkey/issues/3413)) - Reclaim 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](https://github.com/rayjinghaolei) ([#​4190](https://github.com/valkey-io/valkey/issues/4190)) - Speed up `ZPOPMIN` and `ZPOPMAX` on B+tree encoded sorted sets by detaching edge items without a key search or copy by [@​charsyam](https://github.com/charsyam) ([#​4852](https://github.com/valkey-io/valkey/issues/4852)) - Counting 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](https://github.com/frostzt) ([#​4829](https://github.com/valkey-io/valkey/issues/4829)) - Speed up AOF command propagation by serializing commands directly into the AOF buffer, removing an allocation and copy per command by [@​charsyam](https://github.com/charsyam) ([#​3496](https://github.com/valkey-io/valkey/issues/3496)) - Cache the earliest event-loop timer to avoid an O(N) scan per iteration, reducing overhead with many timers such as RDMA connections by [@​royenheart](https://github.com/royenheart) ([#​4354](https://github.com/valkey-io/valkey/issues/4354)) - Speed up HGETALL, HKEYS and HVALS with exact-length reply headers, fused bulk replies, and entry prefetching by [@​jjuleslasarte](https://github.com/jjuleslasarte) ([#​4417](https://github.com/valkey-io/valkey/issues/4417)) - Eliminate false sharing in per-thread memory usage counters, improving throughput with I/O threads on SMT x86 systems by [@​omerrubi-amzn](https://github.com/omerrubi-amzn) ([#​4107](https://github.com/valkey-io/valkey/issues/4107)) - Read-only list iteration (e.g. LRANGE, LPOS) no longer decompresses and recompresses quicklist nodes in place, cutting CPU cost on compressed lists by [@​murphyjacob4](https://github.com/murphyjacob4) ([#​4782](https://github.com/valkey-io/valkey/issues/4782)) - Speed up ZSCAN on btree-encoded sorted sets by avoiding temporary member and score copies and prefetching items by [@​charsyam](https://github.com/charsyam) ([#​4856](https://github.com/valkey-io/valkey/issues/4856)) - Reduce cache-line false sharing on IO thread activity and job counters for better multi-threaded IO performance by [@​omerrubi-amzn](https://github.com/omerrubi-amzn) ([#​4976](https://github.com/valkey-io/valkey/issues/4976)) - PHDELPREFIX now bounds its temporary path copies to 64KiB per batch, avoiding large untracked memory spikes on long shared prefixes by [@​madolson](https://github.com/madolson) ([#​5179](https://github.com/valkey-io/valkey/issues/5179)) - Speed up radix tree lookups and inserts by using SIMD-optimized memchr() for child-edge search by [@​charsyam](https://github.com/charsyam) ([#​3472](https://github.com/valkey-io/valkey/issues/3472)) - Improve replica processing speed by parsing multiple commands from the replication stream at once by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3597](https://github.com/valkey-io/valkey/issues/3597)) - Reduce memory usage by sharing pubsub pattern and WATCH key objects across clients subscribing to or watching the same name by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4072](https://github.com/valkey-io/valkey/issues/4072)) - Large sorted sets are now backed by a B+ tree instead of a skiplist; OBJECT ENCODING reports `btree` instead of `skiplist` by [@​ranshid](https://github.com/ranshid) ([#​4359](https://github.com/valkey-io/valkey/issues/4359)) - Save the cluster config file from a background thread when `cluster-config-save-behavior` is best-effort, avoiding main-thread latency spikes from slow disk I/O by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​2555](https://github.com/valkey-io/valkey/issues/2555)) - Speed up `HMGET`, `SMISMEMBER` and `ZMSCORE` on large hashtable-encoded keys with batched lookups that overlap memory accesses by [@​chzhoo](https://github.com/chzhoo) ([#​4017](https://github.com/valkey-io/valkey/issues/4017)) - Extend memory prefetching to hash, set and sorted set member lookups when io-threads are enabled, improving performance for 30 field/member commands on large keys by [@​roshkhatri](https://github.com/roshkhatri) ([#​3940](https://github.com/valkey-io/valkey/issues/3940)) - `MEMORY PURGE` now also releases free pages from the glibc main arena back to the OS, reclaiming memory held by libc-internal allocations by [@​webbsssss](https://github.com/webbsssss) ([#​3640](https://github.com/valkey-io/valkey/issues/3640)) - Speed up command propagation to replicas by batching each command's RESP frame into a single replication buffer write by [@​hpatro](https://github.com/hpatro) ([#​4044](https://github.com/valkey-io/valkey/issues/4044)) - Reduce lseek system calls during disk-based replication by seeking only when a write blocks or is partial by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4053](https://github.com/valkey-io/valkey/issues/4053)) - Reduce event-loop overhead by refreshing cached daylight-saving info once per second instead of on every wakeup by [@​hpatro](https://github.com/hpatro) ([#​4086](https://github.com/valkey-io/valkey/issues/4086)) - Speed up keyspace event notifications by skipping work when there are no subscribers and avoiding unnecessary allocations by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4285](https://github.com/valkey-io/valkey/issues/4285)) - Speed up exact `XTRIM MAXLEN = 0` by about 2.5x by clearing the whole stream in one step instead of removing entries individually by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​4161](https://github.com/valkey-io/valkey/issues/4161)) - Cluster bus reads, writes, and inbound TLS accepts can now run on the shared I/O thread pool, with new `CLUSTER INFO` offload statistics by [@​hpatro](https://github.com/hpatro) ([#​3438](https://github.com/valkey-io/valkey/issues/3438)) - Small hashes with field expiration now use the memory-efficient listpack encoding instead of always converting to a hashtable by [@​frostzt](https://github.com/frostzt) ([#​3212](https://github.com/valkey-io/valkey/issues/3212)) - Reduce per-command overhead by skipping post-command bookkeeping when no propagation, module, or invalidation work is pending by [@​ahmetalicc](https://github.com/ahmetalicc) ([#​4257](https://github.com/valkey-io/valkey/issues/4257)) ##### Bug Fixes - Fix `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](https://github.com/madolson) ([#​5087](https://github.com/valkey-io/valkey/issues/5087)) - Fix `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](https://github.com/madolson) ([#​5108](https://github.com/valkey-io/valkey/issues/5108)) - Fix a server crash in `SORT` and `SORT_RO` with `BY` or `GET` patterns when an element is 2 GiB or larger by [@​madolson](https://github.com/madolson) ([#​5146](https://github.com/valkey-io/valkey/issues/5146)) - Fix `ValkeyModule_Calloc` and `ValkeyModule_TryCalloc` returning an undersized buffer when `nmemb * size` overflows by [@​madolson](https://github.com/madolson) ([#​5155](https://github.com/valkey-io/valkey/issues/5155)) - Fix `EXEC` succeeding after a key that was already expired at `WATCH` time is overwritten, which can happen on replicas by [@​madolson](https://github.com/madolson) ([#​5169](https://github.com/valkey-io/valkey/issues/5169)) - Fix a crash on the first `FUNCTION LOAD` after startup when the shebang engine name contains a NUL byte by [@​madolson](https://github.com/madolson) ([#​5115](https://github.com/valkey-io/valkey/issues/5115)) - Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by [@​madolson](https://github.com/madolson) ([#​5184](https://github.com/valkey-io/valkey/issues/5184)) - Fix 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](https://github.com/madolson) ([#​5164](https://github.com/valkey-io/valkey/issues/5164)) - Fix 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](https://github.com/madolson) ([#​5124](https://github.com/valkey-io/valkey/issues/5124)) - Fix a server abort in `PFADD` and `PFMERGE` on short sparse HyperLogLogs when `hll-sparse-max-bytes` is set to 31 or less by [@​madolson](https://github.com/madolson) ([#​5138](https://github.com/valkey-io/valkey/issues/5138)) - Fix forkless saves writing corrupted set members to the RDB when `ZUNION`, `ZINTER`, `ZINTERCARD` or `ZDIFF` reads the same set concurrently by [@​madolson](https://github.com/madolson) ([#​5110](https://github.com/valkey-io/valkey/issues/5110)) - Fix a crash when the Lua debugger is started on an empty or newline-only script by [@​madolson](https://github.com/madolson) ([#​5117](https://github.com/valkey-io/valkey/issues/5117)) - Fix 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](https://github.com/madolson) ([#​5134](https://github.com/valkey-io/valkey/issues/5134)) - Fix `ACL LOAD` not disconnecting default user clients subscribed to channels the reloaded rules no longer allow by [@​madolson](https://github.com/madolson) ([#​5085](https://github.com/valkey-io/valkey/issues/5085)) - Fix a Sentinel crash when a monitored replica's `INFO` reply contains no `master_host` by [@​smkher](https://github.com/smkher) ([#​4929](https://github.com/valkey-io/valkey/issues/4929)) - Fix throttled write commands being executed twice when using RDMA with IO threads by [@​madolson](https://github.com/madolson) ([#​5160](https://github.com/valkey-io/valkey/issues/5160)) - Fail `CONFIG REWRITE` when the old config file reads short instead of writing uninitialized memory into the new config file by [@​madolson](https://github.com/madolson) ([#​5158](https://github.com/valkey-io/valkey/issues/5158)) - Fix Lua `server.error_reply()` returning stale heap memory as the error message when given a string of 2 GiB or more by [@​madolson](https://github.com/madolson) ([#​5122](https://github.com/valkey-io/valkey/issues/5122)) - Fix a use-after-free in streams when `XADD` creates a new node, which could leave a dangling pointer hit by later reads such as `XRANGE` by [@​Baraa-Hasheesh](https://github.com/Baraa-Hasheesh) ([#​4711](https://github.com/valkey-io/valkey/issues/4711)) - Fix `XINFO GROUPS` and `XINFO STREAM ... FULL` reporting too-high consumer group lag after `XTRIM` or a trimming `XADD` removes unread entries by [@​Sasidharan3094](https://github.com/Sasidharan3094) ([#​4983](https://github.com/valkey-io/valkey/issues/4983)) - Fix forkless background iteration being left inside an open `MULTI` after a script or `MULTI`/`EXEC` when there are no replicas and AOF is off by [@​harrylin98](https://github.com/harrylin98) ([#​5316](https://github.com/valkey-io/valkey/issues/5316)) - Fix use of uninitialized variables in `valkey-cli` cluster key migration when `SELECT` fails on the source node by [@​PoisonGodv](https://github.com/PoisonGodv) ([#​5311](https://github.com/valkey-io/valkey/issues/5311)) - Fix an assertion failure when `FLUSHALL` or `SHUTDOWN` cancels a failed forkless save that still has a `FLUSHDB` or `SWAPDB` queued by [@​dgershko](https://github.com/dgershko) ([#​5326](https://github.com/valkey-io/valkey/issues/5326)) - Fix AOF load failure after a crash leaves a torn annotation at the end of the file; it is now treated as a short read and can be truncated by `aof-load-truncated` or `valkey-check-aof --fix` by [@​sumitk163](https://github.com/sumitk163) ([#​5349](https://github.com/valkey-io/valkey/issues/5349)) - Fix Lua `server.log()` blocking the server for seconds when called with thousands of arguments, with no `-BUSY` reply or `SCRIPT KILL` by [@​madolson](https://github.com/madolson) ([#​5104](https://github.com/valkey-io/valkey/issues/5104)) - Bound the number of memory regions the crash report's fast memory test records on Linux to avoid overflowing its region list by [@​JimB123](https://github.com/JimB123) ([#​5379](https://github.com/valkey-io/valkey/issues/5379)) - Fix a replica assertion when a timed-out script ends while the replication throttler holds the primary client, possible right after a failover with `repl-throttling-enabled yes` by [@​asagege](https://github.com/asagege) ([#​5389](https://github.com/valkey-io/valkey/issues/5389)) - Fix a primary assertion when `FLUSHDB` runs right at the end of a forkless full sync by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5365](https://github.com/valkey-io/valkey/issues/5365)) - Fix a primary assertion when a module thread holding the GIL performs a replicated write during a forkless save or full sync; affects modules that set `VALKEYMODULE_OPTIONS_HANDLE_FORKLESS` by [@​Baraa-Hasheesh](https://github.com/Baraa-Hasheesh) ([#​5432](https://github.com/valkey-io/valkey/issues/5432)) - Fix `CONFIG SET priority-subnets` demoting replica and slot migration connections from high priority, and fix drift in the active priority client counter by [@​satheeshaGowda](https://github.com/satheeshaGowda) ([#​4681](https://github.com/valkey-io/valkey/issues/4681)) - Fix a source primary assertion on the next `CLUSTER MIGRATESLOTS` and a pipe descriptor leak after a slot migration snapshot fails to fork, such as during a forkless BGSAVE by [@​Baraa-Hasheesh](https://github.com/Baraa-Hasheesh) ([#​5359](https://github.com/valkey-io/valkey/issues/5359)) - Fix excessive copy-on-write memory during fork-based saves and a data race in forkless saves under an LFU `maxmemory-policy` by [@​madolson](https://github.com/madolson) ([#​5445](https://github.com/valkey-io/valkey/issues/5445)) - Fix a use-after-free crash when a blocked client's re-executed command evicts the client still executing a command under `maxmemory-clients` by [@​nadav-levanoni](https://github.com/nadav-levanoni) ([#​5435](https://github.com/valkey-io/valkey/issues/5435)) - Fix access to a freed database when `FLUSHDB` and `SWAPDB` in the same transaction terminate a background iteration by [@​JimB123](https://github.com/JimB123) ([#​5462](https://github.com/valkey-io/valkey/issues/5462)) - Reject 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](https://github.com/smkher) ([#​3645](https://github.com/valkey-io/valkey/issues/3645)) - Fix 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](https://github.com/quanyeyang) ([#​4707](https://github.com/valkey-io/valkey/issues/4707)) - Fix a crash in `ValkeyModule_HashHasStringRef` on a missing or expired field and correct wrong return values in the hash stringRef module APIs by [@​ShubhamTaple](https://github.com/ShubhamTaple) ([#​4504](https://github.com/valkey-io/valkey/issues/4504)) - Fix 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](https://github.com/enjoy-binbin) ([#​4733](https://github.com/valkey-io/valkey/issues/4733)) - Fix 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](https://github.com/leomurillo) ([#​4997](https://github.com/valkey-io/valkey/issues/4997)) - Fix crashes, lookup hangs, and duplicate set members when keys or elements reach 2 GiB, caused by storing string lengths in a 32-bit integer by [@​madolson](https://github.com/madolson) ([#​5133](https://github.com/valkey-io/valkey/issues/5133)) - Fix module global defrag resuming on the wrong module or with a stale cursor when `MODULE UNLOAD` runs between defrag cycles by [@​madolson](https://github.com/madolson) ([#​5154](https://github.com/valkey-io/valkey/issues/5154)) - Propagate `PFADD` elements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by [@​madolson](https://github.com/madolson) ([#​5128](https://github.com/valkey-io/valkey/issues/5128)) - Fix a server crash in `SCRIPT DEBUG SYNC` mode when a debugger command arrives split across more than one read by [@​madolson](https://github.com/madolson) ([#​5127](https://github.com/valkey-io/valkey/issues/5127)) - Fix 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](https://github.com/madolson) ([#​5118](https://github.com/valkey-io/valkey/issues/5118)) - Fix forkless BGSAVE producing a corrupt snapshot when `SWAPDB` runs without being replicated, such as from a script with replication disabled by [@​madolson](https://github.com/madolson) ([#​5116](https://github.com/valkey-io/valkey/issues/5116)) - Let `FLUSHALL` and `SHUTDOWN` cancel a forkless save that is finalizing its file, so a stale snapshot can no longer overwrite the newer dump.rdb by [@​madolson](https://github.com/madolson) ([#​5121](https://github.com/valkey-io/valkey/issues/5121)) - Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by [@​madolson](https://github.com/madolson) ([#​5159](https://github.com/valkey-io/valkey/issues/5159)) - Fix a memory leak when `server.register_function` named arguments are repeated in a different letter case by [@​madolson](https://github.com/madolson) ([#​5120](https://github.com/valkey-io/valkey/issues/5120)) - Preserve expired but not yet reaped hash fields across listpack-to-hashtable conversion so their deletion is properly reaped and propagated by [@​frostzt](https://github.com/frostzt) ([#​4704](https://github.com/valkey-io/valkey/issues/4704)) - Fix a double-decremented item count when background iteration is terminated with a SWAPDB or FLUSHDB event queued by [@​JimB123](https://github.com/JimB123) ([#​4750](https://github.com/valkey-io/valkey/issues/4750)) - Fix `GEOSEARCH` returning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by [@​Baraa-Hasheesh](https://github.com/Baraa-Hasheesh) ([#​4777](https://github.com/valkey-io/valkey/issues/4777)) - Reject inline commands containing a raw NUL byte with a protocol error instead of leaving the connection stalled by [@​cjx-zar](https://github.com/cjx-zar) ([#​4759](https://github.com/valkey-io/valkey/issues/4759)) - Fix a memory leak on normal shutdown caused by I/O worker threads not being terminated and cleaned up by [@​roshkhatri](https://github.com/roshkhatri) ([#​4710](https://github.com/valkey-io/valkey/issues/4710)) - `XACKDEL` with `KEEPREF` now replies 1 instead of -1 when acknowledging an entry whose stream message was already deleted, matching the ACKED and DELREF modes by [@​adityamukesh](https://github.com/adityamukesh) ([#​4843](https://github.com/valkey-io/valkey/issues/4843)) - Fix listpack encoding incompatibility that caused RDB load and replication failures for entries of certain lengths between 9.0 and 9.1.x by [@​jjuleslasarte](https://github.com/jjuleslasarte) ([#​4819](https://github.com/valkey-io/valkey/issues/4819)) - Reject 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](https://github.com/madolson) ([#​4880](https://github.com/valkey-io/valkey/issues/4880)) - `ACL DIGEST` now includes role definitions, so editing a role's rules changes the reported fingerprint by [@​melancholictheory](https://github.com/melancholictheory) ([#​4694](https://github.com/valkey-io/valkey/issues/4694)) - Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis by [@​magic-peach](https://github.com/magic-peach) ([#​4214](https://github.com/valkey-io/valkey/issues/4214)) - Fix a segfault on Alpine/musl when Lua is built as a module, caused by a symbol clash on an internal clock function by [@​mohammedgqudah](https://github.com/mohammedgqudah) ([#​4270](https://github.com/valkey-io/valkey/issues/4270)) - Fix lex range seeks, NaN score bound handling, and a memory leak in B+tree sorted sets, and resolve `ZRANGEBYLEX` LIMIT offsets in logarithmic time by [@​xiaocj](https://github.com/xiaocj) ([#​4644](https://github.com/valkey-io/valkey/issues/4644)) - Fix expired hash fields left untracked after listpack-to-hashtable conversion, which could crash the server on a later write and leave fields that are never reaped by [@​beyondwin](https://github.com/beyondwin) ([#​4894](https://github.com/valkey-io/valkey/issues/4894)) - Restore acceptance of hexadecimal float sorted set scores (such as `0x10`), keeping replication and AOF replay compatible with Valkey 9.0 by [@​quanyeyang](https://github.com/quanyeyang) ([#​4875](https://github.com/valkey-io/valkey/issues/4875)) - Sorted set range commands with a negative `LIMIT` offset now return an empty result instead of a spurious element on btree-encoded keys by [@​xiaocj](https://github.com/xiaocj) ([#​4637](https://github.com/valkey-io/valkey/issues/4637)) - Fix `HSETEX` and `HGETEX` failing to parse their arguments when the key is named `fields` by [@​sebxt](https://github.com/sebxt) ([#​4945](https://github.com/valkey-io/valkey/issues/4945)) - Fix a crash when active defrag's deferred keys outlive a keyspace replacement such as FLUSHDB/FLUSHALL ASYNC, SWAPDB, or a replica's pre-sync flush by [@​taham0](https://github.com/taham0) ([#​4968](https://github.com/valkey-io/valkey/issues/4968)) - Fix `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](https://github.com/charsyam) ([#​4823](https://github.com/valkey-io/valkey/issues/4823)) - Fix a heap buffer overflow in cluster Pub/Sub message construction; oversized PUBLISH and SPUBLISH payloads are now rejected with an error in cluster mode by [@​roshkhatri](https://github.com/roshkhatri) ([#​5030](https://github.com/valkey-io/valkey/issues/5030)) - Lex range commands on btree-encoded sorted sets with mixed scores now match listpack results, preventing primary/replica divergence via ZREMRANGEBYLEX and ZRANGESTORE by [@​pirate329](https://github.com/pirate329) ([#​4954](https://github.com/valkey-io/valkey/issues/4954)) - Fix a memory leak when `GEOSEARCH` or `GEOSEARCHSTORE` is given repeated `BYPOLYGON` options by [@​charsyam](https://github.com/charsyam) ([#​4995](https://github.com/valkey-io/valkey/issues/4995)) - `DEBUG RELOAD` and `DEBUG LOADAOF` now return a LOADING error while the dataset is loading, avoiding a possible panic by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4877](https://github.com/valkey-io/valkey/issues/4877)) - Fix a memory leak in `ValkeyModule_GetCommandKeysWithFlags` when introspecting commands with large key lists by [@​christopherlim98](https://github.com/christopherlim98) ([#​5046](https://github.com/valkey-io/valkey/issues/5046)) - `MEMORY USAGE` now counts hash fields that have expired but not yet been reaped, fixing under-reported sizes by [@​sushilpaneru1](https://github.com/sushilpaneru1) ([#​5092](https://github.com/valkey-io/valkey/issues/5092)) - Fix a crash in `ValkeyModule_Call` when script-mode validation fails and error replies were not requested by [@​dvkashapov](https://github.com/dvkashapov) ([#​5091](https://github.com/valkey-io/valkey/issues/5091)) - High-priority socket events are no longer drained when the event loop caller did not request file event processing by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​5098](https://github.com/valkey-io/valkey/issues/5098)) - Fix a crash when a replication role change command such as `REPLICAOF` or `CLUSTER REPLICATE` arrives over a replication link by [@​madolson](https://github.com/madolson) ([#​5187](https://github.com/valkey-io/valkey/issues/5187)) - `FUNCTION RESTORE` now applies the same library load timeout as `FUNCTION LOAD`, so a never-returning library can no longer block the server forever by [@​madolson](https://github.com/madolson) ([#​5181](https://github.com/valkey-io/valkey/issues/5181)) - Fix a buffer overflow in valkey-benchmark when `--num-functions` is large enough to overflow the generated script buffer by [@​madolson](https://github.com/madolson) ([#​5175](https://github.com/valkey-io/valkey/issues/5175)) - Fix a valkey-check-rdb crash with `--stats` on RDB files whose highest selected database contains no keys by [@​madolson](https://github.com/madolson) ([#​5177](https://github.com/valkey-io/valkey/issues/5177)) - Fix a crash on the importing primary when an atomic slot migration fails while its writes are paused by [@​madolson](https://github.com/madolson) ([#​5182](https://github.com/valkey-io/valkey/issues/5182)) - Fix `GEOSEARCH BYPOLYGON` missing matching members when the polygon's vertex centroid falls outside the valid latitude range by [@​madolson](https://github.com/madolson) ([#​5174](https://github.com/valkey-io/valkey/issues/5174)) - Fix a primary abort when `CLUSTER SETSLOT` runs inside MULTI or a script on a primary with online replicas by [@​madolson](https://github.com/madolson) ([#​5141](https://github.com/valkey-io/valkey/issues/5141)) - Fix a memory leak when deleting or replacing Lua functions with long names or descriptions by [@​madolson](https://github.com/madolson) ([#​5109](https://github.com/valkey-io/valkey/issues/5109)) - A refused oversized `XADD` no longer creates an empty stream key that replicas and the AOF never receive by [@​madolson](https://github.com/madolson) ([#​5178](https://github.com/valkey-io/valkey/issues/5178)) - Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by [@​madolson](https://github.com/madolson) ([#​5126](https://github.com/valkey-io/valkey/issues/5126)) - FUNCTION LOAD no longer aborts the server when a library calls `server.log()` at its top level, including when loading from RDB or AOF by [@​madolson](https://github.com/madolson) ([#​5114](https://github.com/valkey-io/valkey/issues/5114)) - RESET on a slot migration connection now returns an error instead of crashing the server with an assertion failure by [@​madolson](https://github.com/madolson) ([#​5140](https://github.com/valkey-io/valkey/issues/5140)) - DEBUG SLOTMIGRATION with missing arguments now returns an error instead of crashing the server by [@​madolson](https://github.com/madolson) ([#​5147](https://github.com/valkey-io/valkey/issues/5147)) - KEYS on a flushed database no longer leaks a rehashing pause that permanently stops rehashing and can eventually crash the server by [@​madolson](https://github.com/madolson) ([#​5166](https://github.com/valkey-io/valkey/issues/5166)) - Automatic RDB snapshots and AOF rewrites are no longer postponed while a forked SCRIPT DEBUG session is open by [@​madolson](https://github.com/madolson) ([#​5153](https://github.com/valkey-io/valkey/issues/5153)) - Fix an integer overflow in quicklist node merging that could crash the server on lists loaded with nodes over 4GiB via RESTORE or replication by [@​madolson](https://github.com/madolson) ([#​5163](https://github.com/valkey-io/valkey/issues/5163)) - Fix a stack buffer overflow when replying with hundreds of empty strings (e.g. MGET) while reply copy avoidance is active by [@​madolson](https://github.com/madolson) ([#​5151](https://github.com/valkey-io/valkey/issues/5151)) - CLUSTER SLOT-STATS ORDERBY no longer replies with uninitialized slot entries when a node's primary is itself a replica that claims slots by [@​madolson](https://github.com/madolson) ([#​5131](https://github.com/valkey-io/valkey/issues/5131)) - Fix a race with TLS and io-threads where an IO thread still writing to a client could modify the main thread's event loop by [@​madolson](https://github.com/madolson) ([#​5156](https://github.com/valkey-io/valkey/issues/5156)) - Fix a replica crash when a script exceeding busy-reply-threshold ends during CLIENT PAUSE WRITE with a pending replicated write by [@​madolson](https://github.com/madolson) ([#​5150](https://github.com/valkey-io/valkey/issues/5150)) - In cluster mode, one cross-slot command in a script no longer makes every later script and function call fail until restart by [@​madolson](https://github.com/madolson) ([#​5191](https://github.com/valkey-io/valkey/issues/5191)) - Fix a use-after-free crash when a forkless save is running while a swapdb-mode full sync swaps in the primary's keyspace on a replica by [@​nitaicaro](https://github.com/nitaicaro) ([#​5082](https://github.com/valkey-io/valkey/issues/5082)) - Fix a replica assertion crash when the primary writes a key still in use by a forkless (consistent) save by [@​harrylin98](https://github.com/harrylin98) ([#​5206](https://github.com/valkey-io/valkey/issues/5206)) - Fix a dangling pointer when a key is deleted during a forkless save, which could crash or silently corrupt the iteration by [@​JimB123](https://github.com/JimB123) ([#​4996](https://github.com/valkey-io/valkey/issues/4996)) - Clear the script debugger input buffer after a "max client buffer reached" error so later debugger commands in the same session do not keep failing by [@​madolson](https://github.com/madolson) ([#​5129](https://github.com/valkey-io/valkey/issues/5129)) - MODULE LOAD is now rejected during async replication loading and atomic slot migration to avoid unexpected module behavior by [@​KIvanow](https://github.com/KIvanow) ([#​3039](https://github.com/valkey-io/valkey/issues/3039)) - Reject CLUSTER ADDSLOTS/DELSLOTS/ADDSLOTSRANGE/DELSLOTSRANGE/FLUSHSLOTS on replicas, preventing an assertion failure on a later CLUSTER REPLICATE by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4020](https://github.com/valkey-io/valkey/issues/4020)) - Fix 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](https://github.com/enjoy-binbin) ([#​4091](https://github.com/valkey-io/valkey/issues/4091)) - Fix wrong results or debug-build assertions in cluster mode when the server inspects keys outside the executing command's slot, such as WATCHed keys checked during EXEC by [@​nitaicaro](https://github.com/nitaicaro) ([#​4380](https://github.com/valkey-io/valkey/issues/4380)) - Fix 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](https://github.com/Tarte12) ([#​3459](https://github.com/valkey-io/valkey/issues/3459)) - Fix a server crash on FUNCTION DELETE or FUNCTION LOAD REPLACE after loading a library with function names differing only in case by [@​madolson](https://github.com/madolson) ([#​3925](https://github.com/valkey-io/valkey/issues/3925)) - Client-side tracking no longer records routing-only tokens such as the CLUSTERSCAN cursor as tracked keys by [@​nmvk](https://github.com/nmvk) ([#​3699](https://github.com/valkey-io/valkey/issues/3699)) - Reject malformed slot entries in the cluster config file as a corrupt config instead of asserting or invoking undefined behavior by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4100](https://github.com/valkey-io/valkey/issues/4100)) - Fix 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](https://github.com/yairgott) ([#​3510](https://github.com/valkey-io/valkey/issues/3510)) - Client eviction no longer disconnects extra clients when a large client's close is deferred but its memory is already scheduled to be freed by [@​dhruv2x](https://github.com/dhruv2x) ([#​4152](https://github.com/valkey-io/valkey/issues/4152)) - Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by [@​royenheart](https://github.com/royenheart) ([#​4351](https://github.com/valkey-io/valkey/issues/4351)) - Rework iteration over clients blocked on ready keys to simplify and harden an earlier use-after-free fix by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4472](https://github.com/valkey-io/valkey/issues/4472)) - Fix a race in RDB string compression that could produce corrupt, unloadable RDB files when compression runs concurrently, without increasing copy-on-write by [@​dubey02](https://github.com/dubey02) ([#​4539](https://github.com/valkey-io/valkey/issues/4539)) - Fix dropped field TTLs and a possible crash when loading a hash with field expiration converts it to a hashtable mid-load (e.g. via RESTORE) by [@​madolson](https://github.com/madolson) ([#​4669](https://github.com/valkey-io/valkey/issues/4669)) - Reject a repeated `CLUSTER SYNCSLOTS ESTABLISH` on the same connection, which could lead to a use-after-free crash on disconnect by [@​Pyolar](https://github.com/Pyolar) ([#​4670](https://github.com/valkey-io/valkey/issues/4670)) - Fix wrong `ZCOUNT` results and incorrect `ZREMRANGEBYSCORE` deletions when members sharing a boundary score span multiple btree leaves by [@​rainsupreme](https://github.com/rainsupreme) ([#​4554](https://github.com/valkey-io/valkey/issues/4554)) - Fix `SORT` key extraction so a `STORE` destination named like an option can no longer bypass ACL checks and write to an unauthorized key by [@​madolson](https://github.com/madolson) ([#​4665](https://github.com/valkey-io/valkey/issues/4665)) ##### Command and API Updates - Correct the `since` version of the `SISMEMBER` `XX` option to 9.2.0 in the command metadata by [@​PoisonGodv](https://github.com/PoisonGodv) ([#​5310](https://github.com/valkey-io/valkey/issues/5310)) - Allow null in the reply schemas of `GEOHASH`, `OBJECT FREQ`, `OBJECT IDLETIME` and `OBJECT REFCOUNT` for missing members and keys by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5209](https://github.com/valkey-io/valkey/issues/5209)) - Correct the `SENTINEL GET-MASTER-ADDR-BY-NAME` reply schema to allow the null reply returned for an unknown primary name by [@​rainsupreme](https://github.com/rainsupreme) ([#​5246](https://github.com/valkey-io/valkey/issues/5246)) - Correct command metadata to describe the `ZINCRBY` increment and `ZINTER`/`ZINTERSTORE`/`ZUNION`/`ZUNIONSTORE` weights as doubles instead of integers by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5210](https://github.com/valkey-io/valkey/issues/5210)) - Correct command metadata so the `numfields` count argument of hash field commands is no longer associated with a key specification by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5211](https://github.com/valkey-io/valkey/issues/5211)) - Correct expiry command metadata to show that `XX` can be combined with `GT` or `LT`, rather than all four conditions being mutually exclusive by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5213](https://github.com/valkey-io/valkey/issues/5213)) - Mark the `RESTORE` and `RESTORE-ASKING` `IDLETIME` and `FREQ` options as mutually exclusive in command metadata by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5212](https://github.com/valkey-io/valkey/issues/5212)) - Correct the `HEXPIRE`, `HPEXPIRE`, `HEXPIREAT`, and `HPEXPIREAT` command summaries to say they set expiration on hash fields, not the hash object by [@​poiuj](https://github.com/poiuj) ([#​4783](https://github.com/valkey-io/valkey/issues/4783)) - Add `LBOUND`, `UBOUND`, `SATURATE`, `ENX`, and `PERSIST` options to `INCREX` for bounded increments and conditional expiration control by [@​murphyjacob4](https://github.com/murphyjacob4) ([#​4679](https://github.com/valkey-io/valkey/issues/4679)) - Correct `SENTINEL SIMULATE-FAILURE` metadata so `COMMAND DOCS` shows the required mode argument and its tokens by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5208](https://github.com/valkey-io/valkey/issues/5208)) - Rename the Path Hash command `PHEXISTS` to `PHPATHEXISTS` to clarify that it checks a path rather than a hash field by [@​yangbodong22011](https://github.com/yangbodong22011) ([#​5069](https://github.com/valkey-io/valkey/issues/5069)) - Add `PHPATHSCAN` for ordered incremental path iteration and change `PHSCAN` to iterate fields and values at an exact path by [@​yangbodong22011](https://github.com/yangbodong22011) ([#​5066](https://github.com/valkey-io/valkey/issues/5066)) - Remove `PHLONGEST` in favor of `PHPREFIXES`, which now returns matches longest-first with paging and an `EXCLUDESELF` option by [@​yangbodong22011](https://github.com/yangbodong22011) ([#​5070](https://github.com/valkey-io/valkey/issues/5070)) - Replace `PHCARD` with `PHPATHCOUNT`, which can also count only the paths under a given prefix by [@​yangbodong22011](https://github.com/yangbodong22011) ([#​5071](https://github.com/valkey-io/valkey/issues/5071)) - Replace `PHDELPREFIX` with `PHPATHDEL key path [WITHSUBPATHS]`, which deletes an exact path or its whole subtree and returns the number of deleted paths by [@​yangbodong22011](https://github.com/yangbodong22011) ([#​5067](https://github.com/valkey-io/valkey/issues/5067)) - Mark the absolute timestamp arguments of `HEXPIREAT` and `HPEXPIREAT` as `unix-time` in `COMMAND DOCS`, matching `EXPIREAT` and `PEXPIREAT` by [@​rainsupreme](https://github.com/rainsupreme) ([#​5245](https://github.com/valkey-io/valkey/issues/5245)) - Correct `ZADD` and `LCS` metadata so `COMMAND DOCS` and valkey-cli hints no longer present `NX` with `GT`/`LT` or `LEN` with `IDX` as valid combinations by [@​rainsupreme](https://github.com/rainsupreme) ([#​5244](https://github.com/valkey-io/valkey/issues/5244)) - `MOVE` accepts a new optional `REPLACE` argument to overwrite an existing key in the destination database by [@​bandalgomsu](https://github.com/bandalgomsu) ([#​2993](https://github.com/valkey-io/valkey/issues/2993)) - WAIT and WAITAOF now reject numreplicas values that are negative or exceed INT_MAX, fixing an integer overflow that broke blocking by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3407](https://github.com/valkey-io/valkey/issues/3407)) - Add CONFIG INFO subcommand returning config metadata such as type, flags, valid enum values and numeric ranges by [@​nitaicaro](https://github.com/nitaicaro) ([#​3050](https://github.com/valkey-io/valkey/issues/3050)) - Add the `IFNE` option to `SET` to set a key only when its current value differs from the given comparison value by [@​arshidkv12](https://github.com/arshidkv12) ([#​3105](https://github.com/valkey-io/valkey/issues/3105)) - Add `IFEQ`, `IFNE`, `NX` and `XX` conditions to `EXEC`, enabling optimistic locking for multi-key transactions without `WATCH` by [@​bandalgomsu](https://github.com/bandalgomsu) ([#​4019](https://github.com/valkey-io/valkey/issues/4019)) - Add an optional `XX` flag to `SISMEMBER` that returns -1 when the key does not exist, distinguishing a missing key from a missing member by [@​li-benson](https://github.com/li-benson) ([#​2972](https://github.com/valkey-io/valkey/issues/2972)) - Handle NOT_KEY key-specs more defensively so COMMAND GETKEYS and ACL key checks consistently treat routing-only tokens as non-keys by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3675](https://github.com/valkey-io/valkey/issues/3675)) - Fix DEBUG HELP to show the correct DELAY-RDB-CLIENT-FREE-SECONDS name and document the SET-DISABLE-DENY-SCRIPTS subcommand by [@​xiejing-dev](https://github.com/xiejing-dev) ([#​4099](https://github.com/valkey-io/valkey/issues/4099)) - Add XX option to the ZRANGE family of commands to distinguish a non-existent key (nil) from an empty result by [@​youngmore1024](https://github.com/youngmore1024) ([#​2978](https://github.com/valkey-io/valkey/issues/2978)) - Fix the reply schemas of the ZRANGE family of commands to allow the null reply returned with the XX option by [@​murphyjacob4](https://github.com/murphyjacob4) ([#​4275](https://github.com/valkey-io/valkey/issues/4275)) - Fix the `XPENDING` reply schema to describe the summary reply returned when a consumer group has no pending messages by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​4653](https://github.com/valkey-io/valkey/issues/4653)) ##### Cluster and Replication - Fix `HSETEX` and `MSETEX` with a repeated EX, PX or EXAT option being rejected by replicas and lost on AOF reload by [@​madolson](https://github.com/madolson) ([#​5088](https://github.com/valkey-io/valkey/issues/5088)) - Reject inbound cluster bus packets larger than 16MB, except Pub/Sub and module messages, so a peer cannot make a node buffer up to 4GB from a single header by [@​madolson](https://github.com/madolson) ([#​5065](https://github.com/valkey-io/valkey/issues/5065)) - Fix replicas retrying full sync in a loop when the primary rejects `PSYNC` and the replica falls back to `SYNC` by [@​murphyjacob4](https://github.com/murphyjacob4) ([#​5280](https://github.com/valkey-io/valkey/issues/5280)) - Strip every repeated `LIMIT` when propagating `XADD` and `XTRIM`, so tools replaying the replication stream no longer get a syntax error by [@​madolson](https://github.com/madolson) ([#​4893](https://github.com/valkey-io/valkey/issues/4893)) - Fix shutdown-triggered failover promoting a replica that has `cluster-replica-no-failover yes` by [@​simonasr](https://github.com/simonasr) ([#​5033](https://github.com/valkey-io/valkey/issues/5033)) - Fix replication throttling starting earlier than intended when the replica output buffer limit is set below `repl-backlog-size` by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​5338](https://github.com/valkey-io/valkey/issues/5338)) - Fix Sentinel counting stale primary-down reports from peers toward quorum, which could trigger an unwanted failover of a healthy primary by [@​akasakariko](https://github.com/akasakariko) ([#​4913](https://github.com/valkey-io/valkey/issues/4913)) - Sentinel refuses to start when its config directory is not writable, instead of silently failing to save state by [@​sgissi](https://github.com/sgissi) ([#​5376](https://github.com/valkey-io/valkey/issues/5376)) - Fix replicas reporting duplicate import-aborted module events for one slot import when `FLUSHALL` on the primary fails an atomic slot migration by [@​sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#​5367](https://github.com/valkey-io/valkey/issues/5367)) - Fix `MSETEX` in cluster mode skipping `MOVED` and `CROSSSLOT` checks and its writes not being forwarded during atomic slot migration by [@​bhuvanprakash](https://github.com/bhuvanprakash) ([#​4951](https://github.com/valkey-io/valkey/issues/4951)) - Fix replication of `HDEL` commands generated by active hash field expiration during a forkless full sync by [@​JimB123](https://github.com/JimB123) ([#​5460](https://github.com/valkey-io/valkey/issues/5460)) - Decouple `rdbcompression` (on-disk RDB format) from `repl-compression` (replication wire format) so setting one no longer affects the other during a full sync by [@​zuiderkwast](https://github.com/zuiderkwast) ([#​4749](https://github.com/valkey-io/valkey/issues/4749)) - Avoid rapid failover election restarts by fast-failing only on NACK reasons that a new election epoch can actually fix by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4700](https://github.com/valkey-io/valkey/issues/4700)) - Prevent a failover auth NACK for an old election from being counted against the current election by echoing the rejected request epoch by [@​xdk-amz](https://github.com/xdk-amz) ([#​4654](https://github.com/valkey-io/valkey/issues/4654)) - Keep a replica's connection to its primary on the main thread so replication flow control works when I/O threads are enabled by [@​chky1386](https://github.com/chky1386) ([#​4765](https://github.com/valkey-io/valkey/issues/4765)) - `HDEL`, `HGETDEL`, `HPERSIST`, and `HEXPIRE` no longer propagate fields they treat as expired, preventing replica and AOF-reload divergence by [@​xdk-amz](https://github.com/xdk-amz) ([#​4772](https://github.com/valkey-io/valkey/issues/4772)) - `COPY` of a hash now includes expired-but-unreaped fields so their deletion is propagated and replicas stay in sync by [@​pirate329](https://github.com/pirate329) ([#​4939](https://github.com/valkey-io/valkey/issues/4939)) - Fix atomic slot migration not replicating evictions on the import target, which let replicas grow far past `maxmemory` by [@​shanezx-sc](https://github.com/shanezx-sc) ([#​4920](https://github.com/valkey-io/valkey/issues/4920)) - Fix 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](https://github.com/KewangZhili) ([#​4489](https://github.com/valkey-io/valkey/issues/4489)) - Fix failover election fast-fail double-counting a voter that rejected the request and was later marked FAIL, which could abandon a winnable election by [@​xdk-amz](https://github.com/xdk-amz) ([#​4655](https://github.com/valkey-io/valkey/issues/4655)) - Fix atomic slot migration with `cluster-databases` > 1 applying writes made during the snapshot to the wrong database on the target by [@​pirate329](https://github.com/pirate329) ([#​4952](https://github.com/valkey-io/valkey/issues/4952)) - Ignore new nodes gossiped by a sender still in handshake so a forged MEET packet cannot fill the cluster node table by [@​madolson](https://github.com/madolson) ([#​5145](https://github.com/valkey-io/valkey/issues/5145)) - Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by [@​madolson](https://github.com/madolson) ([#​5137](https://github.com/valkey-io/valkey/issues/5137)) - Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by [@​madolson](https://github.com/madolson) ([#​5161](https://github.com/valkey-io/valkey/issues/5161)) - Fix incorrect missing-key handling of replicated MULTI/EXEC transactions during a forkless full sync by [@​JimB123](https://github.com/JimB123) ([#​5205](https://github.com/valkey-io/valkey/issues/5205)) - Cluster replicas now redirect keyless commands like SCAN and FLUSHDB to the primary for clients with CAPA REDIRECT that have not sent READONLY by [@​yanamolo](https://github.com/yanamolo) ([#​3505](https://github.com/valkey-io/valkey/issues/3505)) - Changing cluster-require-full-coverage via CONFIG SET now updates the cluster state immediately instead of waiting for the next cron cycle by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3676](https://github.com/valkey-io/valkey/issues/3676)) - Fix CLUSTER BUMPEPOCH getting stuck when a dead node holds an equal or abnormally high config epoch; a single bump now overtakes it by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4092](https://github.com/valkey-io/valkey/issues/4092)) - Replicas now retry PSYNC when the primary replies -BUSY instead of downgrading to legacy SYNC, which broke WAIT, PSYNC and FAILOVER by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4140](https://github.com/valkey-io/valkey/issues/4140)) - SYNC/PSYNC from a replica with a down primary link now consistently returns -NOMASTERLINK, avoiding an unnecessary full sync fallback by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4148](https://github.com/valkey-io/valkey/issues/4148)) - Add cluster-replica-priority config so operators can rank which replicas are preferred during automatic cluster failover by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​2204](https://github.com/valkey-io/valkey/issues/2204)) - Speed up recovery from split-vote failover elections with a new FAILOVER_AUTH_NACK message that lets a replica detect an unwinnable election and immediately retry with a higher epoch by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3833](https://github.com/valkey-io/valkey/issues/3833)) - Add optional per-target `AUTH username password` to `CLUSTER MIGRATESLOTS`, with credentials redacted from the slow log and MONITOR by [@​nemtsv](https://github.com/nemtsv) ([#​3538](https://github.com/valkey-io/valkey/issues/3538)) - Compress the full-sync RDB payload with LZ4 when `rdbcompression lz4` is set and every attaching replica advertises support, reducing sync bandwidth with safe fallback to plaintext by [@​roshkhatri](https://github.com/roshkhatri) ([#​4075](https://github.com/valkey-io/valkey/issues/4075)) - Add an `if-empty` value to `cluster-replica-no-failover` so a replica that has never received data from its primary refuses automatic failover, preventing silent data loss by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4425](https://github.com/valkey-io/valkey/issues/4425)) - Add optional LZ4 streaming compression for steady-state replication via the new `repl-compression` config, negotiated per replica so older or opted-out replicas keep receiving plaintext by [@​roshkhatri](https://github.com/roshkhatri) ([#​3853](https://github.com/valkey-io/valkey/issues/3853)) - Fix `CLUSTERSCAN` fingerprints to derive from the hash-seed config so cursors survive failover between nodes sharing a seed by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3679](https://github.com/valkey-io/valkey/issues/3679)) - Replicas trigger a failover check immediately when cluster-replica-no-failover is disabled at runtime, instead of waiting for the next cron tick by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​3827](https://github.com/valkey-io/valkey/issues/3827)) - Validate node IDs and shard IDs received in cluster messages before applying them, dropping the link on invalid data to protect cluster state by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4065](https://github.com/valkey-io/valkey/issues/4065)) - Drop the cluster link when a gossip section contains invalid node IDs, instead of keeping the connection to a corrupted sender alive by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4077](https://github.com/valkey-io/valkey/issues/4077)) - Persist nodes.conf promptly when a node's address is updated through the gossip section by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4089](https://github.com/valkey-io/valkey/issues/4089)) - Reject malformed node IDs in the open-slots RDB aux field instead of creating an illegal cluster node by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4098](https://github.com/valkey-io/valkey/issues/4098)) - Strip the redundant LIMIT option when rewriting XADD/XTRIM for propagation, so the rewritten command is valid for tools that replay it by [@​cjx-zar](https://github.com/cjx-zar) ([#​4063](https://github.com/valkey-io/valkey/issues/4063)) - Persist non-default cluster-replica-priority to nodes.conf so it survives restarts instead of waiting for the next gossip round by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4454](https://github.com/valkey-io/valkey/issues/4454)) - Clear a stale primary-failure gossip flag on replicas so later failovers don't incorrectly skip the election delay by [@​charsyam](https://github.com/charsyam) ([#​4533](https://github.com/valkey-io/valkey/issues/4533)) - Fix a node staying stuck in PFAIL when its PING is lost while the peer's own traffic keeps the cluster link alive by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4171](https://github.com/valkey-io/valkey/issues/4171)) - `CLUSTER SYNCSLOTS FINISH` now rejects clients outside the slot migration stream, preventing misuse of the import state machine by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​4330](https://github.com/valkey-io/valkey/issues/4330)) ##### Configuration - Fix `notify-keyspace-events` dropping the `n` (new key) flag from `CONFIG GET` and `CONFIG REWRITE` when `A` is also set by [@​pirate329](https://github.com/pirate329) ([#​5199](https://github.com/valkey-io/valkey/issues/5199)) - CONFIG REWRITE now quotes the replicaof host, so hosts with spaces or newlines no longer corrupt the config file by [@​madolson](https://github.com/madolson) ([#​5176](https://github.com/valkey-io/valkey/issues/5176)) - Rename the `bgsave-default-method` config to `forkless-policy` with values `require-fork` and `prefer-forkless` by [@​madolson](https://github.com/madolson) ([#​5261](https://github.com/valkey-io/valkey/issues/5261)) - `commandlog-request-larger-than` and `commandlog-reply-larger-than` now accept memory units such as 10mb by [@​enjoy-binbin](https://github.com/enjoy-binbin) ([#​2648](https://github.com/valkey-io/valkey/issues/2648)) - `cluster-announce-ip` now must be a valid IP address or hostname, rejecting values like `ip:port` that broke cluster bus addressing by [@​AlisinaDevelo](https://github.com/AlisinaDevelo) ([#​4055](https://github.com/valkey-io/valkey/issues/4055)) - Reject an empty `tls-ca-cert-dir` at startup and `CONFIG SET` time instead of silently accepting it and failing every client handshake later by [@R…
SET/GETEXwithEX/PX,RESTOREwith a relative TTL, andValkeyModule_SetExpireadd the current time to a user-supplied expire without a valid overflow check. WherecheckAlreadyExpired()does not delete, such as import mode, the key is stored with a negative absolute expire and the active expire cycle aborts onserverAssert(t >= 0). An AOF whose RDB preamble carries that key aborts the server again on restart. The fix checksvalue > LLONG_MAX - basetimebefore adding, asconvertExpireArgumentToUnixTime()already does, and RDB load now drops keys with a negative expire on every node, not just a primary.AI generated details
Problem
src/t_string.c:247:*milliseconds += commandTimeSnapshot()thenif (*milliseconds <= 0). Added in EXPIRE, EXPIREAT, SETEX, GETEX: Return error when expire time overflows redis/redis#8287 (0772098b1), which assumed the wrap is observable.src/cluster.c:282:ttl += commandTimeSnapshot()with only attl < 0check on the input. Dates to RESTORE ABSTTL won't store keys into the db redis/redis#7472 (5977a94842).src/module.c:4535:expire += commandTimeSnapshot()unchecked. Dates to the original module expire API (11b3df24cb).All three predate the fork, so every Valkey release from 7.2.0 through 9.1.2 is affected.
The existing tests in
tests/unit/expire.tcl:271-291useEX 10000000000000000, which theLLONG_MAX / 1000check rejects before the base time is ever added, so the addition was never reached.Fix
Check against
LLONG_MAX - basetimebefore adding, in all three places.t_string.c: the trailing<= 0check is removed. ForEXAT/PXATit is already covered by the earlier<= 0andLLONG_MAX / 1000checks att_string.c:238, so it only ever fired on the overflow.RESTORErepliesERR invalid expire time in 'restore' command, the errorEXPIRE/SET/GETEXuse for overflow. Behavior change: where the sum wrapped negative,checkAlreadyExpired()treated it as expired on a primary, soRESTOREreplied+OK, created no key, and withREPLACEdeleted the existing key and propagatedDEL. It now errors and leaves the key alone.VM_SetExpirereturnsVALKEYMODULE_ERR, as it already does for a negative expire.src/rdb.c:4050: the expired-key drop ran only on a primary loading a plain RDB. A replica full sync or an AOF preamble stored a negative expire as-is. It is now dropped on every node.RDBFLAGS_FEED_REPLis only set on a primary loading a plain RDB, so theDELpropagation and its assertion are unchanged. This makes RDBs saved by servers already hit by this bug loadable instead of crashing.Alternative considered
Route
SET/GETEXthroughconvertExpireArgumentToUnixTime(). It rejects only< 0, soSET k v EX 0would start succeeding instead of erroring. It also doesn't coverRESTOREor the module API.Testing
Each source file reverted to
unstableon its own, tests kept, Apple clang 21:On
unstable, the crash:Restarting a server on the AOF written after that
RESTOREhits the same assertion onunstable. With this PR it loads:The RDB load change has no automated test.
Not tested: gcc builds. Whether gcc keeps the post-add check is unverified.
This was generated by AI but verified, with love, by a human.