nfnetlink_log: fix possible use-after-free
Subsystems (2)
PATCH 4/10 nfnetlink_log: fix possible use-after-free
Paranoia: instance_put() might have freed the inst pointer when we spin_unlock_bh().
Signed-off-by Michał Mirosław <[email protected]>
net/netfilter/nfnetlink_log.c renamed from net/netfilter/nfnetlink_log.c.2 +1 -1
@@ -393,8 +393,8 @@ static void nfulnl_timer(unsigned long dspin_lock_bh (&inst->lock);__nfulnl_send (inst); -instance_put (inst);spin_unlock_bh (&inst->lock); +instance_put (inst); }/* This is an inline function, we don't really care about a long
Patrick McHardy
AppliedQuoted 2 lines · Micha³ Miros³aw
Paranoia:
instance_put()might have freed the inst pointer when wespin_unlock_bh().
Applied, I'll forward this one to -stable as well.