KernelScan.io

HIGH Introduced in 3.6

ipv4 FnheCache SideChannel

CVE-2026-99077

CVSS 7.4 / 10.0 NVD

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

KernelScan AI7.5HIGH

01

In the Linux kernel, the following vulnerability has been resolved: ipv4: udp: Create exceptions before socket matching Currently, when ICMP Fragmentation Needed and Redirect Message packets are locally delivered and quote a UDP packet, a FIB nexthop exception (FNHE) is only created if the kernel can match the UDP packet to an existing socket. This behavior allows off-path attackers to conduct a side-channel attack on the FNHE cache in order to discover the ephemeral port used by a connected UDP socket. Commit 6457378fe796 ("ipv4: use siphash instead of Jenkins in fnhe_hashfun()") and commit 67d6d681e15b ("ipv4: make exception cache less predictible") tried to mitigate such attacks by making it harder for attackers to discover hash collisions in the FNHE cache and by randomizing the number of exceptions a hash bucket can hold, respectively. Unfortunately, both of the mitigations can be bypassed. Instead, mitigate such attacks by always creating a FNHE, even before trying to find a matching socket. Do that by calling ipv4_update_pmtu() and ipv4_redirect(), the helpers used when the quoted packet did not originate from a socket. This means that guesses (right or wrong) from an off-path attacker will always result in a FNHE being created or updated in the cache that the attacker can observe. Pass an oif of 0, in a similar fashion to icmp_err(). This is also the oif used by the socket path for sockets that are not bound to a device. Note that this does not allow attackers to create FNHEs that they could not create before, as both helpers can already be reached with little to no validation. For example, by sending an ICMP error that quotes an ICMP Echo Reply or one that quotes a UDP source port that matches a wildcard socket. Also note that in the good case (matched socket) the above scheme comes at the cost of an extra route lookup, as the no socket helpers perform their own lookup before the one performed by ipv4_sk_update_pmtu() / ipv4_sk_redirect(). When the two resolve to different nexthops, it also results in two exceptions being created for the same destination IP. One in the FNHE cache of the nexthop resolved by the no socket helpers and another in the FNHE cache of the nexthop used by the socket.

02

Engine v0.9.0

Risk summary

An off-path network attacker can discover the ephemeral port of a connected UDP socket by observing whether the kernel creates a FIB nexthop exception (FNHE) in response to crafted ICMP Fragmentation Needed or Redirect messages. This information leak enables further attacks such as UDP hijacking or DNS cache poisoning. Any system with IPv4/UDP services exposed to a network is at risk.

Affectednet/ipv4/udp.c (IPv4 UDP)

Vulnerability analysis

When the kernel processes an ICMP error message that references a UDP packet, it previously only created a routing cache entry if the referenced UDP packet matched an active connection. This created an observable difference: probes guessing the correct port would leave a cache entry, while incorrect guesses would not, allowing an off-path attacker to discover the ephemeral port of a connected UDP socket by probing the cache state. The fix makes the kernel always create or update the routing cache entry before checking for a matching connection, so both correct and incorrect probes leave the same cache state, eliminating the side channel. Any attacker who can send ICMP packets to the target over IPv4 can exploit this, with no privileges or local access required.

03

BranchIntroducedFixed inPatch commit
5.103.65.10.273e8f211a37396
5.153.65.15.2249f97b01ee799
6.13.66.1.191e0cd4942831d
6.123.66.12.1153b92e4349c6b
6.183.66.18.59ecd7ead4bf05
6.63.66.6.1610cf0ff2f728f
7.23.67.2.11be4fd05398f2
mainline3.67.34c3499f79f8c

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Affected — no CIP fix yet (latest 6.12.114-cip34)
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)