Skip to content

Raise TypeError when calc_tcp_md5_hash gets a non-TCP layer - #5231

Closed
Eryx-Z wants to merge 1 commit into
secdev:masterfrom
Eryx-Z:fix/tcp-md5-reject-non-tcp
Closed

Eryx-Z wants to merge 1 commit into
secdev:masterfrom
Eryx-Z:fix/tcp-md5-reject-non-tcp

Conversation

@Eryx-Z

@Eryx-Z Eryx-Z commented Oct 16, 2026 •

Copy link
Copy Markdown

Summary

Passing a UDP (or other non-TCP) layer to calc_tcp_md5_hash failed with an opaque index out of range after #5175. Reject non-TCP input with a clear TypeError.

Fixes #5229.

AI-Assisted: yes

Test plan

  • TCP layer still hashes successfully
  • UDP layer raises TypeError: calc_tcp_md5_hash expects a TCP layer, got UDP

Passing a UDP (or other) layer previously failed with an opaque
"index out of range" after the TCP MD5 option fix. Reject non-TCP
input with a clear TypeError.

Fixes secdev#5229.

AI-Assisted: no
@Eryx-Z

Eryx-Z commented Oct 17, 2026

Copy link
Copy Markdown
Author

Closing for now.

@Eryx-Z Eryx-Z closed this Oct 17, 2026
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.

inet: calc_tcp_md5_hash on a UDP layer now fails with "index out of range"

1 participant