AZL-118193: CVE-2026-143146 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ipv4: fibtrie: prevent speculative out-of-bounds child access
fibtablelookup() checks the child index against the bounds before passing it to getchildrcu().
The index is derived from the lookup key, which in turn is derived from flp->daddr. A userspace process can therefore influence the index by triggering lookups for chosen destination IPv4 addresses.
If this bounds check is mispredicted as in-bounds, an out-of-bounds index can be transiently passed to getchildrcu(). The value loaded beyond the child array is then treated as a node pointer. A later transient dereference of that pointer can cause a data-dependent cache footprint.
This was found during Spectre-v1 research. Leakage was demonstrated with instrumentation that delays branch resolution with a CLFLUSH before the mispredicted branch and makes the leaked location deterministic for reproducible measurement. In that setup, a userspace-controlled IPv4 lookup key was able to trigger a transient out-of-bounds child access. The transient use of the loaded value as a pointer caused a data-dependent cache footprint that was recoverable from userspace using Prime+Probe. A real-world attacker would likely need to delay branch resolution, which was not demonstrated end-to-end without the added CLFLUSH.
Sanitize the index with arrayindexnospec() before accessing the child array. This removed the observed leakage in the described setup.
Apply the hardening before setting cindex in fibtablelookup(), because cindex can later be used by the backtrace path to load another child pointer. fibfindnode() has the same pattern, with the checked index derived from a user-provided key in fibtableinsert() and fibtabledelete(). leafwalkrcu() has a similar checked cindex before getchildrcu(), and the traversed state can be influenced by userspace actions. fibfindnode() runs under RTNL and leafwalkrcu() is not on the packet lookup hot path, so harden those analogous accesses in the same way. Also harden fibtriegetnext(), where a mispredicted loop condition could transiently read one child past the array.
I see a slowdown of roughly 10% in a microbenchmark where we call fibtablelookup() with 64 routes directly from inside the kernel. I observed no slowdown in a loopback UDP sendto() microbenchmark.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel IPv4 fib_trie code, sanitize the child index with array_index_nospec() before accessing the child array or passing the index to get_child_rcu(); apply the same hardening to the analogous checked-index accesses in fib_trie_get_next(), fib_find_node(), and leaf_walk_rcu().
Event History
Frequently Asked Questions
Who can influence the vulnerable lookup path?
A userspace process can influence the child index by triggering IPv4 lookups for chosen destination addresses. The index is derived from the lookup key, which is derived from the destination IPv4 address.
What conditions were used to demonstrate information leakage?
The demonstrated leakage used instrumentation to delay branch resolution with CLFLUSH before the mispredicted bounds check and to make the leaked location deterministic for repeatable measurement. Under that setup, the transient pointer dereference created a cache footprint recoverable from userspace.
How can I identify the package version implicated by this record?
This record identifies the Azure Linux kernel package version 6.6.161.1-1. No fixed package version or alternative mitigation is provided in the available data.