Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 571EB4DA9BB for ; Thu, 17 Sep 2026 16:17:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661863; cv=none; b=Z4qUsrrFDph0UfiTz24uevAvvoGdUDjkZIhdjY5Ke5dDh+rMRicYC9p5jTs6I47PBYRHiUgsaQZVk7A156Q4rfWVGPuIHNLzkGA+CSFdJs7GK96jw570zF6WZOYeRVQ7+YN3HO9KKMBw2lhVAEtNRHQ9dH2TpA/9MEwqjSNUwWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661863; c=relaxed/simple; bh=JU9v7IRyU9eK2sQDzLHO1o8KnKmdIi7aOjo2bCvVwzQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MK6qoDu49hGMHmpqSBLVt4JcKnleAHqvCAdecEz/+UZxXi0arziV5zSM+MI3cLfan2fV2eqio9nLdRTWS8BXbSLh/7YG+2q7eyKn2thNGv+DHnm2S+du9y4nXxuBUAgzK6XRm8flPYu4sLBvpL4kiFnSVtusKqgqklh8WKay/BA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ojoLyMBd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ojoLyMBd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A8F41F000FF; Thu, 17 Sep 2026 16:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661861; bh=yUFhRg7C0x1f8FMCLpSSrPa0YbMtzjy4uYdHkHgAoHU=; h=From:To:Cc:Subject:Date:Reply-To; b=ojoLyMBd5PEN1LuS+sDhnaOJt7rzdkBw1FSTMzsVwE+m1/6q1dHqYNqOsddADLh46 AP5q9QlBZdUqi7gjiLmD6cb7kNgh3Sqt+ZvNCGxgMJTTZ+Vbl0xdsyffpmt3sUQpjP 0DpoEpEW2oAahO2O/5jtErAf/1Y0cooECCSFLdas= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90160: lwt_bpf: Restore reserved headroom after xmit program Date: Thu, 17 Sep 2026 17:09:50 +0100 Message-ID: <2026091725-CVE-2026-90160-baf0@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4071; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A8qvtUcFAqzxZjrg4/6P4CHAKPw/YSlFMPFOJZvZu0I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBCpz41YqhTjxHeUNDNG67CSyebaG30Yd4W8pWuvLX K5kV57piGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInUKjPMjz1fnKWTFrfY5s0Z X4ll2WfjDN6bMMyvYn74VWJDNWek7nPJ9ZvemXyUvGMGAA== 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: lwt_bpf: Restore reserved headroom after xmit program ip_finish_output2() expands an skb to LL_RESERVED_SPACE(dev) before LWT xmit. An LWT_XMIT BPF program can then modify the skb head and still return BPF_OK, so bpf_xmit() rechecks the remaining headroom before the skb continues to neighbour output. That recheck uses dst->dev->hard_header_len. This is not enough for the neighbour cached-header path: neigh_hh_output() copies the cached hardware header using the aligned hh_cache size, HH_DATA_MOD for short headers or HH_DATA_ALIGN(hh_len) otherwise. On Ethernet, hard_header_len is 14 but the cached copy needs 16 bytes. If an LWT_XMIT BPF program calls bpf_skb_change_head(skb, 1, 0), the skb can still have 15 bytes of headroom after the program. The existing check accepts that, after which neigh_hh_output() hits its headroom warning and drops the skb. Use LL_RESERVED_SPACE(dst->dev) in the post-BPF headroom check to match the reservation made before LWT xmit. The Linux kernel CVE team has assigned CVE-2026-90160 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 5.10.270 with commit 753e5cdcca5474d230d62bb3489e5168ab27c272 Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 5.15.221 with commit c488071c3441fa34f5a87cd6c12ce2cc6304f20e Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 6.1.188 with commit a38c0eb447e2dd0120a2ebcdba470f9505ac8907 Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 6.6.157 with commit de2b2004e16f2930eb689175e2c1998b0a68d499 Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 6.12.110 with commit 7d043e24520a273c362be5dd7d9c82796879a49b Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 6.18.52 with commit 7cf561843ed0ad57501892a65abb77957e6c800f Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 7.2.6 with commit 179a5b2171573d94a25c9aa8e1c9f9ac352ad316 Issue introduced in 4.10 with commit 3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2 and fixed in 7.3-rc1 with commit 5fe7007aed9ad069b2bd77e5d0c875c64f5c0269 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-90160 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/core/lwt_bpf.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/753e5cdcca5474d230d62bb3489e5168ab27c272 https://git.kernel.org/stable/c/c488071c3441fa34f5a87cd6c12ce2cc6304f20e https://git.kernel.org/stable/c/a38c0eb447e2dd0120a2ebcdba470f9505ac8907 https://git.kernel.org/stable/c/de2b2004e16f2930eb689175e2c1998b0a68d499 https://git.kernel.org/stable/c/7d043e24520a273c362be5dd7d9c82796879a49b https://git.kernel.org/stable/c/7cf561843ed0ad57501892a65abb77957e6c800f https://git.kernel.org/stable/c/179a5b2171573d94a25c9aa8e1c9f9ac352ad316 https://git.kernel.org/stable/c/5fe7007aed9ad069b2bd77e5d0c875c64f5c0269