Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792759440; b=YO6b8p31niLq/7jp7Pwp4yjt5gCexyy7s2dz6GBfdmqTyxuAp/q0yKZn8aXGgjW97QMO 1+zt0fjaO7olgpaalFu+ItYyaledufbESKx19hv6jMjOfOeVhrl7CVM2KcRD0hRZbO2cF JNQGLRTj4l8FSVshbxcGhkK2dfdxfYVnGMfA+q6BAuAO6ce5shR7r1C98PBhJHDFhAJFB Zvo4bUncOpBcwPebRvxxEe/pTmsn8M5gOmXjoB0YFbftbmCtGQy9hs0fBhGeYxfTqJFqR YFtfH1RGfDusdyx/IBEkVCfPJDslizE7P4g4PVC5WkdWXLbqEUzIJ7qI0gI96CB1GdA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759440; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=z4gfR48qG4UaHj2BIdDWqaZw6dh1M+YLUYIkrwufLE0=; b=4wdn9FTVFE4rWFYjb6x2zwYfVL5JG/4e33Yx4zVqpx29OpY8MStQs4ZtZoJe/7nzpqVg QsixprDdtZdsq7v3Pak9PWeUeOt2rqfo0/IBrcau9qs5xu7d/3SMRxqK84+0yDtd/dCrY 6sw5k59W8ib1Hhnhh+DwLFo48Re99P0/PHVk/8lxGRi4CL77lGjoaZTGXIkixITtFA9lo 115nNRb/FrAvQe3KVYDNo2Pbq7LaQm0vmx2Xpt83pMLbKglkEi/i0Vvp8GlGfvpbWv3Gd CSIRkpJKC2it9l7pS52DvK1o/Ku2znbMrsrm8YIPKgpAbO4B+j53CiarCpT+TT0IerQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=idFkmP3p; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FB64606A31A for ; Fri, 23 Oct 2026 12:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=idFkmP3p Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EB921F01825; Fri, 23 Oct 2026 12:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759440; bh=z4gfR48qG4UaHj2BIdDWqaZw6dh1M+YLUYIkrwufLE0=; h=From:To:Cc:Subject:Date:Reply-To; b=idFkmP3pkES+2mmAI3sWl+/O7ZEFunfuG8vYPoJUhdISIEjzTrsxZ2hQRN+SzwQ/7 wRDjpVJFP8kChw8AvUsoIzs34gjPmJqE2zrduzmml5olHeN0kHwRwRebVVx+EbF8Nx Gf0hwWCjy4OuAzagWvK6nh1jEHXr+gBG3Ily5VbM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99077: ipv4: udp: Create exceptions before socket matching Date: Fri, 23 Oct 2026 14:21:19 +0200 Message-ID: <2026102335-CVE-2026-99077-f4a8@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3912; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xwg1wF2UjP+rz3uUXHlggjiFMlXKBBuF4b4Kbkw0wgE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A65nn1H72XO958CbPOv585fkPWK5e+9trefW/W/d+ jd8zVDv7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ3MlhmJ/EnRm2N96ERziw VmzSL7bljovdPzIsWMYVWb2q4sSs9i+fN+w//1SLRXM7CwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-99077 to this issue. Affected and fixed versions =========================== Issue introduced in 3.6 with commit 4895c771c7f006b4b90f9d6b1d2210939ba57b38 and fixed in 7.2.11 with commit be4fd05398f2b5e42029be70ee875fc749b8ce3a Issue introduced in 3.6 with commit 4895c771c7f006b4b90f9d6b1d2210939ba57b38 and fixed in 7.3 with commit 4c3499f79f8c7e8561266bcc220a18538cec0458 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99077 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/ipv4/udp.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/be4fd05398f2b5e42029be70ee875fc749b8ce3a https://git.kernel.org/stable/c/4c3499f79f8c7e8561266bcc220a18538cec0458