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 B030C2D7DE7 for ; Tue, 23 Dec 2025 13:58:38 +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=1766498318; cv=none; b=qokcBr6y4kCZ0QNi5RohvVy8XFV6C4FcChZSvmb9UW0SwwVcBPQ05i331VmbtDlhl12lluASWBxxMyjCH+FB7ohdbBHrlQoJ/DZnYZH/8wuyLPUmHCn43ZHVJ/eCt/ag5TWohIIlthtqG/V6tuQM0wtpt34e4SAl19is8pNe8L4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766498318; c=relaxed/simple; bh=Cs7RkZG8/NcMGId6jTLANYLA9wGkXrS845eLEkv9NgY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LGqB5VFYxbn3aC7H1FgCVC8x7HsxGZxgaKU+aLDolt0khMooBBkS/IDpwozxH/FbX0Guf4WJFvgxbwXKa0FL/pPKd++O8KaJ22dwJCZUYJ+Swz6YSUsss8iiPYJX4z+H+yJQaK+NCK8qLzrapXcDbFmrU07eaKu3v2WpH2S7pxc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XxwkqGHg; 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="XxwkqGHg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A0A3C116C6; Tue, 23 Dec 2025 13:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766498317; bh=Cs7RkZG8/NcMGId6jTLANYLA9wGkXrS845eLEkv9NgY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=XxwkqGHgZIXgn1qe38iGMXGtUaA9M184f9AY+hbJqWGqr5naaRU6qcOw0TRV1q926 IqxbUCdvCw9vGOQxCLsDAnclKeMbERTkSRoWkD1rzG6JEZIILBS1wasaUlp6EKUl9U HWjzdA1GT2ulXI1SIlJz9CFP7KZ4qY+7kdY+N+bI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68339: atm/fore200e: Fix possible data race in fore200e_open() Date: Tue, 23 Dec 2025 14:58:33 +0100 Message-ID: <2025122331-CVE-2025-68339-4fc3@gregkh> X-Mailer: git-send-email 2.52.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=4205; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T6dpRlPh3FuWKI3lZ/dhkLyAB8KguOvedRE0jcAl/N4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJleCzhedDYvOZhs1FUpKGXosPmz6b7iM4sSjKzqJ97du zDWWLOjI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSNpFhfrrIu3nzN+T9Y58i Lzyl56/ZK8vmlwyzWY3Xc8isLzm377XrZ6E9GhqNm5uTAQ== 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: atm/fore200e: Fix possible data race in fore200e_open() Protect access to fore200e->available_cell_rate with rate_mtx lock in the error handling path of fore200e_open() to prevent a data race. The field fore200e->available_cell_rate is a shared resource used to track available bandwidth. It is concurrently accessed by fore200e_open(), fore200e_close(), and fore200e_change_qos(). In fore200e_open(), the lock rate_mtx is correctly held when subtracting vcc->qos.txtp.max_pcr from available_cell_rate to reserve bandwidth. However, if the subsequent call to fore200e_activate_vcin() fails, the function restores the reserved bandwidth by adding back to available_cell_rate without holding the lock. This introduces a race condition because available_cell_rate is a global device resource shared across all VCCs. If the error path in fore200e_open() executes concurrently with operations like fore200e_close() or fore200e_change_qos() on other VCCs, a read-modify-write race occurs. Specifically, the error path reads the rate without the lock. If another CPU acquires the lock and modifies the rate (e.g., releasing bandwidth in fore200e_close()) between this read and the subsequent write, the error path will overwrite the concurrent update with a stale value. This results in incorrect bandwidth accounting. The Linux kernel CVE team has assigned CVE-2025-68339 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.247 with commit 1b60f42a639999c37da7f1fbfa1ad29cf4cbdd2d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.197 with commit bd1415efbab507b9b995918105eef953013449dd Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.159 with commit ed34c70d88e2b8b9bc6c3ede88751186d6c6d5d1 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.119 with commit 9917ba597cf95f307778e495f71ff25a5064d167 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.61 with commit 667ac868823224374f819500adc5baa2889c7bc5 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.17.11 with commit 6610361458e7eb6502dd3182f586f91fcc218039 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18 with commit 82fca3d8a4a34667f01ec2351a607135249c9cff 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-68339 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: drivers/atm/fore200e.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/1b60f42a639999c37da7f1fbfa1ad29cf4cbdd2d https://git.kernel.org/stable/c/bd1415efbab507b9b995918105eef953013449dd https://git.kernel.org/stable/c/ed34c70d88e2b8b9bc6c3ede88751186d6c6d5d1 https://git.kernel.org/stable/c/9917ba597cf95f307778e495f71ff25a5064d167 https://git.kernel.org/stable/c/667ac868823224374f819500adc5baa2889c7bc5 https://git.kernel.org/stable/c/6610361458e7eb6502dd3182f586f91fcc218039 https://git.kernel.org/stable/c/82fca3d8a4a34667f01ec2351a607135249c9cff