Description
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.
Published: 2026-10-23
Score: n/a
EPSS: n/a
KEV: No
Impact: Information Disclosure via side‑channel
Action: Assess Impact
AI Analysis

Impact

In the Linux kernel, when ICMP fragmentation‑needed or redirect messages quote a UDP packet, the kernel creates a Function‑Specific Next‑Hop Exception (FNHE) only if it can match the quoted UDP packet to an existing socket. This behaviour allows an off‑path attacker to probe the FNHE cache and discover the source port of an associated UDP socket via a side‑channel. The vulnerability exploits the caching mechanism used for short‑lived UDP connections; by sending crafted ICMP errors the attacker can cause the kernel to create or update entries in the FNHE cache. Observing whether a cache entry appears or how long it persists reveals the UDP port, enabling further UDP‑based attacks or session hijacking. The weakness aligns with information disclosure and side‑channel attack patterns, as it leaks internal kernel state to a remote, unauthenticated adversary.

Affected Systems

Affected systems are all Linux kernel deployments that have not incorporated the mitigation commits (6457378f and 67d6d681e15b). The kernel versions prior to these commits, which can be found across many Linux distributions, will process ICMP errors by creating FNHE entries only when a matching UDP socket exists. The vulnerability is not limited to a specific vendor or product name beyond the generic Linux kernel; no particular CPE version list is provided, so all kernels lacking the patch remain vulnerable.

Risk and Exploitability

The CVSS score is not provided, EPSS is not available, and the vulnerability is not listed in CISA's KEV catalog. The attack can be performed by an off‑path network adversary who can send ICMP error messages that quote UDP packets. No local privilege escalation is required, but the attacker needs the ability to observe the FNHE cache, which could be achieved through timing or side‑channel analysis of kernel response patterns. Because the exploit does not rely on a privileged context and can be triggered remotely, the risk remains moderate to high; however, the lack of an official patch means that any affected system is currently at risk until mitigation steps are applied.

Generated by OpenCVE AI on October 23, 2026 at 15:37 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the fix commits implementing unconditional FNHE creation before socket matching.
  • Configure network firewall rules to drop or heavily rate‑limit ICMP "Fragmentation Needed" and "Redirect" messages, especially those carrying quoted UDP payloads, to reduce the attacker’s ability to trigger FNHE updates.
  • Apply additional hardening by filtering or blocking suspicious off‑path ICMP error traffic and disabling services that may generate such messages, thereby limiting the attack surface.

Generated by OpenCVE AI on October 23, 2026 at 15:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Fri, 23 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description 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.
Title ipv4: udp: Create exceptions before socket matching
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-23T12:23:22.773Z

Reserved: 2026-09-25T10:25:14.389Z

Link: CVE-2026-99077

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:31.787

Modified: 2026-10-23T13:17:31.787

Link: CVE-2026-99077

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T15:45:16Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor