GHSA-RQR7-4C76-MH32

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

In 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.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143146"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:48Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nipv4: fib_trie: prevent speculative out-of-bounds child access\n\nfib_table_lookup() checks the child index against the bounds before\npassing it to get_child_rcu().\n\nThe index is derived from the lookup key, which in turn is derived from\nflp-\u003edaddr. A userspace process can therefore influence the index by\ntriggering lookups for chosen destination IPv4 addresses.\n\nIf this bounds check is mispredicted as in-bounds, an out-of-bounds index\ncan be transiently passed to get_child_rcu(). The value loaded beyond the\nchild array is then treated as a node pointer. A later transient\ndereference of that pointer can cause a data-dependent cache footprint.\n\nThis was found during Spectre-v1 research. Leakage was demonstrated with\ninstrumentation that delays branch resolution with a CLFLUSH before the\nmispredicted branch and makes the leaked location deterministic for\nreproducible measurement. In that setup, a userspace-controlled IPv4\nlookup key was able to trigger a transient out-of-bounds child access.\nThe transient use of the loaded value as a pointer caused a\ndata-dependent cache footprint that was recoverable from userspace using\nPrime+Probe. A real-world attacker would likely need to delay branch\nresolution, which was not demonstrated end-to-end without the added\nCLFLUSH.\n\nSanitize the index with array_index_nospec() before accessing the child\narray. This removed the observed leakage in the described setup.\n\nApply the hardening before setting cindex in fib_table_lookup(), because\ncindex can later be used by the backtrace path to load another child\npointer. fib_find_node() has the same pattern, with the checked index\nderived from a user-provided key in fib_table_insert() and\nfib_table_delete(). leaf_walk_rcu() has a similar checked cindex before\nget_child_rcu(), and the traversed state can be influenced by userspace\nactions. fib_find_node() runs under RTNL and leaf_walk_rcu() is not on\nthe packet lookup hot path, so harden those analogous accesses in the\nsame way. Also harden fib_trie_get_next(), where a mispredicted loop\ncondition could transiently read one child past the array.\n\nI see a slowdown of roughly 10% in a microbenchmark where we call\nfib_table_lookup() with 64 routes directly from inside the kernel. I\nobserved no slowdown in a loopback UDP sendto() microbenchmark.",
  "id": "GHSA-rqr7-4c76-mh32",
  "modified": "2026-12-03T12:31:06Z",
  "published": "2026-12-03T12:31:06Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143146"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/056d0beca16b93a54f533f51bfd3190652e3d7a1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/142723bd3ac8c757a9564c42615433c7e76c6616"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/83f0f87588afb9bf7ef92b8bc7d37131639d0c74"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/92fb9437303f76d71f01a2c45c05c9f13a319c0c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e3606983e3b9c9f7652b9690311c77c8cc114a54"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd3d73286662950656f54616d0b3fea29e2dc99a"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.