Skip to content

Harden managed HttpListener request reads - #137267

Merged
rbhanda merged 2 commits into
dotnet:mainfrom
rbhanda:security/nov2026-httplistener-hardening
Nov 11, 2026
Merged

rbhanda merged 2 commits into
dotnet:mainfrom
rbhanda:security/nov2026-httplistener-hardening

Conversation

@rbhanda

@rbhanda rbhanda commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Harden the managed Unix HttpListener request path for CVE-2026-109475:

  • process synchronous request and chunk reads iteratively instead of recursively;
  • enforce a cumulative 64 KiB request-header limit across fragmented reads;
  • add focused regressions for many small chunks and fragmented oversized headers.

The public advisory describes a network-reachable denial of service caused by a stack-based buffer overflow.

Validation

  • git diff --check passed.
  • The required clean libraries baseline was attempted with .\build.cmd clr+libs -rc release, but the repository build stopped because Windows long-path support is disabled on this machine.
  • Component tests were not run because the required baseline did not complete. Normal PR CI is required before merge.

Public advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-109475

Note

This pull request description was generated with GitHub Copilot.

Avoid recursive request processing for synchronous completions and enforce a cumulative request-header limit.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: fdac132c-0926-4fda-8c97-88ae5b59b9fd
@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.

@rbhanda
rbhanda marked this pull request as ready for review November 10, 2026 22:33
@rbhanda
rbhanda enabled auto-merge (squash) November 10, 2026 23:18
@rbhanda
rbhanda merged commit 505b78b into dotnet:main Nov 11, 2026
87 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants