inet6: fix IndexError when dissecting IPv6 with truncated nh=43 payload - #5214
Open
jimi18102010-commits wants to merge 1 commit into
Open
jimi18102010-commits wants to merge 1 commit into
jimi18102010-commits wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5214 +/- ##
==========================================
- Coverage 81.14% 81.14% -0.01%
==========================================
Files 393 393
Lines 98316 98316
==========================================
- Hits 79783 79776 -7
- Misses 18533 18540 +7
🚀 New features to boost your workflow:
|
jimi18102010-commits
force-pushed
the
fix-ipv6-nh43-indexerror
branch
from
October 1, 2026 13:57
4eba9c7 to
0e15b08
Compare
When self.nh == 43, default_payload_class accessed p[2] without verifying that len(p) > 2, causing an IndexError for payloads shorter than 3 bytes. Add length check and regression test. Closes secdev#5206 Reopens secdev#5207 AI-Assisted: no
jimi18102010-commits
force-pushed
the
fix-ipv6-nh43-indexerror
branch
from
October 1, 2026 22:07
0e15b08 to
ded9b19
Compare
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.
Reopens #5207 (reverted in #5210).
When
self.nh == 43,default_payload_classaccessedp[2]without verifyinglen(p) > 2, causing anIndexErrorfor payloads shorter than 3 bytes.Tests on
masterare now passing, and the commit includes the requiredAI-Assistedtrailer.Closes #5206