Skip to content

pppoe: fix session over-read in DecodePPPOESession - #16083

Closed
victorjulien wants to merge 1 commit into
OISF:mainfrom
victorjulien:pppoe-8856/v1
Closed

pppoe: fix session over-read in DecodePPPOESession#16083
victorjulien wants to merge 1 commit into
OISF:mainfrom
victorjulien:pppoe-8856/v1

Conversation

@victorjulien

Copy link
Copy Markdown
Member

Prevent out-of-bounds read of protocol field when PPPoE session header is exactly PPPOE_SESSION_HEADER_MIN_LEN (7) bytes. Inspect first protocol octet only to decide single vs double octet form, and read second octet only after len >= 8 verification.

Ticket: #8856.

https://redmine.openinfosecfoundation.org/issues/8856

SV_BRANCH=OISF/suricata-verify#3302

@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33245

Prevent out-of-bounds read of protocol field when PPPoE session header is
exactly PPPOE_SESSION_HEADER_MIN_LEN (7) bytes. Inspect first protocol octet
only to decide single vs double octet form, and read second octet only after
len >= 8 verification.

Ticket: OISF#8856.
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.02%. Comparing base (398687d) to head (44546f3).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16083      +/-   ##
==========================================
- Coverage   83.04%   83.02%   -0.02%     
==========================================
  Files        1004     1004              
  Lines      277359   277362       +3     
==========================================
- Hits       230322   230279      -43     
- Misses      47037    47083      +46     
Flag Coverage Δ
fuzzcorpus 61.53% <100.00%> (+0.01%) ⬆️
livemode 18.47% <0.00%> (+0.05%) ⬆️
netns 22.83% <0.00%> (-0.07%) ⬇️
pcap 45.35% <100.00%> (-0.06%) ⬇️
suricata-verify 67.08% <100.00%> (-0.08%) ⬇️
unittests 58.52% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33249

@victorjulien
victorjulien marked this pull request as ready for review August 23, 2026 19:33
@victorjulien

Copy link
Copy Markdown
Member Author

Replaced by #16102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants