Skip to content

net: mctp: struct sock lifetime fixes

Jeremy Kerr netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: mctp: add an explicit reference from a mctp_sk_key to socknet/mctp/route.c+8 -60 repliesApplied
2/4net: mctp: move expiry timer delete to unhashnet/mctp/af_mctp.c+6 -30 repliesApplied
3/4net: mctp: hold key reference when looking up a general keynet/mctp/route.c+7 -70 repliesApplied
4/4net: mctp: mark socks as dead on unhash, prevent re-addnet/mctp/af_mctp.c net/mctp/route.c+7 -00 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net 0/4] net: mctp: struct sock lifetime fixes

This series is a set of fixes for the sock lifetime handling in the AF_MCTP code, fixing a uaf reported by Noam Rathaus <[email protected]>.

The Fixes: tags indicate the original patches affected, but some tweaking to backport to those commits may be needed; I have a separate branch with backports to 5.15 if that helps with stable trees.

Of course, any comments/queries most welcome.

Cheers,

Jeremy

---

Jeremy Kerr (3):
net: mctp: add an explicit reference from a mctp_sk_key to sock
net: mctp: move expiry timer delete to unhash
net: mctp: mark socks as dead on unhash, prevent re-add

Paolo Abeni (1):
net: mctp: hold key reference when looking up a general key

 net/mctp/af_mctp.c | 10 +++++++---
 net/mctp/route.c   | 34 +++++++++++++++++++++-------------
 2 files changed, 28 insertions(+), 16 deletions(-)
Signature · 1 line
2.35.1