GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — Treat DATA frames on reserved HTTP/2 streams as a connection error by yawkat · Pull Request #17868 · netty/netty Conversation
Contributor
Motivation: Modification:
Result: Discovered by fuzzing. 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: A DATA frame on a stream in the RESERVED_REMOTE state (on a client that received a PUSH_PROMISE) or RESERVED_LOCAL state (on a server that sent one) caused an UnsupportedOperationException from DefaultHttp2LocalFlowController. Reserved streams are not active yet, so they still use the reduced flow control state, but receiveFlowControlledFrame and consumeBytes only skipped stream-level flow control for closed streams. DefaultHttp2ConnectionDecoder applies flow control before throwing the error for the unexpected stream state, so the connection was closed with an INTERNAL_ERROR GOAWAY and the UnsupportedOperationException was passed to exceptionCaught. Even without that, the decoder would only have raised a stream error, while RFC 9113, section 5.1 requires a connection error of type PROTOCOL_ERROR for DATA frames on idle or reserved streams. Modification: - Only apply stream-level flow control in DefaultHttp2LocalFlowController for active (OPEN or HALF_CLOSED_*) streams. For other streams the bytes are consumed for the connection window right away, as for closed streams, and returning them later is ignored. - Raise a connection error of type PROTOCOL_ERROR in DefaultHttp2ConnectionDecoder for DATA frames on IDLE or RESERVED_* streams. - Add tests. Result: DATA frames on reserved streams cause a PROTOCOL_ERROR GOAWAY, and the connection flow control window stays correct. Discovered by fuzzing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
yawkat
marked this pull request as ready for review
yawkat
added a commit
to micronaut-projects/micronaut-fuzzing
that referenced
this pull request
OSS-Fuzz found two client-side Netty bugs that a server can trigger with PUSH_PROMISE frames: an invalid content-length in the promised request throws an IllegalArgumentException instead of a stream error (netty/netty#17867), and a DATA frame on the reserved promised stream throws an UnsupportedOperationException from the local flow controller (netty/netty#17868). Ignore exactly these two cases, matched by the throwing method and its caller, until the fixes are released. Add a smoke test with both inputs, and drop the checked exception from fuzzerTestOneInput. Co-authored-by: Claude Opus 5.5 <[email protected]>
violetagg
approved these changes
…oderTest Motivation: RFC 9113, section 5.1 requires a connection error of type PROTOCOL_ERROR for DATA frames on streams in both the reserved (local) and reserved (remote) state, but the decoder test only covered RESERVED_REMOTE. Modification: Run the DATA-on-reserved-stream test for both RESERVED_REMOTE and RESERVED_LOCAL. Result: Both reserved states are covered by a test.
|
There was an error while loading. Please reload this page.
🚨 All tests passed but jobs failed 🚨Failed Jobs without Test Failures❌ Build PR / macos-aarch64-java11-boringssl build 🏷️ Commit: cd8b3f5 Rerun ControlsClick the checkbox to trigger a rerun:
Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Auto-port PR for 4.1: #17998 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Auto-port PR for 5.0: #17999 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ection error (#17999) Auto-port of #17868 to 5.0 Cherry-picked commit: 1bf1ac3 --- Motivation: A DATA frame on a stream in the RESERVED_REMOTE state (on a client that received a PUSH_PROMISE) or RESERVED_LOCAL state (on a server that sent one) caused an UnsupportedOperationException from DefaultHttp2LocalFlowController. Reserved streams are not active yet, so they still use the reduced flow control state, but receiveFlowControlledFrame and consumeBytes only skipped stream-level flow control for closed streams. DefaultHttp2ConnectionDecoder applies flow control before throwing the error for the unexpected stream state, so the connection was closed with an INTERNAL_ERROR GOAWAY and the UnsupportedOperationException was passed to exceptionCaught. Even without that, the decoder would only have raised a stream error, while RFC 9113, section 5.1 requires a connection error of type PROTOCOL_ERROR for DATA frames on idle or reserved streams. Modification: - Only apply stream-level flow control in DefaultHttp2LocalFlowController for active (OPEN or HALF_CLOSED_*) streams. For other streams the bytes are consumed for the connection window right away, as for closed streams, and returning them later is ignored. - Raise a connection error of type PROTOCOL_ERROR in DefaultHttp2ConnectionDecoder for DATA frames on IDLE or RESERVED_* streams. - Add tests. Result: DATA frames on reserved streams cause a PROTOCOL_ERROR GOAWAY, and the connection flow control window stays correct. Discovered by fuzzing. Co-authored-by: Jonas Konrad <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
…ection error (#17998) Auto-port of #17868 to 4.1 Cherry-picked commit: 1bf1ac3 --- Motivation: A DATA frame on a stream in the RESERVED_REMOTE state (on a client that received a PUSH_PROMISE) or RESERVED_LOCAL state (on a server that sent one) caused an UnsupportedOperationException from DefaultHttp2LocalFlowController. Reserved streams are not active yet, so they still use the reduced flow control state, but receiveFlowControlledFrame and consumeBytes only skipped stream-level flow control for closed streams. DefaultHttp2ConnectionDecoder applies flow control before throwing the error for the unexpected stream state, so the connection was closed with an INTERNAL_ERROR GOAWAY and the UnsupportedOperationException was passed to exceptionCaught. Even without that, the decoder would only have raised a stream error, while RFC 9113, section 5.1 requires a connection error of type PROTOCOL_ERROR for DATA frames on idle or reserved streams. Modification: - Only apply stream-level flow control in DefaultHttp2LocalFlowController for active (OPEN or HALF_CLOSED_*) streams. For other streams the bytes are consumed for the connection window right away, as for closed streams, and returning them later is ignored. - Raise a connection error of type PROTOCOL_ERROR in DefaultHttp2ConnectionDecoder for DATA frames on IDLE or RESERVED_* streams. - Add tests. Result: DATA frames on reserved streams cause a PROTOCOL_ERROR GOAWAY, and the connection flow control window stays correct. Discovered by fuzzing. Co-authored-by: Jonas Konrad <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
…ection error (netty#17998) Auto-port of netty#17868 to 4.1 Cherry-picked commit: 1bf1ac3 --- Motivation: A DATA frame on a stream in the RESERVED_REMOTE state (on a client that received a PUSH_PROMISE) or RESERVED_LOCAL state (on a server that sent one) caused an UnsupportedOperationException from DefaultHttp2LocalFlowController. Reserved streams are not active yet, so they still use the reduced flow control state, but receiveFlowControlledFrame and consumeBytes only skipped stream-level flow control for closed streams. DefaultHttp2ConnectionDecoder applies flow control before throwing the error for the unexpected stream state, so the connection was closed with an INTERNAL_ERROR GOAWAY and the UnsupportedOperationException was passed to exceptionCaught. Even without that, the decoder would only have raised a stream error, while RFC 9113, section 5.1 requires a connection error of type PROTOCOL_ERROR for DATA frames on idle or reserved streams. Modification: - Only apply stream-level flow control in DefaultHttp2LocalFlowController for active (OPEN or HALF_CLOSED_*) streams. For other streams the bytes are consumed for the connection window right away, as for closed streams, and returning them later is ignored. - Raise a connection error of type PROTOCOL_ERROR in DefaultHttp2ConnectionDecoder for DATA frames on IDLE or RESERVED_* streams. - Add tests. Result: DATA frames on reserved streams cause a PROTOCOL_ERROR GOAWAY, and the connection flow control window stays correct. Discovered by fuzzing. Co-authored-by: Jonas Konrad <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.