diff options
| author | Li Qiang <liqiang01@kylinos.cn> | 2026-07-16 16:47:28 +0800 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-08-07 12:36:22 -0400 |
| commit | 6afadcff79b157a4770c4e987a6005bff40a670b (patch) | |
| tree | 43e3eeaae096cfd862c2924a946d9426681cd078 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | e0650618ee8395cdefde1686e31d3ff5c253955e (diff) | |
Bluetooth: bfusb: validate received block boundaries
The USB receive path trusts the block header to contain the required
number of bytes and passes it to the reassembly routine. The routine
also trusts a malformed HCI packet type and can append more data than
the skb allocated from the advertised packet length. A malformed USB
transfer can therefore cause out-of-bounds reads or an skb tail
overwrite.
Validate block header availability, declared block size, packet type,
and reassembly tailroom. Drop the partial frame on an invalid block.
Signed-off-by: Li Qiang <liqiang01@kylinos.cn>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
