Repository navigation
doc: record open ephemeral port allocation issues - #195
Merged
Merged
Conversation
TCP source ports are a sequential counter starting at 49152 every boot (RFC 6056 recommends obfuscation; DNS already randomises). Also records a dead exhaustion check, local-port-only collision check, a TIME_WAIT comment that overstates protection (early eviction frees ports before 30 s, which randomisation would expose), and allocation running outside TCP_LOCK on kernel-shell callers. No code change; fix deferred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
doc/EPHEMERAL_PORT_ISSUES.md, a read-only review of ephemeral port allocation. No code changes; the fix is deferred.tcp_allocate_port()starts at 49152 on every boot and counts up. DNS already randomises from the CSPRNG.tcp.c:455can never trigger.tcp_connectcallers allocate a port outsideTCP_LOCK.None of these is exploitable on its own: the stack is client-only and the ISN is keyed (RFC 6528). The doc includes a verification plan for the eventual fix.
🤖 Generated with Claude Code