# JLSEC-2026-798: TLS 1.3 KeyUpdate handling can race concurrent writes

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-28T13:54:29.705Z
- Modified: 2026-07-28T14:00:05.195Z
- Also known as: ANT-2026-DEPR14J5

## Description

Reseau 1.1.0 through 1.3.1 process a peer-requested TLS 1.3
`KeyUpdate(update_requested)` response from the read path without acquiring the
connection's write lock. A connected peer can race that response against an
application task writing on the same connection.

### Impact

The two tasks can concurrently use and replace shared write-cipher state,
including the record sequence number, nonce and output buffers, key material,
and OpenSSL AEAD context. Depending on timing, this can cause AEAD nonce reuse,
corrupted or disclosed plaintext, use-after-free behavior in OpenSSL, or
process termination.

The attack requires TLS 1.3, concurrent reader and writer tasks, and winning a
race with an otherwise valid post-handshake KeyUpdate message.

### Technical details

Application writes hold `conn.write_lock`, but the vulnerable KeyUpdate handler
wrote its response and called `_tls13_advance_write_cipher!` while holding only
the read lock. The application writer and handler could therefore encrypt with
the same sequence number, resize a shared output buffer while another task held
its pointer across an I/O yield, or free and replace an EVP context still in
use by the writer.

The vulnerable native TLS implementation first shipped in Reseau 1.1.0.
Releases 1.0.x used the previous OpenSSL TLS engine and are not affected.

### Patches

Upgrade to Reseau 1.3.2 or later. The fix serializes both the KeyUpdate response
and write-cipher rotation under the same write lock used by application writes.

### Workarounds

Configuring connections to use TLS 1.2, or ensuring that no application writer
runs concurrently with the connection reader, avoids this particular race.
Upgrading is recommended because those restrictions can be difficult to
enforce for full-duplex protocols.

Reported to the JuliaLang security team through Anthropic's Coordinated
Vulnerability Disclosure program.

(As written by Julia Security Advisories.)

## Affected

- Reseau (Julia): from 1.1.0 before 1.3.2

## References

- <https://github.com/JuliaServices/Reseau.jl/commit/ea95f091baaf7386267fd633742768121dfe20ff> (web)
- <https://github.com/JuliaServices/Reseau.jl/pull/132> (web)
- <https://github.com/JuliaServices/Reseau.jl/releases/tag/v1.3.2> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-798](https://osv.dev/vulnerability/JLSEC-2026-798), CC-BY-4.0, modified 2026-07-28

---

Page: https://cve.day/JLSEC-2026-798 · Whole record: https://cve.day/JLSEC-2026-798.json · Rebuilt by cve.day 2026-11-25T22:56:26.241Z
