Commit a660742
committed
audio: data_blob: bound blob read against data_size
comp_data_blob_get_cmd() advanced data_pos by the
host-controlled num_elems each fragment with no check against
the blob size, so a fragmented bytes-get could read past
the blob and leak adjacent DSP heap to the host.
Reject reads where data_pos or num_elems exceed data_size.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 6d5cf82 commit a660742
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
631 | 643 | | |
632 | 644 | | |
633 | 645 | | |
| |||
0 commit comments