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 A7D7F204F93 for ; Mon, 13 Oct 2025 13:48:43 +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=1760363323; cv=none; b=hBFj8D+C5ZmeJ+vtooMmzkON317IjlyXHaJPGS4tserYFDbSMK2oSpso62nOdj12lDPGkuBGa9Tmj8q1TtYVJ0FTa83n4k0U1JHlxEcZu7ywhuwS1r9o/XCDb7ITyp/imy/VQtkBX8Sib+ZXb+poezbjPcEpynytJ8J0r5P+9XE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760363323; c=relaxed/simple; bh=QuIFiUfOZdHp5ifT5lHHpGvUlGyLBV5pESCDOE0MZJs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Le0LwSpQMwxGvxTOtG0pXhaN7WeJIQRq5pYbtqpLgOf/293xHu/Z6PnmDTmGEt21dihC5dpOzsrdLBVTKk2g2YaqfPvTCgdRrsZbEWIxpKSmifAL9pEu5kyfySkOTFqKslFrc/mESghMMzfm9C0nGNANA7ZRQygTJ3gVWmH2/Fg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uthO5T+R; 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="uthO5T+R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5EF9C4CEE7; Mon, 13 Oct 2025 13:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760363323; bh=QuIFiUfOZdHp5ifT5lHHpGvUlGyLBV5pESCDOE0MZJs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uthO5T+R76asUD+5v3OvILb5+9YPpApnARjJwpkiMe+qLb5/D7qqz8UhfPcLadK7p hrvxEXNayJzGgOkG94yMbCIA1aUIyk/MNLiKcuodPQOyd+u255dsesl/WeVS5aVVK8 WNaSVE6iWRNkfnY+5SC/rLlVcTO17ApUUBp+CruM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39964: crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg Date: Mon, 13 Oct 2025 15:48:35 +0200 Message-ID: <2025101334-CVE-2025-39964-7964@gregkh> X-Mailer: git-send-email 2.51.0 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=3253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=73qqW2ln2oVoEVc5AFAASPqtQxfhpU/k702XWVvadeY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlvmY0KX35oq3908sE76+M7Pl/sqOOM16jX0ZZj6+X+c XbmNOW/HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRBWcY5sd/a2ZLUAyM76g8 Mk1GgK3Q5czF4wzzQ/lOeDZceXK4VCF6n+5Zy4O5jh4bAA== 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: crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg Issuing two writes to the same af_alg socket is bogus as the data will be interleaved in an unpredictable fashion. Furthermore, concurrent writes may create inconsistencies in the internal socket state. Disallow this by adding a new ctx->write field that indiciates exclusive ownership for writing. The Linux kernel CVE team has assigned CVE-2025-39964 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 5.10.245 with commit 0f28c4adbc4a97437874c9b669fd7958a8c6d6ce Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 5.15.194 with commit e4c1ec11132ec466f7362a95f36a506ce4dc08c9 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.1.154 with commit 1f323a48e9b5ebfe6dc7d130fdf5c3c0e92a07c8 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.6.108 with commit 7c4491b5644e3a3708f3dbd7591be0a570135b84 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.12.49 with commit 9aee87da5572b3a14075f501752e209801160d3d Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.16.9 with commit 45bcf60fe49b37daab1acee57b27211ad1574042 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.17 with commit 1b34cbbf4f011a121ef7b2d7d6e6920a036d5285 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-39964 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: crypto/af_alg.c include/crypto/if_alg.h 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/0f28c4adbc4a97437874c9b669fd7958a8c6d6ce https://git.kernel.org/stable/c/e4c1ec11132ec466f7362a95f36a506ce4dc08c9 https://git.kernel.org/stable/c/1f323a48e9b5ebfe6dc7d130fdf5c3c0e92a07c8 https://git.kernel.org/stable/c/7c4491b5644e3a3708f3dbd7591be0a570135b84 https://git.kernel.org/stable/c/9aee87da5572b3a14075f501752e209801160d3d https://git.kernel.org/stable/c/45bcf60fe49b37daab1acee57b27211ad1574042 https://git.kernel.org/stable/c/1b34cbbf4f011a121ef7b2d7d6e6920a036d5285