Re: [PATCH net] dibs: fix use-after-free of dmb_node in loopback attach/detach/unregister
From: Hidayathulla Khan I
Date: Wed Jul 29 2026 - 09:14:24 EST
On 29/07/26 5:55 pm, Alexandra Winter wrote:
Sure, happy to add Reported-by: Rahul Chandelkar <rc@xxxxxxxxx> in v2.
On 27.07.26 11:35, Hidayath Khan wrote:
dibs_lo_attach_dmb(), dibs_lo_detach_dmb() and dibs_lo_unregister_dmb()I had lost track of this, but Rahul Chandelkar had already proposed a
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.
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/