Skip to content

net: sock_diag fixes

Mathias Krause netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sock_diag: Fix out-of-bounds access to sock_diag_handlers[]net/core/sock_diag.c+3 -02 replies
2/2sock_diag: Simplify sock_diag_handlers[] handling in __sock_diag_rcv_msgnet/core/sock_diag.c+7 -170 replies

Reviews trailers per patch

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

PatchEric Dumazet
1/2A-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] net: sock_diag fixes

Hi Dave,

this small series fixes an exploitable bug in sock_diag. An unprivileged user can send us a netlink message resulting in an out-of-bounds access that allows userland to take over control while in kernel mode.

The first patch fixes the bug and should be pushed to stable. The second one is an attempt to cleanup the sock_diag_handlers[] access mess in __sock_diag_rcv_msg.

Please apply!

Mathias Krause (2):
sock_diag: Fix out-of-bounds access to sock_diag_handlers[]
sock_diag: Simplify sock_diag_handlers[] handling in

    __sock_diag_rcv_msg
 net/core/sock_diag.c |   27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.10.4