btmon: multiple memory management vulnerabilities fixed
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | btmon: fix segfault caused by buffer over-readmonitor/ | +1 | 0 replies | |
| 2/12 | btmon: fix segfault caused by buffer over-readmonitor/ | +6 | 0 replies | |
| 3/12 | btmon: fix segfault caused by buffer over-readmonitor/ | +5 | 0 replies | |
| 4/12 | btmon: Fix crash caused by integer underflowmonitor/ | +1 | 0 replies | |
| 5/12 | btmon: fix stack buffer overflowsrc/ | +5 | 0 replies | |
| 6/12 | btmon: fix multiple segfaultsmonitor/ | +17 | 0 replies | |
| 7/12 | btmon: fix segfault caused by integer underflowmonitor/ | +14 | 0 replies | |
| 8/12 | btmon: fix segfault caused by integer undeflowmonitor/ | +5 | 0 replies | |
| 9/12 | btmon: fix segfault caused by buffer over-readmonitor/ | +5 | 0 replies | |
| 10/12 | btmon: fix segfault caused by buffer overflowmonitor/ | +6 | 0 replies | |
| 11/12 | btmon: fix segfault caused by integer underflowmonitor/ | +10 | 0 replies | |
| 12/12 | btmon: fix segfault caused by buffer over-readmonitor/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/12] btmon: multiple memory management vulnerabilities fixed
Multiple different memory management vulnerabilities were discovered in btmon while fuzzing it with American Fuzzy Lop. Purpose of this fuzzing effort was to find some bugs in btmon, analyse and fix them but also try to exploit them. Also goal was to prove that fuzzing is low effort way to find bugs that could end up being severe ones.
Most common weakness appeared to be buffer over-read which was usually caused by missing boundary checks before accessing array. Integer underflows were also quite common. Most interesting bug was simple buffer overflow that was actually discovered already couple years ago by op7ic: https://www.spinics.net/lists/linux-bluetooth/msg68898.html
but it was still not fixed. This particular vulnerability ended up being quite easily exploitable if certain mitigation technics were disabled.
Matias Karhumaa (12):
btmon: fix segfault caused by buffer over-read
btmon: fix segfault caused by buffer over-read
btmon: fix segfault caused by buffer over-read
btmon: Fix crash caused by integer underflow
btmon: fix stack buffer overflow
btmon: fix multiple segfaults
btmon: fix segfault caused by integer underflow
btmon: fix segfault caused by integer undeflow
btmon: fix segfault caused by buffer over-read
btmon: fix segfault caused by buffer overflow
btmon: fix segfault caused by integer underflow
btmon: fix segfault caused by buffer over-read
monitor/packet.c | 56 +++++++++++++++++++++++++++++++++++++++++--- monitor/sdp.c | 21 ++++++++++++++++- src/shared/btsnoop.c | 5 ++++ 3 files changed, 78 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1