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 0D0C03D4128 for ; Wed, 27 May 2026 12:20:24 +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=1779884427; cv=none; b=e7g1qNYX53bohQF+m/xbcD+lYGgDJ3hgMKiw1N8I/EuXFJ4ZxaQkkC0QHfIV6AdbyppfMclqP4VzeKK3550r90/4yl1xhOKK6c/O1fGtwRqwYohfL1+UQfyDqKAbOyAhAj/7d1phTLTld4e8kSz03Z+uSx+qGce9YI1zZCULsmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884427; c=relaxed/simple; bh=Va6nkylM3h5qquIjtfnqxscE9PajGVQgGnyuM3PyG/g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nv4DISkmUhoCrf4WCWwpZT3JDjBdZaEuK5S9IA6+rsS4jFXEDggzsX3VBuTYh+hsSnkEDuMb77Lo7i/sgWUHYgB44QDT8jHAXK12XuPRGJ2x23DyoEIJxbF3U4GhMYsAoCuo3LreU7VatCpBNBflgprILyJqFfioXLqiNY7HpYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ve9P+fXQ; 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="ve9P+fXQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49AEC1F000E9; Wed, 27 May 2026 12:20:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884424; bh=pF0aIXPaQ/wzlMblxkun2Z/8hSDVw4wbZNA9E/TyhQs=; h=From:To:Cc:Subject:Date:Reply-To; b=ve9P+fXQ7CqhBnm2ZUY6QjOO71Gl7uMInRaNrIGWi/3ob2J0vZqRRzgoi7fLZnkNt 22Uya0oS4r2SXepDFvfbXGijHwDghI7XobhD8Dthlp4uGz5biPRDOoTD4CT2NHQc2d fg6OrgoYezvx5PNujF0x6ClWz6e8b+PCc+/quHFI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45859: netfilter: nfnetlink_queue: do shared-unconfirmed check before segmentation Date: Wed, 27 May 2026 14:18:21 +0200 Message-ID: <2026052710-CVE-2026-45859-4440@gregkh> X-Mailer: git-send-email 2.54.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=3776; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=brqsRWtBtqUgN6ah0Q3RVblLqAM6t/wyGWc1G2nx2xY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD5mm/gzouuqgm5Fj16zBxmLbrJpX/bZsRazRzS+Lv n5IydbtiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIncCWZYcJWR0eG3oLS64Knl DguXWjQvcoxZyzA/Z1PKRWcWL6NOm/amZwo5JnzPn1YCAA== 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: netfilter: nfnetlink_queue: do shared-unconfirmed check before segmentation Ulrich reports a regression with nfqueue: If an application did not set the 'F_GSO' capability flag and a gso packet with an unconfirmed nf_conn entry is received all packets are now dropped instead of queued, because the check happens after skb_gso_segment(). In that case, we did have exclusive ownership of the skb and its associated conntrack entry. The elevated use count is due to skb_clone happening via skb_gso_segment(). Move the check so that its peformed vs. the aggregated packet. Then, annotate the individual segments except the first one so we can do a 2nd check at reinject time. For the normal case, where userspace does in-order reinjects, this avoids packet drops: first reinjected segment continues traversal and confirms entry, remaining segments observe the confirmed entry. While at it, simplify nf_ct_drop_unconfirmed(): We only care about unconfirmed entries with a refcnt > 1, there is no need to special-case dying entries. This only happens with UDP. With TCP, the only unconfirmed packet will be the TCP SYN, those aren't aggregated by GRO. Next patch adds a udpgro test case to cover this scenario. The Linux kernel CVE team has assigned CVE-2026-45859 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 7d8dc1c7be8d3509e8f5164dd5df64c8e34d7eeb and fixed in 6.12.75 with commit 79b713ef4261a8ead96af4703f89d0b5f25532e2 Issue introduced in 6.11 with commit 7d8dc1c7be8d3509e8f5164dd5df64c8e34d7eeb and fixed in 6.18.14 with commit 23901aa6b8a2f294c4b774436b4691f3ff863a8f Issue introduced in 6.11 with commit 7d8dc1c7be8d3509e8f5164dd5df64c8e34d7eeb and fixed in 6.19.4 with commit b740e7ddd7ca0dbfeafca3f5e52717206cf28524 Issue introduced in 6.11 with commit 7d8dc1c7be8d3509e8f5164dd5df64c8e34d7eeb and fixed in 7.0 with commit 207b3ebacb6113acaaec0d171d5307032c690004 Issue introduced in 5.15.166 with commit 6c4a0ba674f410ab99a30a16f32dac0ebfed5cd3 Issue introduced in 6.1.107 with commit 6dcc8ba8a6074bb79040f502dc66ad23a58a1c86 Issue introduced in 6.6.48 with commit 74e6eb7fd27ef1ccc68041dbc66e6d80d2e4a1a0 Issue introduced in 6.10.7 with commit 025b3326c5c409b372d0103ad30f174e55adbd1b 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-45859 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: include/net/netfilter/nf_queue.h net/netfilter/nfnetlink_queue.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/79b713ef4261a8ead96af4703f89d0b5f25532e2 https://git.kernel.org/stable/c/23901aa6b8a2f294c4b774436b4691f3ff863a8f https://git.kernel.org/stable/c/b740e7ddd7ca0dbfeafca3f5e52717206cf28524 https://git.kernel.org/stable/c/207b3ebacb6113acaaec0d171d5307032c690004