-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Miss a check on length in Babel #10487
Comments
Awesome! Since you already have a fix, would you be willing to submit the patch as a PR? That would be super helpful. |
The body length of a packet should satisfy the condition: packetlen >= bodylen + 4. Otherwise, heap overflows may happen. Signed-off-by: whichbug <whichbug@github.com>
Thanks for your reply. I have created the pull request. |
The body length of a packet should satisfy the condition: packetlen >= bodylen + 4. Otherwise, heap overflows may happen. Signed-off-by: whichbug <whichbug@github.com>
The body length of a packet should satisfy the condition: packetlen >= bodylen + 4. Otherwise, heap overflows may happen. Signed-off-by: whichbug <whichbug@github.com>
The body length of a packet should satisfy the condition: packetlen >= bodylen + 4. Otherwise, heap overflows may happen. Signed-off-by: whichbug <whichbug@github.com>
This has been assigned CVE-2022-26127 with a severity score of 7.8. No assessment of exploitability has been made. Please see my comment here |
The body length of a packet should satisfy the condition: packetlen >= bodylen + 4. Otherwise, heap overflows may happen. Signed-off-by: whichbug <whichbug@github.com>
The body length of a packet should satisfy the condition: packetlen >= bodylen + 4. Otherwise, heap overflows may happen. Signed-off-by: whichbug <whichbug@github.com>
The code below misses a check on the relationship between
packetlen
andbodylen
before Line 298, which may lead to buffer overflows when accessing the memory at Line 300 and Line 309.frr/babeld/message.c
Lines 289 to 309 in 3d1ff4b
To fix, we may put the code below before the while loop:
The output of the address sanitizer:
The text was updated successfully, but these errors were encountered: