Incomplete fix for CVE-2026-48748: abandoned HTTP/3 QPACK streams keep blocked-stream slots
Description
The published advisory GHSA-4grm-h2qv-h6w6 / CVE-2026-48748 fixed a QPACK blocked-stream resource issue by changing Netty's blocked-stream limit check and by releasing blocked-stream slots when dynamic-table inserts unblock queued header blocks.
The fix does not release blocked-stream slots when the stream is abandoned before the required dynamic-table insert arrives. QpackDecoder.streamAbandoned(...) writes the QPACK stream-cancellation instruction to the decoder stream, but it does not remove the abandoned stream's pending callback from blockedStreams or decrement blockedStreamsCount.
A peer can therefore fill the configured QPACK blocked-stream budget with streams that become blocked, abandon those streams, and then cause later valid blocked streams on the same HTTP/3 connection to fail with QPACK - exceeded max blocked streams.
Technical Details
When a header block depends on a dynamic-table insert that has not arrived, QpackDecoder.decode(...) increments the blocked-stream counter and stores the read-resumption callback under the required insert count:
if (shouldWaitForDynamicTableUpdates(requiredInsertCount)) {
blockedStreamsCount++;
blockedStreams.computeIfAbsent(requiredInsertCount, __ -> new ArrayList<>(2)).add(whenDecoded);
in.readerIndex(initialReaderIdx);
return false;
}The public fix releases slots when inserts arrive:
final List<Runnable> runnables = this.blockedStreams.remove(insertCount);
if (runnables != null) {
blockedStreamsCount -= runnables.size();
...
}However, the stream-abandonment path only sends a QPACK cancellation instruction:
void streamAbandoned(QuicStreamChannel qpackDecoderStream, long streamId) {
if (maxTableCapacity == 0) {
return;
}
final ByteBuf cancel = qpackDecoderStream.alloc().buffer(8);
encodePrefixedInteger(cancel, (byte) 0b0100_0000, 6, streamId);
closeOnFailure(qpackDecoderStream.writeAndFlush(cancel));
}It does not remove the callback associated with that stream, and blockedStreams is keyed only by required insert count, not stream ID. The counter stays consumed until an unrelated encoder insert reaches the same required insert count.
In the normal Netty HTTP/3 pipeline, the stored callback is a ReadResumptionListener associated with the stream codec. Abandonment is triggered from Http3RequestStreamValidationUtils.sendStreamAbandonedIfRequired(...) when a non-terminated stream closes while the dynamic table is enabled.
Impact
A remote HTTP/3 peer can consume the configured QPACK blocked-stream budget for a connection using streams that it then abandons. Later header blocks that legitimately need to wait for dynamic-table updates fail with a QPACK decompression error on that connection.
This is availability-only and connection-scoped. It is narrower than the parent high-severity advisory because it is bounded by the configured blocked-stream limit rather than creating an unbounded number of blocked streams. The recommended severity is therefore Medium.
Suggested Fix
Track blocked callbacks by stream ID as well as required insert count, or store a small blocked-stream record containing both values. On streamAbandoned(...):
- remove the abandoned stream's callback from the relevant blocked list;
- decrement
blockedStreamsCount; - preserve the existing stream-cancellation instruction on the decoder stream;
- ensure later encoder inserts do not run callbacks for already-abandoned streams;
- add regression tests for both release paths: encoder-insert unblocking and stream abandonment.
Affected Package/Versions
io.netty:netty-codec-http3
Confirmed affected:
- current
4.2branch at7bae566a93e69409697fe57fa807910ba5c9720e 4.2.15.Finalata41f7b289ce1d697c50846f3ade3983e22b2ed40
Suggested affected range:
>= 4.2.15.Final
codec-http3 is not present in the checked 4.1.135.Final release tree, so this report is limited to the 4.2 HTTP/3 artifact. Earlier 4.2 releases remain covered by the published parent advisory GHSA-4grm-h2qv-h6w6 / CVE-2026-48748.
References
- Netty public advisory
GHSA-4grm-h2qv-h6w6/CVE-2026-48748: github.com/netty/ netty/ security/ advisories/ GHSA-4grm-h2qv-h6w6 - GitHub Advisory Database entry: github.com/
advisories/ GHSA-4grm-h2qv-h6w6 - RFC 9204, QPACK security considerations and blocked streams: rfc-editor.org/
rfc/ rfc9204.html - Netty 4.2.15.Final release note: netty.io/
news/ 2026/ 06/ 05/ 4-2-15-Final.html - Netty security policy: github.com/
netty/ netty/ security/ policy
CWE and CVSS
Primary CWE: CWE-400 (Uncontrolled Resource Consumption). Secondary CWE: CWE-770 (Allocation of Resources Without Limits or Throttling).
Suggested CVSS v3.1:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LSuggested severity: Medium, score 5.3.
Duplicate Boundary
This is an incomplete-fix variant of GHSA-4grm-h2qv-h6w6 / CVE-2026-48748, not a duplicate of the original vulnerable range.
The parent advisory lists 4.2.15.Final as the patched version. This PoV reproduces on 4.2.15.Final and current 4.2 head. The original public fix releases blocked-stream slots after dynamic-table inserts, but not after stream abandonment.
Live advisory checks found the published QPACK blocked-stream advisory and other HTTP/3 advisories, but no public or private advisory for abandoned blocked streams retaining QPACK slots in fixed releases.
Local PoV
PoV file:
QpackDecoderTest.java
The PoV adds one test method to the existing QPACK decoder tests:
blockedStreamsCountReleasedAfterStreamAbandoned()Run from a Netty checkout:
./mvnw -q -pl codec-http3 -am \
-Dtest=QpackDecoderTest#blockedStreamsCountReleasedAfterStreamAbandoned \
-Dsurefire.failIfNoSpecifiedTests=false \
-DskipNativeTests -DskipAutobahnTests -Dmaven.antrun.skip=true testTest flow:
- Configure
maxBlockedStreams = 2. - Decode two header blocks that require insert count
1, so both streams become blocked. - Call
streamAbandoned(...)for both blocked stream IDs. - Decode one more header block that requires insert count
1.
Expected secure behavior: abandoned blocked streams free their slots, so the new stream can become blocked.
Observed behavior:
QpackException: QPACK - exceeded max blocked streamsObserved on current 4.2 head and 4.2.15.Final.
Why This Is Not Intended Behavior
RFC 9204 defines SETTINGS_QPACK_BLOCKED_STREAMS as the mechanism by which a decoder limits state memory used for blocked streams. It also defines stream cancellation for streams that are abandoned.
The public Netty fix for CVE-2026-48748 already establishes the intended local invariant: once a blocked stream no longer needs to be tracked, the decoder removes the callback and decrements blockedStreamsCount. That happens for encoder-insert unblocking, but not for stream abandonment.
An abandoned stream should not permanently consume one of the decoder's advertised blocked-stream slots on the connection.