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 16DEE3D3332 for ; Mon, 10 Aug 2026 12:11:10 +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=1786363871; cv=none; b=TEzb932rtXC5Hr1usqcHvL93oXh0xN8EmTuMDkqP/MIv9LtduGWnJ4Vuyq7l2v1LJAl88XFbAqd52fME5lD22oh1XmmJU7T3tkxMdfkr/GvkzLiiTNQ9YlfA9+2QziUSvTp2LszCHEVmFfVUG3u+l7Vu5NqzJ4aFn6pXm08vyGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363871; c=relaxed/simple; bh=G3sPYr73hmPEXeJysyaMPqN9OighS/It7yBjReZhf7g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cL1CTA1TUFVryot0pohhf75qtSFQdwUgLL4xV6aPTi+OBjtqJuRIzew5WcDVupYeYuOg+DB6h3WYlD1kW3zMJ8W1Ph285m09P4Sy+qmGU4EtrN/FwhxHL4b2tLOXBSF8O11l6Y/hutYylvYJ0z36RMLwT4K85FhnMVdb38aCPGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H72LxOi8; 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="H72LxOi8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F2F71F00AC4; Mon, 10 Aug 2026 12:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363870; bh=U5mBzXB+qFON4oFrVJqpTnn4yOKEJo1qIk1s9ybsRx8=; h=From:To:Cc:Subject:Date:Reply-To; b=H72LxOi84EuIdIDNqHi4XdHYHUrIu/b6EflyPQ+7V0lCwL8tpN1gtIdAVrT11bGfJ /Ayipols/CgbrX2PXql7WkX05v6r9nODKECB4EVh1MAR09TyReFBf0/jd1ZauUsiZU 8jJD//W7k6plLA0yKCuSBOFMJVweuoyhOvoQ9mf0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68338: net/packet: avoid fanout hook re-registration after unregister Date: Mon, 10 Aug 2026 14:00:55 +0200 Message-ID: <2026081036-CVE-2026-68338-8547@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=3609; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W8J2+/VcWRpaq9bfr4nIgX9ifzHxq2Tkw3LUeEb/qyY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVezbE2MqcFXf1e3h2upvIqf1OF35P92TdEbEpRThqT p5nRF5wRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkyn2GBava5OxfVuS57RQz frN9t3T19IZ3YgzzPaPOf8j9Khy4vs1/vkdTCEPH26tOAA== 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/packet: avoid fanout hook re-registration after unregister packet_set_ring() temporarily detaches a socket from packet delivery while reconfiguring its ring. It records the previous running state, clears po->num, unregisters the protocol hook when needed, drops po->bind_lock, and later restores po->num and re-registers the hook from the saved was_running value. That unlocked window can race with NETDEV_UNREGISTER. The notifier can observe the socket as not running, skip __unregister_prot_hook(), and invalidate the per-socket binding by setting po->ifindex to -1 and clearing po->prot_hook.dev. A one-member fanout group can still retain its shared fanout hook device pointer. When packet_set_ring() resumes, re-registering solely from the stale was_running state can re-add the fanout hook after the device has been unregistered. Treat po->ifindex == -1 as an invalidated binding after reacquiring po->bind_lock. This is distinct from ifindex 0, the normal unbound/wildcard state: ifindex -1 marks an existing device binding that was invalidated when the device was unregistered. Restore po->num as before, but do not re-register the hook if device unregister already detached the socket. The Linux kernel CVE team has assigned CVE-2026-68338 to this issue. Affected and fixed versions =========================== Issue introduced in 3.1 with commit dc99f600698dcac69b8f56dda9a8a00d645c5ffc and fixed in 6.6.148 with commit 80ec024d53a05c60ad1d08968dcf745f10c1665c Issue introduced in 3.1 with commit dc99f600698dcac69b8f56dda9a8a00d645c5ffc and fixed in 6.12.101 with commit 0a052e0808e015e68144a9877e6ef42b952c49fa Issue introduced in 3.1 with commit dc99f600698dcac69b8f56dda9a8a00d645c5ffc and fixed in 6.18.42 with commit 1bc55c29cd85818e9052f17deb287d5a11fb817f Issue introduced in 3.1 with commit dc99f600698dcac69b8f56dda9a8a00d645c5ffc and fixed in 7.1.6 with commit a885387dae7986a55bae5c77a15bdd447f64e9b9 Issue introduced in 3.1 with commit dc99f600698dcac69b8f56dda9a8a00d645c5ffc and fixed in 7.2-rc5 with commit 50aff80475abd3533eef4320477037e6fcc6b56e 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-68338 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/packet/af_packet.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/80ec024d53a05c60ad1d08968dcf745f10c1665c https://git.kernel.org/stable/c/0a052e0808e015e68144a9877e6ef42b952c49fa https://git.kernel.org/stable/c/1bc55c29cd85818e9052f17deb287d5a11fb817f https://git.kernel.org/stable/c/a885387dae7986a55bae5c77a15bdd447f64e9b9 https://git.kernel.org/stable/c/50aff80475abd3533eef4320477037e6fcc6b56e