net: sock_diag fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sock_diag: Fix out-of-bounds access to sock_diag_handlers[]net/ | +3 | 2 replies | |
| 2/2 | sock_diag: Simplify sock_diag_handlers[] handling in __sock_diag_rcv_msgnet/ | +7 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Eric Dumazet |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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