+5
−6
Loading
mainline inclusion from mainline-v6.10-rc4 commit 36c92936e868601fa1f43da6758cf55805043509 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IA6S78 CVE: CVE-2024-36979 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=36c92936e868601fa1f43da6758cf55805043509 -------------------------------- Pass the already obtained vlan group pointer to br_mst_vlan_set_state() instead of dereferencing it again. Each caller has already correctly dereferenced it for their context. This change is required for the following suspicious RCU dereference fix. No functional changes intended. Fixes: 3a7c1661ae13 ("net: bridge: mst: fix vlan use-after-free") Reported-by:<syzbot+9bbe2de1bc9d470eb5fe@syzkaller.appspotmail.com> Closes: https://syzkaller.appspot.com/bug?extid=9bbe2de1bc9d470eb5fe Signed-off-by:
Nikolay Aleksandrov <razor@blackwall.org> Link: https://lore.kernel.org/r/20240609103654.914987-2-razor@blackwall.org Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Signed-off-by:
Yuan Can <yuancan@huawei.com>