]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: bridge: prevent too big nested attributes in br_fill_linkxstats()
authorEric Dumazet <edumazet@google.com>
Wed, 20 May 2026 11:42:07 +0000 (11:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 May 2026 15:47:36 +0000 (08:47 -0700)
commitbdd39576bf50a50bdafe3da968fd271bc674a48f
tree954a8af35f5ba12cd463ea3e46f9e7942050930d
parent979c017803c40829b03acd9e5236e354b7622360
net: bridge: prevent too big nested attributes in br_fill_linkxstats()

After commit ff205bf8c554 ("netlink: add one debug check in nla_nest_end()")
syzbot found that br_fill_linkxstats() can send corrupted netlink packets.

Make sure the nested attribute size is bounded.

Fixes: a60c090361ea ("bridge: netlink: export per-vlan stats")
Reported-by: syzbot+a35f9259d08f907c06e6@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/6a0b0da3.050a0220.175f0c.0000.GAE@google.com/
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20260520114207.1394241-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_netlink.c
net/core/rtnetlink.c