Use-After-Free (UAF) in IGMP timer handling around in_device during concurrent teardown
Description
Proof of Concept
Commit Details
Author: Eric Dumazet
Date: 2026-07-05 18:17 UTC
Message:
Triage Assessment
Vulnerability Type: Use-After-Free
Confidence: HIGH
Reasoning:
The commit addresses a race between device teardown and IGMP timer handling that could lead to a use-after-free when a timer accesses in_device memory after it has been freed. By ensuring timer arming only occurs when the device refcount is non-zero (via in_dev_hold_safe) and preventing new references when the device is being destroyed, it mitigates a memory safety vulnerability (use-after-free) with potential kernel panics or security implications.
Verification Assessment
Vulnerability Type: Use-After-Free (UAF) in IGMP timer handling around in_device during concurrent teardown
Confidence: HIGH
Affected Versions: v7.0-rc6 and earlier (mainline before this commit)