CVE-2026-139710: sit: fix UAF in ipip6_tunnel_del_prl()
In the Linux kernel, the following vulnerability has been resolved:
sit: fix UAF in ipip6tunneldelprl()
When flushing all potential router list (PRL) entries, ipip6tunneldelprl() called callrcu(&x->rcuhead, prllistdestroyrcu) before clearing t->prl.
A concurrent reader in isatapchksrc() could enter an RCU read-side critical section after callrcu() but before t->prl is set to NULL, allowing prllistdestroyrcu() to free nodes while the reader traverses them.
Clear t->prl using RCUINITPOINTER() before invoking callrcu(). Also use rcuassignpointer() when unlinking individual entries.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In sit, unlink individual PRL entries with rcu_assign_pointer(); clear t->prl with RCU_INIT_POINTER() before invoking call_rcu().
Event History
Frequently Asked Questions
What conditions are required for this race to occur?
The affected path requires a flush of all potential router list (PRL) entries while another execution concurrently runs isatap_chksrc() and traverses the PRL under an RCU read-side critical section.
What is the consequence of a successful race?
A concurrent reader can retain access to the PRL after destruction has been scheduled, allowing the RCU callback to free nodes while that reader is traversing them. This creates a use-after-free condition.
How is the issue fixed?
The fix clears t->prl with RCU_INIT_POINTER() before calling call_rcu() for the list destruction. It also uses rcu_assign_pointer() when unlinking individual PRL entries.