Skip to content

Fix: prevent goroutine leak in avatar fetch (CVE-2026-21720)#113

Open
credativ-marco wants to merge 1 commit intomainfrom
work/CVE-2026-21720
Open

Fix: prevent goroutine leak in avatar fetch (CVE-2026-21720)#113
credativ-marco wants to merge 1 commit intomainfrom
work/CVE-2026-21720

Conversation

@credativ-marco
Copy link
Copy Markdown
Collaborator

No description provided.

@credativ-marco
Copy link
Copy Markdown
Collaborator Author

Motivation/some more explanation:
The idea is, to put the whole connection into a context. Previously, if a user disconnected, e.g. by closing the browser or intentionally for an attack, while their profile picture was being fetched, the server's background processes would hang indefinitely and could exhausting the server's RAM. By introducing the context, the patch should ensure that the moment a connection is being dropped, all associated background tasks and external network requests are immediately aborted and the memory is cleanly released.

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.

1 participant