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=1795154208; b=Bz2eo2Bc3GDQG2bzLBYs3+IVDwEPnnpPEVq87p1aEckcs8en+kMZ+HPciU6CZQdv7vmI VqFGsjZWmvCsXBxicOwWmYPhAFRFJxLQEtmOgT46DCvCyLK3leZQcV6oGCCZmhSqm8lY0 gFqdIxw4JIFtuDbVWNWE7eaqmT3VdYQs1GeT/OesUf/GpNmQKye2+106ujiYMxHX2vdxb UDQxnSwGdMzgVZ5I7CYjqj501168V8jpBup1YGqNkqFAAruKnKlBPZxQbB/ghsVD1MpS3 fAIxV9PplJfbHhE0GkEusmcRrgqjU0T5VTu6TH0RgxZrQEmQKfn368y/C4GROvopF+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154208; 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=7yBCnaIsJQC6fVYnpsQN7hKOmL5kAir4+3vaCGjSglE=; b=O9fe6MbD9koQGvvg91wFfU+9F21JwNRDF/Q3Ck0zIbR69OtIlqoLiKqvDxigkk317iTW B0cfyKGXGC7Xe2iOb17wjbYqpJgVLWB+QO9Ck7Jv/OILYjId7xs2dCD03bQMDf/MEluUh Xf71E/OKb7CM1IbWzvn5v9zJhp8OhNyEZ0UH6xQ0n/rsF6C8TdGuInbwxHFFk1LAM/jlB y+iqS6OOXKfZm6233bstkMOSUOfdRyHNbv0si27v1ZtzyA0R4SeJL9q2c/G+/7E3Rlb+k LhDM5qq8PAbmm6BcrHg6jvhrCP4x86SAijahYHPZ1nVH4CAVnzb0sNH6IAIO1qlO7Og== 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=IdqpmocY; 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 1071160A2635 for ; Fri, 20 Nov 2026 05:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=IdqpmocY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F7721F000D0; Fri, 20 Nov 2026 05:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154207; bh=7yBCnaIsJQC6fVYnpsQN7hKOmL5kAir4+3vaCGjSglE=; h=From:To:Cc:Subject:Date:Reply-To; b=IdqpmocY1Z1lsqynldo/m2S9EqCNgNVesBzqgi9E0PeYaj1H3ldO5luAgh3yUM520 PE/3JofP2Jr3ofmo2voUfFWJKe1ccPFjvukM1X1sPDuQ0Rke7vCYjQum8rGwo3kb7V D75nzEMYqk1Cq0LltLC6g5nJzR+iwLQ+4i2eKnEs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99636: net: reject a negative TCP header offset in qdisc_pkt_len_segs_init() Date: Fri, 20 Nov 2026 06:50:22 +0100 Message-ID: <2026112038-CVE-2026-99636-f65b@gregkh> X-Mailer: git-send-email 2.56.1 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=3211; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nmdu6ufCCJpgAl4p0DsbMVbUBNzsX7F1DDL7PtBd6yQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7xcftjFcc+i/oc+yonjuXWsuFvj1sOrfy0z5+Zddt kZ/mqFVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzknSzDgt4Ts9ecXHPA9IGt 8PKwi2kuGTn+yxnmShaKFMmo6h3qsbhzIWDL+0dfT/Y7AwA= 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: net: reject a negative TCP header offset in qdisc_pkt_len_segs_init() qdisc_pkt_len_segs_init() stores skb_transport_offset(), or the inner offset, in the unsigned hdr_len. A header in front of skb->data gives a negative offset. For an offset a little below zero, pskb_may_pull() gets a small length and succeeds. Then a 64-bit kernel reads the TCP header far after the skb and can crash. Further below zero pskb_may_pull() fails. Commit 28a57fb2c5df ("net: iptunnel: fix stale transport header during tunnel decapsulation") fixed one source of such offsets. Other code that removes bytes from the front of a packet can leave the same stale header. Return SKB_DROP_REASON_SKB_BAD_GSO for a negative offset in the TCP branch. SKB_GSO_UDP_L4 and the other GSO types read no header and still get a wrong qdisc_pkt_len(). On a 64-bit kernel only packets that cause the read after the skb today get a new result. Then __dev_queue_xmit() drops them and returns -EINVAL, but sch_handle_ingress() ignores the result. Their content can be valid. Thus the code that leaves the header stale needs its own fix. The Linux kernel CVE team has assigned CVE-2026-99636 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.114 with commit 7564dc804d8289d2e5c6edb8173754051b71bff4 and fixed in 6.12.118 with commit d88be0067857b68df06a33cc056c9f05101c09d4 Issue introduced in 7.1 with commit 7fb4c19670110f052c04e1ec1d2b953b9f4f57e4 and fixed in 7.3.5 with commit 765af9e95c840fcbbecf34ca1e787daba8eac569 Issue introduced in 7.1 with commit 7fb4c19670110f052c04e1ec1d2b953b9f4f57e4 and fixed in 7.4-rc2 with commit 35d2d6e5ac0d22428b2a0216061f3330c095393c Issue introduced in 6.6.160 with commit 5895cfc76924a629c6eaa5e5f049de642860045f Issue introduced in 7.0.10 with commit 9d4f5c68f5ad4ab425f3ce1500c97c9f9743999a 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-99636 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/dev.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/d88be0067857b68df06a33cc056c9f05101c09d4 https://git.kernel.org/stable/c/765af9e95c840fcbbecf34ca1e787daba8eac569 https://git.kernel.org/stable/c/35d2d6e5ac0d22428b2a0216061f3330c095393c