intel / ipmctl

BSD 3-Clause "New" or "Revised" License
183 stars 62 forks source link

Fix for PBR ctx file parsing crash #209

Closed mikolajkolakowski closed 3 months ago

mikolajkolakowski commented 3 months ago

When PBR ctx file is corrupted with non zero values, ipmctl will attempt to deserialize it's content. In specific scenario the size of a partition read from corrupted file is used in malloc which fails but deserialization ignores that and reads content of PBR into null ptr buffer causing crash.