Skip to content

RFC ieee802154: socket: fix buffer overflow

Alexander Aring linux-bluetooth linux-wpan 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2af_ieee802154: fix struct ieee802154_addr_sa sizeinclude/net/af_ieee802154.h+1 -11 reply
2/2ieee802154: socket: add BUILD_BUG_ON for cast checknet/ieee802154/socket.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC bluetooth-next 0/2] ieee802154: socket: fix buffer overflow

Hi,

this is some critical bug fix here and I don't know how do deal with that now. I don't know if you can "get root" by this security issue. But the socket interface can be simple loaded by user via module-autoloading while using the address family. Maybe there is no security issue and the buffers are cutted off. I don't know, but there is definitely something wrong here.

In my opinion af_ieee802154 should go to stable (bluetooth), but this will break the complete userspace interface for every application. I think there are no many users so I will simple send

Patch 1/2 "af_ieee802154: fix struct ieee802154_addr_sa size"

to bluetooth. This is a RFC to talk about this issue and if somebody knows a better way please tell that here. Note also all userspace applications need to be updated after this patch. I really don't know how to deal with such issue and CC here a lot of well known linux hackers and would be glad if I get any suggestions about that.

Or maybe I should go to the netdev mailinglist with this issue.

- Alex

Cc Marcel Holtmann <[email protected]>
Cc Werner Almesberger <[email protected]>
Cc Marc Kleine-Budde <[email protected]>

Alexander Aring (2):
af_ieee802154: fix struct ieee802154_addr_sa size
ieee802154: socket: add BUILD_BUG_ON for cast check

 include/net/af_ieee802154.h | 2 +-
 net/ieee802154/socket.c     | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.2.1