You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tools: tplg_parser: add bounds checking to topology object reader macros
Add tplg_check_bounds() macro that validates ctx->tplg_offset + advance
does not exceed ctx->tplg_size before advancing the offset. Apply this
check in all topology object reader macros: tplg_get_hdr,
tplg_skip_hdr_payload, tplg_get_object, tplg_get_object_priv,
tplg_get_widget, tplg_get_graph, and tplg_get_pcm.
Without these checks, a crafted .tplg file with malicious payload_size
or priv.size values can drive the offset past the end of the mapped
topology data, causing out-of-bounds reads in all subsequent object
parsing.
Signed-off-by: Jyri Sarha <jyri.sarha@intel.com>
0 commit comments