Headline
CVE-2022-28356: llc: fix netdevice reference leaks in llc_ui_bind() · torvalds/linux@764f4eb
In the Linux kernel before 5.17.1, a refcount leak bug was found in net/llc/af_llc.c.
Permalink
Browse files
llc: fix netdevice reference leaks in llc_ui_bind()
Whenever llc_ui_bind() and/or llc_ui_autobind() took a reference on a netdevice but subsequently fail, they must properly release their reference or risk the infamous message from unregister_netdevice() at device dismantle.
unregister_netdevice: waiting for eth0 to become free. Usage count = 3
Fixes: 1da177e (“Linux-2.6.12-rc2”) Signed-off-by: Eric Dumazet edumazet@google.com Reported-by: 赵子轩 beraphin@gmail.com Reported-by: Stoyan Manolov smanolov@suse.de Link: https://lore.kernel.org/r/20220323004147.1990845-1-eric.dumazet@gmail.com Signed-off-by: Jakub Kicinski kuba@kernel.org
- Loading branch information
Showing with 8 additions and 0 deletions.
- +8 −0 net/llc/af_llc.c