Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

13r0ck
Copy link

@13r0ck 13r0ck commented Jan 17, 2023

…er bits

If the offset + length goes over the ethernet + vlan header, then the
length is adjusted to copy the bytes that are within the boundaries of
the vlan_ethhdr scratchpad area. The remaining bytes beyond ethernet +
vlan header are copied directly from the skbuff data area.

Fix incorrect arithmetic operator: subtract, not add, the size of the
vlan header in case of double-tagged packets to adjust the length
accordingly to address CVE-2023-0179.

Reported-by: Davide Ornaghi <[email protected]>
Fixes: f6ae9f1 ("netfilter: nft_payload: add C-VLAN support")
Signed-off-by: Pablo Neira Ayuso <[email protected]>
@13r0ck 13r0ck requested review from a team January 17, 2023 14:42
@13r0ck 13r0ck mentioned this pull request Jan 17, 2023
1 task
@13r0ck 13r0ck merged commit e15d5b5 into master Jan 17, 2023
@13r0ck 13r0ck deleted the cve-2023-0179 branch January 17, 2023 14:51
This was referenced Jan 17, 2023
@n3m0-22
Copy link

n3m0-22 commented Jan 17, 2023

Testing (not including 150 suspend/resume running now) has passed on lemp11,gaze15,Dev One.

testing- lemp11.txt
testing-gaze15.txt
testing-dev_one.txt

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.

4 participants