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

acpi/tables: verify MADT entry lengths #125

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

00xc
Copy link
Member

@00xc 00xc commented Oct 12, 2023

Stop parsing ACPI information when encountering a MADT entry with a length value equal to zero, as that could cause an infinite loop. While we are at it, verify that the MADT entry length field matches the expected size of the entry type.

Found using the ACPI table parsing fuzzer in #113.

Stop parsing ACPI information when encountering a MADT entry with a
length value equal to zero, as that could cause an infinite loop.
While we are at it, verify that the MADT entry length field matches
the expected size of the entry type.

Signed-off-by: Carlos López <[email protected]>
@joergroedel joergroedel merged commit caa2c62 into coconut-svsm:main Oct 12, 2023
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.

2 participants