ipv4: fib_trie: prevent speculative out-of-bounds child access

Summary

CVECVE-2026-143146
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:17:48 UTC
Updated2026-12-03 10:17:48 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: ipv4: fib_trie: prevent speculative out-of-bounds child access fib_table_lookup() checks the child index against the bounds before passing it to get_child_rcu(). 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 get_child_rcu(). 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 array_index_nospec() before accessing the child array. This removed the observed leakage in the described setup. Apply the hardening before setting cindex in fib_table_lookup(), because cindex can later be used by the backtrace path to load another child pointer. fib_find_node() has the same pattern, with the checked index derived from a user-provided key in fib_table_insert() and fib_table_delete(). leaf_walk_rcu() has a similar checked cindex before get_child_rcu(), and the traversed state can be influenced by userspace actions. fib_find_node() runs under RTNL and leaf_walk_rcu() is not on the packet lookup hot path, so harden those analogous accesses in the same way. Also harden fib_trie_get_next(), 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 fib_table_lookup() with 64 routes directly from inside the kernel. I observed no slowdown in a loopback UDP sendto() microbenchmark.

Risk And Classification

EPSS: 0.002150000 probability, percentile 0.126130000 (date 2026-12-03)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 9f9e636d4f89f788c5cf9c6a5357501c0d405fcb 92fb9437303f76d71f01a2c45c05c9f13a319c0c git Not specified
CNA Linux Linux affected 9f9e636d4f89f788c5cf9c6a5357501c0d405fcb e3606983e3b9c9f7652b9690311c77c8cc114a54 git Not specified
CNA Linux Linux affected 9f9e636d4f89f788c5cf9c6a5357501c0d405fcb 83f0f87588afb9bf7ef92b8bc7d37131639d0c74 git Not specified
CNA Linux Linux affected 9f9e636d4f89f788c5cf9c6a5357501c0d405fcb 142723bd3ac8c757a9564c42615433c7e76c6616 git Not specified
CNA Linux Linux affected 9f9e636d4f89f788c5cf9c6a5357501c0d405fcb 056d0beca16b93a54f533f51bfd3190652e3d7a1 git Not specified
CNA Linux Linux affected 9f9e636d4f89f788c5cf9c6a5357501c0d405fcb fd3d73286662950656f54616d0b3fea29e2dc99a git Not specified
CNA Linux Linux affected 4.0 Not specified
CNA Linux Linux unaffected 4.0 semver Not specified
CNA Linux Linux unaffected 5.10.276 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.227 5.15.* semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.66 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/fd3d73286662950656f54616d0b3fea29e2dc99a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e3606983e3b9c9f7652b9690311c77c8cc114a54 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/142723bd3ac8c757a9564c42615433c7e76c6616 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/056d0beca16b93a54f533f51bfd3190652e3d7a1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/92fb9437303f76d71f01a2c45c05c9f13a319c0c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/83f0f87588afb9bf7ef92b8bc7d37131639d0c74 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report