Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updates SizeofVfVlanInfo to address #1003 #1004

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

mega-alex
Copy link
Contributor

@mega-alex mega-alex commented Aug 6, 2024

This PR updates the SizeOfVlanInfo to be 16 rather than 14 to pad the attribute to be a multiple of 4 bytes, which is required by netlink when using LinkSetVfVlanQosProto(). This appears to have always been an issue, but was not correctly caught by netlink until this CVE was addressed, which explains why older kernels don't have an issue with this.

Closes #1003

Copy link
Contributor

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@aboch
Copy link
Collaborator

aboch commented Aug 6, 2024

LGTM

@aboch aboch merged commit 7a4f10d into vishvananda:main Aug 6, 2024
2 checks passed
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.

netlink.LinkSetVfVlanQosProto fails with invalid argument but equivalent ip link command succeeds
3 participants