greybus: audio: bound the topology section sizes against the fetched size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 184992e305f1de3a3d5fa446da3a2bc76be7c54a · < c9191f2e2f35f1209eb2dc24b31129dd47b48c16| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
greybus: audio: bound the topology section sizes against the fetched size
gb_audio_gb_get_topology() fetches a topology blob of a module-supplied size, and gbaudio_tplg_parse_data() then walks it by adding the module-supplied size_dais, size_controls and size_widgets fields to form the control, widget and route section offsets. Those le32 sizes are never checked against the fetched blob, so a module reporting a small topology size but large section sizes makes the offsets point past the allocation, and parsing reads out of bounds.
Reject a topology whose section sizes do not fit within the fetched size before it is parsed.
From the CVE record · Linux
The Linux kernel’s Greybus audio topology parser does not check module-supplied section sizes against the fetched topology blob. A module that supplies a small blob size and large section sizes can cause an out-of-bounds read during parsing. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with Greybus audio support should check their exposure; affected versions are not specified.