Skip to content

Fix unbounded memory usage during async http get requests in rust-igd#1732

Open
tomaszklak wants to merge 4 commits intoLLT-6230-upnp-client-dosfrom
LLT-6230-upnp-client-memory-usage
Open

Fix unbounded memory usage during async http get requests in rust-igd#1732
tomaszklak wants to merge 4 commits intoLLT-6230-upnp-client-dosfrom
LLT-6230-upnp-client-memory-usage

Conversation

@tomaszklak
Copy link
Copy Markdown
Contributor

@tomaszklak tomaszklak commented Apr 2, 2026

Problem

Before this change, it was possible for the malicious upnp gateway to trigger arbitrary large memory allocations on the client.

Solution

This change caps the memory usage for both the HTTP headers and body.

☑️ Definition of Done checklist

  • Commit history is clean (requirements)
  • README.md is updated
  • Functionality is covered by unit or integration tests

Before the fix, the requests for igd gateway would effectively run in a
tight loop without any delay. This causes very high CPU usage on client
machine and can trigger DoS.
@tomaszklak tomaszklak requested a review from a team as a code owner April 2, 2026 13:57
Copy link
Copy Markdown
Contributor

@sfraczek sfraczek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Contributor

@mathiaspeters mathiaspeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@tomaszklak tomaszklak force-pushed the LLT-6230-upnp-client-memory-usage branch from 7f9a8ef to 1b223ca Compare April 7, 2026 09:15
@tomaszklak tomaszklak force-pushed the LLT-6230-upnp-client-dos branch from 9041975 to bb85939 Compare April 7, 2026 11:30
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.

3 participants