Skip to content

bluetooth: validate packet boundary carefully

Cong Wang linux-bluetooth netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 5 repliesIn review
  2. v2 posting 1/23 patches 0 repliesSuperseded
  3. v11 patch 1 replySuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bluetooth: validate HCI_EVENT_PKT packet carefullynet/bluetooth/hci_event.c+218 -442 replies
2/3bluetooth: validate HCI_EV_LE_META packet carefullynet/bluetooth/hci_event.c+87 -203 replies
3/3bluetooth: validate HCI_EV_CMD_COMPLETE packet carefullynet/bluetooth/hci_event.c+215 -430 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

Patch[email protected][email protected]Tomas Bortoli
1/3Reported-and-tested-by Reported-and-tested-by R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [Patch net v2 0/3] bluetooth: validate packet boundary carefully

This patchset fixes the out-of-bound access in bluetooth stack. Although it is large, all of them follow the same pattern, so it should not be hard to review. I try to group them as much as I can. This patchset should cover Dan's patch too.

Please check each patch for details.

(Resending v2 as it is lost in netdev mailing list.)

---

Cong Wang (3):
bluetooth: validate HCI_EVENT_PKT packet carefully
bluetooth: validate HCI_EV_LE_META packet carefully
bluetooth: validate HCI_EV_CMD_COMPLETE packet carefully

 net/bluetooth/hci_event.c | 627 +++++++++++++++++++++++++++++++-------
 1 file changed, 520 insertions(+), 107 deletions(-)
Signature · 1 line
2.20.1