Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7B6A82EDD66 for ; Fri, 22 Aug 2025 13:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755867691; cv=none; b=b8shVa1lx4vDStdwq0bJoWB1YiRWKKEItILsAqc4J11qzT59yzomKAeDhjv601B25XS/Cp2V23oMWYHgX6/3h0MuS3KGyFVTakth1XCCT2S3RCmS/LD40f9Kd7ytg6Nr9fw0LtnAGLCm12LJb4VC6jIvJje5FPbfq6nBUawVoI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755867691; c=relaxed/simple; bh=ClXykkR9DEunOJJbWdOh+CDye6f1DyPjTnOx2sI98lE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uj5k33FZqNUCBxMBHSpZ2I6OLbJqGn2esSdgOjnS7q0kBr27f4aCYVnD2/3ZZOv+ITTdvIe8kFUIkCBrgVOMHto0JLUR3OAtmRnNYT7Xre41IzEqHgtuv3qL80kXzaE2F/Ncb42sGyEFZ1KSaKW5ahkeV9c9ABzr3+xRb0oiJ1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WiTCII9l; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WiTCII9l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76B52C4CEED; Fri, 22 Aug 2025 13:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755867690; bh=ClXykkR9DEunOJJbWdOh+CDye6f1DyPjTnOx2sI98lE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WiTCII9li8zV+LvzLZWcsx8qJFMSdIcvWue6qmAjmuQBVBFhZ9fOo+MA5Lg061LEI TAXtb5kir6Pr0KfLPFUApnL8wPUCxlLhbAc0H9ffdG7ZjFPoWgT0vNjQwNGhytVPFP FWJf6U4QgiZtAcY+a4P/vlP4NheYgUon9nUtrB/s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38617: net/packet: fix a race in packet_set_ring() and packet_notifier() Date: Fri, 22 Aug 2025 15:01:13 +0200 Message-ID: <2025082213-CVE-2025-38617-1e47@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3320; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2Ew4KdYV0Xjp1aKWvh5dpMhinAThBhdqoar6uG2h+h4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrsiSvbmf1js9yYJxtc4fvQczu2RHHWM3bDZgb1tZXn NFM/XmsI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayeh/DPIWfW6T07t2SFS4I zXYJVv031y/4D8P8iuL5ab5M1YcfL7pdzcbEKjPNe7UCAA== 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: fix a race in packet_set_ring() and packet_notifier() When packet_set_ring() releases po->bind_lock, another thread can run packet_notifier() and process an NETDEV_UP event. This race and the fix are both similar to that of commit 15fe076edea7 ("net/packet: fix a race in packet_bind() and packet_notifier()"). There too the packet_notifier NETDEV_UP event managed to run while a po->bind_lock critical section had to be temporarily released. And the fix was similarly to temporarily set po->num to zero to keep the socket unhooked until the lock is retaken. The po->bind_lock in packet_set_ring and packet_notifier precede the introduction of git history. The Linux kernel CVE team has assigned CVE-2025-38617 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.148 with commit 7de07705007c7e34995a5599aaab1d23e762d7ca Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.102 with commit 88caf46db8239e6471413d28aabaa6b8bd552805 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.42 with commit f2e8fcfd2b1bc754920108b7f2cd75082c5a18df Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.15.10 with commit e50ccfaca9e3c671cae917dcb994831a859cf588 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.16.1 with commit f1791fd7b845bea0ce9674fcf2febee7bc87a893 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.17-rc1 with commit 01d3c8417b9c1b884a8a981a3b886da556512f36 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-2025-38617 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/7de07705007c7e34995a5599aaab1d23e762d7ca https://git.kernel.org/stable/c/88caf46db8239e6471413d28aabaa6b8bd552805 https://git.kernel.org/stable/c/f2e8fcfd2b1bc754920108b7f2cd75082c5a18df https://git.kernel.org/stable/c/e50ccfaca9e3c671cae917dcb994831a859cf588 https://git.kernel.org/stable/c/f1791fd7b845bea0ce9674fcf2febee7bc87a893 https://git.kernel.org/stable/c/01d3c8417b9c1b884a8a981a3b886da556512f36