ax25: fix reference count leaks of ax25_dev
The previous commit d01ffb9e ("ax25: add refcount in ax25_dev to avoid UAF bugs") introduces refcount into ax25_dev, but there are reference leak paths in ax25_ctl_ioctl(), ax25_fwd_ioctl(), ax25_rt_add(), ax25_rt_del() and ax25_rt_opt(). This patch uses ax25_dev_put() and adjusts the position of ax25_addr_ax25dev() to fix reference cout leaks of ax25_dev. Fixes: d01ffb9e ("ax25: add refcount in ax25_dev to avoid UAF bugs") Signed-off-by: Duoming Zhou <duoming@zju.edu.cn> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20220203150811.42256-1-duoming@zju.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
parent
80d46090
-
mentioned in commit 5ddae8d0
-
mentioned in commit b20a5ab0
-
mentioned in commit bc706d89
-
mentioned in commit 452ae92b
-
mentioned in commit 1db0b2c5
-
mentioned in commit 9e1e088a
-
mentioned in commit 9f444ded
-
mentioned in commit c44a453f
-
mentioned in commit a518be57
-
mentioned in commit de55a133
Please register or sign in to comment