Skip to content

bluetooth: fix NULL-pointer dereferences

Johan Hovold linux-bluetooth lkml netdev stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bluetooth: hci_ldisc: fix NULL-pointer dereference on tty_closedrivers/bluetooth/hci_ldisc.c+1 -112 replies
2/2bluetooth: hci_core: fix NULL-pointer dereference at unregisterinclude/net/bluetooth/hci.h net/bluetooth/hci_core.c+8 -06 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDavid Herrmann
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] bluetooth: fix NULL-pointer dereferences

Hi,

These patches fixes two races in hci_ldisc and hci_core which can lead to NULL-pointer dereferences.

The first one is 100% reproducible on 3.2 as well as 3.3-rc6 and needs to be backported to all stable kernels as the offending code has been around for quite some time.

The second one is 100% reproducible on 3.3-rc6 but I haven't seen it on 3.2 or earlier, but as far as I can see it could be possibly to trigger it at least on 3.0 and later.

Thanks,
Johan

Johan Hovold (2):
bluetooth: hci_ldisc: fix NULL-pointer dereference on tty_close
bluetooth: hci_core: fix NULL-pointer dereference at unregister

 drivers/bluetooth/hci_ldisc.c |    2 +-
 include/net/bluetooth/hci.h   |    1 +
 net/bluetooth/hci_core.c      |    7 +++++++
 3 files changed, 9 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.8.4