Re: [PATCH net-next] net/iucv: fix UAF in afiucv_netdev_event()
Nagamani PV <[email protected]> Tue, 4 Aug 2026 18:22:18 +0530
| Newsgroups | gmane.linux.network,gmane.linux.kernel.stable |
|---|---|
| Message-ID | <[email protected]> |
On 04/08/26 2:03 PM, Alexandra Winter wrote: > > As this is a fix, it should have been prefixed with net and not net-next. > Apologies for that — you had already corrected this in the internal review. v2 will use [PATCH net] and include your Reviewed-by. > > See the discussions with Bryam Vargas [1]: > It is correct that afiucv_netdev_event() is missing lock protection. > > However for a complete solution it should call lock_sock() > (because netdev events are called in process context) and handle > owned_by_user and a backlog queue. > > So this patch improves the situation, but is not the complete solution. > I'd rather continue to work on a more complete fix than take this one, > but both ways are possible. > Understood. This patch addresses the UAF on iucv_sk_list traversal specifically. The lock_sock() concern is at a different level and could be a follow-up. Could you clarify your preference — take this as an incremental fix with a follow-up for lock_sock(), or hold and work toward a combined solution? Thanks, Nagamani > Kind regards > Alexandra > > [1] https://lore.kernel.org/netdev/[email protected]/ > > > >