Re: [PATCH net] dibs: fix use-after-free of dmb_node in loopback attach/detach/unregister
From: Alexandra Winter
Date: Wed Jul 29 2026 - 08:57:47 EST
On 27.07.26 11:35, Hidayath Khan wrote:
> dibs_lo_attach_dmb(), dibs_lo_detach_dmb() and dibs_lo_unregister_dmb()
> look up the dmb_node under dmb_ht_lock, drop the lock and only then
> operate on the node's refcount. Nothing keeps the node alive across
> that window: __dibs_lo_unregister_dmb() removes the node from the hash
> table under the write lock and immediately frees it.
>
I had lost track of this, but Rahul Chandelkar had already proposed a
similar patch [1] for this issue, but never followed up with a v2.
Rahul, Hidayath,
Would it be ok for both of you to add
Reported-by: Rahul Chandelkar <rc@xxxxxxxxx>
[1] https://lore.kernel.org/netdev/4gRZFl1CWvz2x9j@xxxxxxxxxxxxxxxxxx/