CVE-2026-139248: octeontx2: Fix use-after-free of qos node in delete path
In the Linux kernel, the following vulnerability has been resolved:
octeontx2: Fix use-after-free of qos node in delete path
hashdelrcu() only unlinks the node; a reader that already holds the bucket iterator still uses the node. The immediate kfree() has no grace period, so a concurrent transmit on a socket whose skb priority carries the deleted classid reads node->classid / node->qid from freed memory (use-after-free in the softirq transmit path).
Fix this by calling synchronizenet() before the node is freed, as mlx5e does.
Found during a static-analysis-assisted audit: candidate sites were surfaced by a Coccinelle rule, and the reader/writer paths were confirmed by LLM-assisted (GLM-5.3) code inspection. The issue was not observed at runtime; it is identified by code inspection only.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the octeontx2 QoS node deletion path, call synchronize_net() before freeing the node.
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
A QoS node must be deleted while a concurrent transmit is occurring on a socket whose skb priority carries the deleted classid. A reader that already holds the hash bucket iterator can then read the deleted node's classid or queue ID from freed memory in the softirq transmit path.
What is the relevant remediation in the referenced fixes?
The node must not be freed immediately after hash_del_rcu(). The fix waits for network readers with synchronize_net() before freeing the QoS node.
Has this issue been observed in production or at runtime?
No runtime occurrence was reported. The issue was identified during a static-analysis-assisted audit and confirmed through code inspection of the reader and writer paths.