HomeFreeBSD

libsa: smbios: Reject a 64-bit entry point with revision 0

Description

libsa: smbios: Reject a 64-bit entry point with revision 0

According to the specification, such an entry point may have different
data in bytes at offsets 0x0c to 0x17 (included). In such a case,
interpreting them as the Structure Table Maximum Size and Address fields
could have catastrophic consequences.

Reviewed by: imp, markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49286

(cherry picked from commit 64fc51a9cf71b2308399b7b7dee8a9bc9468877b)

Details

Provenance
olceAuthored on Mar 7 2025, 1:32 PM
Reviewer
imp
Differential Revision
D49286: libsa: smbios: Reject a 64-bit entry point with revision 0
Parents
rG330f1a42813e: libsa: smbios: Stop parsing on an End-of-Table structure
Branches
Unknown
Tags
Unknown