Skip to content

[CP] Fix leak on ACK encryption-level mismatch in loss detection (#6232) - #6268

Merged
Gaurav Singh (gaurav2699) merged 1 commit into
release/2.5from
gaurasingh/cp_ack_level_leak_2_5_copilot
Aug 26, 2026
Merged

[CP] Fix leak on ACK encryption-level mismatch in loss detection (#6232)#6268
Gaurav Singh (gaurav2699) merged 1 commit into
release/2.5from
gaurasingh/cp_ack_level_leak_2_5_copilot

Conversation

@gaurav2699

@gaurav2699 Gaurav Singh (gaurav2699) commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Description

QuicLossDetectionProcessAckBlocks moves acknowledged packets out of the
SentPackets/LostPackets lists into a local AckedPackets list before
validating that each packet's encryption level matches the ACK frame's level.
On a mismatch it returned early without returning the already-unlinked packets
to the pool, leaking their metadata and the resources held by their frames.

Fixes: https://microsoft.visualstudio.com/OS/_workitems/edit/62826410

Testing

NA

Documentation

NA

`QuicLossDetectionProcessAckBlocks` moves acknowledged packets out of
the
`SentPackets`/`LostPackets` lists into a local `AckedPackets` list
*before*
validating that each packet's encryption level matches the ACK frame's
level.
On a mismatch it returned early without returning the already-unlinked
packets
to the pool, leaking their metadata and the resources held by their
frames.

Fixes: https://microsoft.visualstudio.com/OS/_workitems/edit/62826410

NA

NA

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0f374866-40d2-4c87-bd7d-2f5199ac33b3
@gaurav2699
Gaurav Singh (gaurav2699) requested a review from a team as a code owner August 26, 2026 19:39
Gaurav Singh (gaurav2699) added a commit that referenced this pull request Aug 26, 2026
…) (#6269)

## Description
`QuicLossDetectionProcessAckBlocks` moves acknowledged packets out of
the
`SentPackets`/`LostPackets` lists into a local `AckedPackets` list
*before*
validating that each packet's encryption level matches the ACK frame's
level.
On a mismatch it returned early without returning the already-unlinked
packets
to the pool, leaking their metadata and the resources held by their
frames.

Fixes: https://microsoft.visualstudio.com/OS/_workitems/edit/62826410

## Testing

NA
## Documentation

NA

<!-- Companion PR for release/2.5: #6268 -->

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0f374866-40d2-4c87-bd7d-2f5199ac33b3
@gaurav2699
Gaurav Singh (gaurav2699) merged commit f3a2629 into release/2.5 Aug 26, 2026
279 checks passed
@gaurav2699
Gaurav Singh (gaurav2699) deleted the gaurasingh/cp_ack_level_leak_2_5_copilot branch August 26, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants