linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] btmon: multiple memory management vulnerabilities fixed
@ 2018-10-16 20:19 Matias Karhumaa
  2018-10-18 16:11 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Matias Karhumaa @ 2018-10-16 20:19 UTC (permalink / raw)
  To: linux-bluetooth

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(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 00/12] btmon: multiple memory management vulnerabilities fixed
  2018-10-16 20:19 [PATCH 00/12] btmon: multiple memory management vulnerabilities fixed Matias Karhumaa
@ 2018-10-18 16:11 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2018-10-18 16:11 UTC (permalink / raw)
  To: Matias Karhumaa; +Cc: linux-bluetooth

Hi Matias,

On Tue, Oct 16, 2018, Matias Karhumaa wrote:
> 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(-)

All patches in this set have been applied. Thanks!

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-18 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 20:19 [PATCH 00/12] btmon: multiple memory management vulnerabilities fixed Matias Karhumaa
2018-10-18 16:11 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).