[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHS8izM9oCg7-1ENzvR+tri4TiPsmQkQki8JG4taJ6XE+RJM4w@mail.gmail.com>
Date: Fri, 28 Mar 2025 10:04:08 -0700
From: Mina Almasry <almasrymina@...gle.com>
To: Taehee Yoo <ap420073@...il.com>
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, andrew+netdev@...n.ch, horms@...nel.org,
netdev@...r.kernel.org, jdamato@...tly.com, sdf@...ichev.me,
xuanzhuo@...ux.alibaba.com
Subject: Re: [PATCH net] net: fix use-after-free in the netdev_nl_sock_priv_destroy()
On Thu, Mar 27, 2025 at 11:22 PM Taehee Yoo <ap420073@...il.com> wrote:
>
> In the netdev_nl_sock_priv_destroy(), an instance lock is acquired
> before calling net_devmem_unbind_dmabuf(), then releasing an instance
> lock(netdev_unlock(binding->dev)).
> However, a binding is freed in the net_devmem_unbind_dmabuf().
> So using a binding after net_devmem_unbind_dmabuf() occurs UAF.
> To fix this UAF, it needs to use temporary variable.
>
> Fixes: ba6f418fbf64 ("net: bubble up taking netdev instance lock to callers of net_devmem_unbind_dmabuf()")
> Signed-off-by: Taehee Yoo <ap420073@...il.com>
Reviewed-by: Mina Almasry <almasrymina@...gle.com>
--
Thanks,
Mina
Powered by blists - more mailing lists