Skip to content

Compare the certificate CN over its whole length - #4577

Merged
madolson merged 1 commit into
valkey-io:unstablefrom
madolson:ghsa-wcx3-cn-nul
Aug 31, 2026
Merged

madolson merged 1 commit into
valkey-io:unstablefrom
madolson:ghsa-wcx3-cn-nul

Conversation

@madolson

Copy link
Copy Markdown
Member

tlsGetPeerUser() derived the ACL username from the certificate CN with strlen(), so an embedded NUL truncated the identity before the lookup. A certificate whose CA vouched subject is CN=admin\0attacker authenticated as the ACL user admin and got its privileges. The sibling SAN URI path already passed an explicit length to ACLGetUserByName(). The CN path did not.

No explicit NUL check is needed. ACL SETUSER refuses a username containing one, so comparing the full length is sufficient. Dropping the buffer also removes the silent truncation of a CN longer than 255 bytes.

The CN is handed back whether or not it matches, so a failed authentication now produces an ACL LOG entry and bumps acl_access_denied_tls_cert instead of leaving no trace at the default loglevel.

Affects 9.0 and 9.1, CN path only. The feature arrived in #1920.

Not fixed here: X509_NAME_get_index_by_NID() takes the first CN and ignores the rest, so CN=admin, CN=attacker authenticates as admin. Refusing that would break certificates that authenticate today and contradicts valkey.conf:275-277, which documents first match wins for URI mode. Its own PR.

The openssl CLI strips a NUL from a name, which is why #3078 could not cover this when it added the URI path, so the fixture is issued with a placeholder byte and re-signed. The new test fails on unstable and passes with the fix. unit/tls and unit/acl pass under --tls and --tls-module, and unit/tls is clean under SANITIZER=address.

Note

Reported by Christopher Lusk, North Echo Security Research (GHSA-wcx3-8mjv-6cjc). This was generated by AI but verified, with love, by a human.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 5eb87cea-f4aa-49e3-8444-831939ea6b70

📥 Commits

Reviewing files that changed from the base of the PR and between d69cfa6 and 6cb2f02.

📒 Files selected for processing (1)
  • src/tls.c

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

getCertSubjectFieldByName now preserves complete ASN.1 string data, including embedded NULs. TLS CN authentication uses the full value for ACL lookup and logging. Tests generate and validate a certificate with an embedded-NUL CN.

Changes

TLS certificate CN identity handling

Layer / File(s) Summary
CN extraction and ACL authentication
src/tls.c
The certificate helper now returns an SDS containing the complete raw CN. TLS CN authentication uses the full length for ACL lookup, logs rejected CN values safely, and preserves the CN in cert_username.
Embedded-NUL regression coverage
utils/gen-test-certs.sh, tests/unit/tls.tcl
The certificate script creates a re-signed certificate with an embedded-NUL CN. The TLS test verifies that the truncated CN user is not authenticated and that rejection is logged.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 6cb2f

The change prevents embedded-NUL certificate CNs from being truncated into privileged ACL usernames while preserving normal certificate authentication behavior. No actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: murphyjacob4

Sequence Diagram(s)

sequenceDiagram
  participant TLSClient
  participant tlsGetPeerUser
  participant getCertSubjectFieldByName
  participant ACLGetUserByName
  participant ACLLog
  TLSClient->>tlsGetPeerUser: present client certificate
  tlsGetPeerUser->>getCertSubjectFieldByName: read CN
  getCertSubjectFieldByName-->>tlsGetPeerUser: return raw CN SDS
  tlsGetPeerUser->>ACLGetUserByName: match CN using sdslen(cn)
  ACLGetUserByName-->>tlsGetPeerUser: return matching or no user
  tlsGetPeerUser->>ACLLog: log rejected CN with sdscatrepr
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: comparing the certificate CN across its full length.
Description check ✅ Passed The description directly explains the embedded-NUL authentication flaw, the fix, affected paths, test coverage, and scope limitations.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@madolson madolson added the release-notes This issue should get a line item in the release notes label Aug 31, 2026
Comment thread src/tls.c Resolved
With tls-auth-clients-user CN, the ACL username is derived from the client
certificate's Common Name. getCertSubjectFieldByName() copied the CN into a
fixed buffer with memcpy and the true ASN.1 length, then discarded that length,
and tlsGetPeerUser() recovered it with strlen(). An embedded NUL therefore
truncated the identity before the ACL lookup, so a CA vouched subject of
"CN=admin\0attacker" authenticated as the ACL user "admin" and gained its
privileges. The discarded length also hid silent truncation of a CN that did not
fit the buffer.

The sibling SAN URI path in the same file already passes an explicit length to
ACLGetUserByName(). The CN path did not.

Return the CN as an sds instead. It is binary safe and carries its own length,
so the comparison covers the whole value the CA signed: "CN=admin\0attacker" no
longer matches "admin". No ACL user can contain a NUL, so a CN carrying one
simply matches nothing. Dropping the buffer also removes the truncation.

The CN is handed to the caller whether or not it matches, so a failed
certificate authentication produces an ACL log entry and bumps
acl_access_denied_tls_cert rather than leaving no trace. The CN is redacted from
the log when hide-user-data-from-log is set, matching the successful
authentication log in networking.c.

Reported-by: Christopher Lusk, North Echo Security Research
Signed-off-by: Madelyn Olson <[email protected]>
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.80%. Comparing base (7be7d56) to head (6cb2f02).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #4577      +/-   ##
============================================
- Coverage     78.81%   78.80%   -0.01%     
============================================
  Files           171      171              
  Lines         89887    89887              
============================================
- Hits          70842    70839       -3     
- Misses        19045    19048       +3     
Files with missing lines Coverage Δ
src/tls.c 17.64% <ø> (ø)

... and 22 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@madolson
madolson enabled auto-merge (squash) August 31, 2026 22:05
@madolson
madolson merged commit 279b07f into valkey-io:unstable Aug 31, 2026
89 of 91 checks passed
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 9.1 Aug 31, 2026
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 9.0 Aug 31, 2026
valkeyrie-ops Bot pushed a commit that referenced this pull request Aug 31, 2026
`tlsGetPeerUser()` derived the ACL username from the certificate CN with
`strlen()`, so an embedded NUL truncated the identity before the lookup.
A certificate whose CA vouched subject is `CN=admin\0attacker`
authenticated as the ACL user `admin` and got its privileges. The
sibling SAN URI path already passed an explicit length to
`ACLGetUserByName()`. The CN path did not.

No explicit NUL check is needed. `ACL SETUSER` refuses a username
containing one, so comparing the full length is sufficient. Dropping the
buffer also removes the silent truncation of a CN longer than 255 bytes.

The CN is handed back whether or not it matches, so a failed
authentication now produces an `ACL LOG` entry and bumps
`acl_access_denied_tls_cert` instead of leaving no trace at the default
loglevel.

Affects 9.0 and 9.1, CN path only. The feature arrived in #1920.

Not fixed here: `X509_NAME_get_index_by_NID()` takes the first CN and
ignores the rest, so `CN=admin, CN=attacker` authenticates as `admin`.
Refusing that would break certificates that authenticate today and
contradicts `valkey.conf:275-277`, which documents first match wins for
URI mode. Its own PR.

The openssl CLI strips a NUL from a name, which is why #3078 could not
cover this when it added the URI path, so the fixture is issued with a
placeholder byte and re-signed. The new test fails on unstable and
passes with the fix. `unit/tls` and `unit/acl` pass under `--tls` and
`--tls-module`, and `unit/tls` is clean under `SANITIZER=address`.

Signed-off-by: Madelyn Olson <[email protected]>
Backport-Source-PR: 4577
madolson added a commit that referenced this pull request Aug 31, 2026
`tlsGetPeerUser()` derived the ACL username from the certificate CN with
`strlen()`, so an embedded NUL truncated the identity before the lookup.
A certificate whose CA vouched subject is `CN=admin\0attacker`
authenticated as the ACL user `admin` and got its privileges. The
sibling SAN URI path already passed an explicit length to
`ACLGetUserByName()`. The CN path did not.

No explicit NUL check is needed. `ACL SETUSER` refuses a username
containing one, so comparing the full length is sufficient. Dropping the
buffer also removes the silent truncation of a CN longer than 255 bytes.

The CN is handed back whether or not it matches, so a failed
authentication now produces an `ACL LOG` entry and bumps
`acl_access_denied_tls_cert` instead of leaving no trace at the default
loglevel.

Affects 9.0 and 9.1, CN path only. The feature arrived in #1920.

Not fixed here: `X509_NAME_get_index_by_NID()` takes the first CN and
ignores the rest, so `CN=admin, CN=attacker` authenticates as `admin`.
Refusing that would break certificates that authenticate today and
contradicts `valkey.conf:275-277`, which documents first match wins for
URI mode. Its own PR.

The openssl CLI strips a NUL from a name, which is why #3078 could not
cover this when it added the URI path, so the fixture is issued with a
placeholder byte and re-signed. The new test fails on unstable and
passes with the fix. `unit/tls` and `unit/acl` pass under `--tls` and
`--tls-module`, and `unit/tls` is clean under `SANITIZER=address`.

Signed-off-by: Madelyn Olson <[email protected]>
Backport-Source-PR: 4577
@valkeyrie-ops valkeyrie-ops Bot moved this from To be backported to Done in Valkey 9.1 Aug 31, 2026
valkeyrie-ops Bot pushed a commit that referenced this pull request Aug 31, 2026
`tlsGetPeerUser()` derived the ACL username from the certificate CN with
`strlen()`, so an embedded NUL truncated the identity before the lookup.
A certificate whose CA vouched subject is `CN=admin\0attacker`
authenticated as the ACL user `admin` and got its privileges. The
sibling SAN URI path already passed an explicit length to
`ACLGetUserByName()`. The CN path did not.

No explicit NUL check is needed. `ACL SETUSER` refuses a username
containing one, so comparing the full length is sufficient. Dropping the
buffer also removes the silent truncation of a CN longer than 255 bytes.

The CN is handed back whether or not it matches, so a failed
authentication now produces an `ACL LOG` entry and bumps
`acl_access_denied_tls_cert` instead of leaving no trace at the default
loglevel.

Affects 9.0 and 9.1, CN path only. The feature arrived in #1920.

Not fixed here: `X509_NAME_get_index_by_NID()` takes the first CN and
ignores the rest, so `CN=admin, CN=attacker` authenticates as `admin`.
Refusing that would break certificates that authenticate today and
contradicts `valkey.conf:275-277`, which documents first match wins for
URI mode. Its own PR.

The openssl CLI strips a NUL from a name, which is why #3078 could not
cover this when it added the URI path, so the fixture is issued with a
placeholder byte and re-signed. The new test fails on unstable and
passes with the fix. `unit/tls` and `unit/acl` pass under `--tls` and
`--tls-module`, and `unit/tls` is clean under `SANITIZER=address`.

Signed-off-by: Madelyn Olson <[email protected]>
Backport-Source-PR: 4577
madolson added a commit that referenced this pull request Sep 1, 2026
`tlsGetPeerUser()` derived the ACL username from the certificate CN with
`strlen()`, so an embedded NUL truncated the identity before the lookup.
A certificate whose CA vouched subject is `CN=admin\0attacker`
authenticated as the ACL user `admin` and got its privileges. The
sibling SAN URI path already passed an explicit length to
`ACLGetUserByName()`. The CN path did not.

No explicit NUL check is needed. `ACL SETUSER` refuses a username
containing one, so comparing the full length is sufficient. Dropping the
buffer also removes the silent truncation of a CN longer than 255 bytes.

The CN is handed back whether or not it matches, so a failed
authentication now produces an `ACL LOG` entry and bumps
`acl_access_denied_tls_cert` instead of leaving no trace at the default
loglevel.

Affects 9.0 and 9.1, CN path only. The feature arrived in #1920.

Not fixed here: `X509_NAME_get_index_by_NID()` takes the first CN and
ignores the rest, so `CN=admin, CN=attacker` authenticates as `admin`.
Refusing that would break certificates that authenticate today and
contradicts `valkey.conf:275-277`, which documents first match wins for
URI mode. Its own PR.

The openssl CLI strips a NUL from a name, which is why #3078 could not
cover this when it added the URI path, so the fixture is issued with a
placeholder byte and re-signed. The new test fails on unstable and
passes with the fix. `unit/tls` and `unit/acl` pass under `--tls` and
`--tls-module`, and `unit/tls` is clean under `SANITIZER=address`.

Signed-off-by: Madelyn Olson <[email protected]>
Backport-Source-PR: 4577
@valkeyrie-ops valkeyrie-ops Bot moved this from To be backported to Done in Valkey 9.0 Sep 1, 2026
zuiderkwast pushed a commit to tartelettie/valkey that referenced this pull request Sep 15, 2026
`tlsGetPeerUser()` derived the ACL username from the certificate CN with
`strlen()`, so an embedded NUL truncated the identity before the lookup.
A certificate whose CA vouched subject is `CN=admin\0attacker`
authenticated as the ACL user `admin` and got its privileges. The
sibling SAN URI path already passed an explicit length to
`ACLGetUserByName()`. The CN path did not.

No explicit NUL check is needed. `ACL SETUSER` refuses a username
containing one, so comparing the full length is sufficient. Dropping the
buffer also removes the silent truncation of a CN longer than 255 bytes.

The CN is handed back whether or not it matches, so a failed
authentication now produces an `ACL LOG` entry and bumps
`acl_access_denied_tls_cert` instead of leaving no trace at the default
loglevel.

Affects 9.0 and 9.1, CN path only. The feature arrived in valkey-io#1920.

Not fixed here: `X509_NAME_get_index_by_NID()` takes the first CN and
ignores the rest, so `CN=admin, CN=attacker` authenticates as `admin`.
Refusing that would break certificates that authenticate today and
contradicts `valkey.conf:275-277`, which documents first match wins for
URI mode. Its own PR.

The openssl CLI strips a NUL from a name, which is why valkey-io#3078 could not
cover this when it added the URI path, so the fixture is issued with a
placeholder byte and re-signed. The new test fails on unstable and
passes with the fix. `unit/tls` and `unit/acl` pass under `--tls` and
`--tls-module`, and `unit/tls` is clean under `SANITIZER=address`.

Signed-off-by: Madelyn Olson <[email protected]>
Superkooka added a commit to Superkooka/infra-gitops that referenced this pull request Sep 19, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [valkey/valkey](https://github.com/valkey-io/valkey) | patch | `9.1.1` → `9.1.2` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/6) for more information.

---

### Release Notes

<details>
<summary>valkey-io/valkey (valkey/valkey)</summary>

### [`v9.1.2`](https://github.com/valkey-io/valkey/releases/tag/9.1.2)

[Compare Source](valkey-io/valkey@9.1.1...9.1.2)

## Valkey 9.1.2  -  Released Mon 31 August 2026

Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible.

##### Security Fixes

- GHSA-jcj7-v34w-v9vv: Fix a use-after-free in RDMA connection handling that could allow an authenticated client to crash the server using CLIENT KILL. Only affects servers built with USE\_RDMA and configured with an RDMA listener ([#&#8203;4534](valkey-io/valkey#4534))
- GHSA-fq2f-crmw-q97r: Fix an unauthenticated use-after-free of the Lua interpreter state, caused by a process-global script debugger command table that cached a raw pointer to a freed interpreter and was never invalidated ([#&#8203;4574](valkey-io/valkey#4574))

##### Bug Fixes

- Fix a double-free crash when a module timer callback stops its own timer with `ValkeyModule_StopTimer` by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4211](valkey-io/valkey#4211))
- Fix torn RESP3 push frames when a client publishes to a channel it is also subscribed to, which could desync client libraries by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4253](valkey-io/valkey#4253))
- Listpacks are now always validated on RDB load and RESTORE, preventing deferred assertion crashes; `sanitize-dump-payload` and its ACL flags become no-ops by [@&#8203;jjuleslasarte](https://github.com/jjuleslasarte) ([#&#8203;3721](valkey-io/valkey#3721))
- Fix crashes, hangs, and CPU spinning when the RDMA transport is used together with I/O threads by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;3611](valkey-io/valkey#3611))
- RESET now clears the `CLIENT IMPORT-SOURCE` flag, so reused pooled connections return to normal expiration semantics by [@&#8203;tjade273](https://github.com/tjade273) ([#&#8203;3973](valkey-io/valkey#3973))
- Truncate a partially written MULTI block from the AOF on short read, preventing loss of newer writes after a later restart by [@&#8203;chzhoo](https://github.com/chzhoo) ([#&#8203;4342](valkey-io/valkey#4342))
- Fix an ACL bypass where duplicate STORE/STOREDIST options let GEORADIUS write or delete keys outside the user's permitted patterns by [@&#8203;tjade273](https://github.com/tjade273) ([#&#8203;3971](valkey-io/valkey#3971))
- Fix command log redaction leaking between commands in a MULTI transaction and missing for commands executed from scripts by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;4323](valkey-io/valkey#4323))
- Fix a use-after-free crash when a module's cluster message type is received after the module is unloaded by [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4360](valkey-io/valkey#4360))
- Fix out-of-bounds access for cluster module message type 255, which is now a valid, dispatchable message type by [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4410](valkey-io/valkey#4410))
- AOF loading no longer performs ACL checks on replayed commands, preventing silent data loss when the default user is disabled by [@&#8203;lukepalmer](https://github.com/lukepalmer) ([#&#8203;3984](valkey-io/valkey#3984))
- Fix a client memory accounting leak on replicas that inflated the `mem_clients_normal` INFO field after primary disconnections by [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4395](valkey-io/valkey#4395))
- Fix a permanent client deadlock when a blocking command like BLPOP is followed by a partially delivered pipelined command by [@&#8203;foobar](https://github.com/foobar) ([#&#8203;4531](valkey-io/valkey#4531))
- HGETEX now requires write permission on the key, closing an ACL gap that let read-only users change field TTLs or delete fields by [@&#8203;ranshid](https://github.com/ranshid) ([#&#8203;4576](valkey-io/valkey#4576))
- Compare the whole TLS certificate CN during authentication, so an embedded NUL can no longer impersonate another ACL user by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;4577](valkey-io/valkey#4577))
- Fix atomic slot migration failures with I/O threads by not offloading the export job's writes while snapshotting by [@&#8203;satheeshaGowda](https://github.com/satheeshaGowda) ([#&#8203;4104](valkey-io/valkey#4104))
- Reject invalid slot import ranges when loading an RDB, so corrupted files can no longer create bad migration jobs by [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4229](valkey-io/valkey#4229))
- Reject RDB slot import records with an invalid job name length, preventing an out-of-bounds read at startup by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4210](valkey-io/valkey#4210))
- MOVE and COPY now check ACL access to the current database, so users can no longer exfiltrate keys from an unauthorized DB by [@&#8203;cjx-zar](https://github.com/cjx-zar) ([#&#8203;4155](valkey-io/valkey#4155))
- Fix a crash on COPY with a trailing DB option during slot migration, and block cross-DB COPY regardless of option order by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;4301](valkey-io/valkey#4301))
- Fix a server panic when pipelined commands with invalid arity reach the key prefetcher with I/O threads enabled by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;4302](valkey-io/valkey#4302))
- HPERSIST, HTTL, HPTTL, HEXPIRETIME, and HPEXPIRETIME now return a syntax error when the FIELDS keyword is missing by [@&#8203;cjx-zar](https://github.com/cjx-zar) ([#&#8203;4300](valkey-io/valkey#4300))
- Fix a race between TLS I/O-thread writes and reads that could leave slot migration export jobs stuck until timeout by [@&#8203;jjuleslasarte](https://github.com/jjuleslasarte) ([#&#8203;4320](valkey-io/valkey#4320))
- Fix a signed overflow that let very large hash field expiration times (e.g. via HPEXPIREAT) crash the server by [@&#8203;ranshid](https://github.com/ranshid) ([#&#8203;4312](valkey-io/valkey#4312))
- Fix a frozen monotonic clock on hosts with unsynchronized TSC that stopped background tasks and key expiration by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4346](valkey-io/valkey#4346))
- Fix a stack overflow crash when retrying a failed TLS write with a large reply by [@&#8203;murphyjacob4](https://github.com/murphyjacob4) ([#&#8203;4307](valkey-io/valkey#4307))
- Fix the `--check-system` clocksource check to skip hosts using a hardware clock and suggest only actually available clocksources by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4272](valkey-io/valkey#4272))
- Fix an assertion failure with I/O threads when a blocked client's pending command was processed again before unblocking by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4376](valkey-io/valkey#4376))
- Sentinel no longer loads the built-in Lua scripting engine, removing a spurious warning at startup by [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4327](valkey-io/valkey#4327))
- Validate channel, message, and module payload lengths in cluster bus packets, preventing forged packets from crashing nodes by [@&#8203;tjade273](https://github.com/tjade273) ([#&#8203;3972](valkey-io/valkey#3972))
- Harden stream validation on RDB load and RESTORE so crafted payloads can no longer crash the server on later commands by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;3922](valkey-io/valkey#3922))
- Reject stream payloads with mismatched live/deleted record counts, preventing XDEL from destroying unaccounted entries by [@&#8203;roshkhatri](https://github.com/roshkhatri) ([#&#8203;4381](valkey-io/valkey#4381))
- Skip unnecessary post-read processing with I/O threads on socket and TLS connections, restoring small-payload throughput by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4401](valkey-io/valkey#4401))
- Fix a use-after-free crash when serving clients blocked on the same key if one client is freed during processing by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4212](valkey-io/valkey#4212))
- Avoid an unneeded client lookup per write completion with I/O threads on socket and TLS connections, improving pipelined throughput by [@&#8203;dgershko](https://github.com/dgershko) ([#&#8203;4440](valkey-io/valkey#4440))
- Fix CLUSTER SLOT-STATS ORDERBY returning wrong ordering when slot counters differ by more than 2^31 by [@&#8203;jzy1688](https://github.com/jzy1688) ([#&#8203;4459](valkey-io/valkey#4459))
- Fix slot migration failures with I/O threads and TLS by keeping the export job's ACK reads on the main thread while snapshotting by [@&#8203;satheeshaGowda](https://github.com/satheeshaGowda) ([#&#8203;4559](valkey-io/valkey#4559))

**Full Changelog**: <valkey-io/valkey@9.1.1...9.1.2>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNC4zIiwidXBkYXRlZEluVmVyIjoiNDQuMTQuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://forge.superkooka.com/Superkooka/infra-gitops/pulls/31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes This issue should get a line item in the release notes

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants