Skip to content

Merging internal commits for release/9.0 - #137302

Open
dotnet-release-bot[bot] wants to merge 13 commits into
release/9.0from
internal-merge-9.0-2026-11-10-224801-9d283039-7e1a9bdc
Open

dotnet-release-bot[bot] wants to merge 13 commits into
release/9.0from
internal-merge-9.0-2026-11-10-224801-9d283039-7e1a9bdc

Conversation

@dotnet-release-bot

Copy link
Copy Markdown

Merges internal commit 9d2830390d962a3d36a049497d764036c6786837 into release/9.0.

Mirroring and others added 12 commits October 9, 2026 16:51
This is a backport of https://dev.azure.com/dnceng/internal/_git/dotnet-runtime/pullrequest/65154. When a SocketAsyncEventArgs is reused with a different AddressFamily, we may need to update the underlying native address buffer.
…equest reads

- Enforce the 64 KiB request-header limit cumulatively across the whole request line + headers, not per individual header.
- Replace the recursive APM BeginRead callback chain with a trampoline that checks CompletedSynchronously to loop in place instead of recursing.

----
#### AI description  (iteration 1)
#### PR Classification
Security hardening and bug fix to prevent denial-of-service attacks by enforcing request header size limits in the managed HttpListener implementation.

#### PR Summary
Refactors the HttpConnection request reading mechanism from callback-based to async/await pattern and adds proper enforcement of maximum request header size limits to prevent memory exhaustion attacks.

- `HttpConnection.cs`: Replaced `OnRead`/`OnReadInternal` callback methods with async `ReadRequestAsync` method, implementing a continuous read loop with better error handling
- `HttpConnection.cs`: Introduced `MaxRequestHeaderSize` constant (32768 bytes) and added validation to reject requests exceeding this limit with HTTP 400 errors
- `HttpConnection.cs`: Added `_requestHeaderBytesRead` field to track cumulative header bytes across fragments and validate against the size limit during header line processing
- `InvalidClientRequestTests.cs`: Added test `GetContext_FragmentedHeaderLargerThanLimit_DoesNotGetContext` to verify fragmented oversized headers are properly rejected
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
…515.1

Update Microsoft.DiaSymReader.Native to 18.9.1-beta1.26515.1
Update MsQuic to 2.5.12-ci.161034681

----
#### AI description  (iteration 1)
#### PR Classification
Dependency version update.

#### PR Summary
Updates the MsQuic dependency version used in the QUIC implementation.
- `eng/Versions.props`: Bumped `MicrosoftNativeQuicMsQuicSchannelVersion` from `2.5.12` to `2.5.12-ci.161034681`.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
#### AI description  (iteration 1)
#### PR Classification
Dependency update addressing a security vulnerability (CVE-2026-111497) in the Brotli library.

#### PR Summary
Updates the vendored Brotli library from version 1.1.0 to 1.1.1 to fix a security vulnerability allowing out-of-bounds write/remote code execution, along with associated decoder error-handling improvements.
- `dec/decode.c`: Refactored block-type switch functions to return `BrotliDecoderErrorCode` instead of `BROTLI_BOOL`, adding a new `BROTLI_SAFE_WITH_STATUS` macro for improved error propagation and a new bounds check for `meta_block_remaining_len`.
- `include/brotli/decode.h`: Added new `BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH` error code (previously reserved value -17).
- `common/version.h` and `brotli-version.txt`: Bumped version to 1.1.1 and ABI revision.
- `cgmanifest.json`: Updated commit hash reference to the new Brotli version.
- Added `CHANGELOG.md` and `.bazelignore` files to the vendored Brotli source.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
…-merge-9.0-2026-11-10-224801-9d283039-7e1a9bdc
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 11, 2026
@ViveliDuCh ViveliDuCh added the Servicing-approved Approved for servicing release label Nov 11, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@ViveliDuCh

Copy link
Copy Markdown
Member

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Comment thread eng/Versions.props Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net community-contribution Indicates that the PR has been added by a community member Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants