Skip to content

vsock partial-frame DoS: 16 unauthenticated connections exhaust the pool #150

Closed

Description

@vladimirrott

Red-team finding F6.4 (validated, deferred). framing.rs pre-allocates the full claimed body (vec![0u8; len], up to 4 MiB) before reading it, and a permit is consumed before token auth. 16 unauth connections each sending a 4 MiB header and withholding the body hold the whole MAX_CONNECTIONS pool (~64 MiB) and can sustain the outage across the 10s auth deadline. Proposed fix: stream the body / cap the pre-auth allocation, and/or a separate smaller quota for unauthenticated connections. Not yet fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions