Skip to content

net: fib: Fix two use-after-free in drivers during RCU dump.

Kuniyuki Iwashima netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ipv4: fib: Don't dump dying fib_info in fib_leaf_notify().include/net/ip_fib.h net/ipv4/fib_trie.c+9 -02 repliesApplied
2/2net: fib_rules: Don't dump dying fib_rule in fib_rules_dump().include/net/fib_rules.h net/core/fib_rules.c+10 -12 repliesApplied

Reviews trailers per patch

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

PatchIdo SchimmelDavid Ahern
1/2R-b R-b
2/2R-b R-b

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 v1 net 0/2] net: fib: Fix two use-after-free in drivers during RCU dump.

syzbot reported fib_info UAF in netdevsim, and the same bug exists in rocker and mlxsw.

Patch 1 fixes it, and Patch 2 fixes the same type of bug of fib_rule.

Kuniyuki Iwashima (2):
ipv4: fib: Don't dump dying fib_info in fib_leaf_notify().
net: fib_rules: Don't dump dying fib_rule in fib_rules_dump().

 include/net/fib_rules.h | 5 +++++
 include/net/ip_fib.h    | 5 +++++
 net/core/fib_rules.c    | 6 +++++-
 net/ipv4/fib_trie.c     | 4 ++++
 4 files changed, 19 insertions(+), 1 deletion(-)
Signature · 1 line
2.54.0.1099.g489fc7bff1-goog