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 225772E62A1 for ; Tue, 7 Oct 2025 15:25:48 +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=1759850748; cv=none; b=Car9XzCtaM4fu6LqQoZ+oEpCFiIk2p7NbmX0nnoBymcWWBMjTdJGOCm6hvM7PM7+hd4jl1Yo56Z6bEN/5AseTPLPbcnAVbncuJY+LK73ghK7VY35EwZ+9mU/dyr6HgWNAi7/mJn8Aa4j/lOF1d0ELnSNUQ+GPt8XFNYVxOBIPNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850748; c=relaxed/simple; bh=T5ZgUXUiQ1UmKap+3qO4M/YDPFA1gTDISyZIVz8B/s4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q2MRyh44OhihuHOLU16Jq2WaxMEmPtn45lfYKZFRDYdl2y1P7k0YiEacjR29+uFhsP8yY/50kwmX3thLWYpXHGvTdK4WMhb0qNjJtBqCK0nEPQdLaAuMJngpHINvLUZXWwMC3zYSn19AcboQjKnZxRoSFFTPxOnQggEEFyuvsCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=otv8Z9qc; 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="otv8Z9qc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A579DC4CEF1; Tue, 7 Oct 2025 15:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850748; bh=T5ZgUXUiQ1UmKap+3qO4M/YDPFA1gTDISyZIVz8B/s4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=otv8Z9qcrpjQJSAFcDP4B+/VGYcSx6XxbvsnjLL8klgWSzB+TsaK86X51PCTHXQ8F EJRLUhTWs0rPUF0ht3+UEz4zxe8o4CiNpvLtFxwdMQagbzfGkYl7tCiJkNrVFfkP+K vMouuB/Rvp8IshmivUPzsdo3aS+yyKZWz/WT3+N4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53684: xfrm: Zero padding when dumping algos and encap Date: Tue, 7 Oct 2025 17:21:43 +0200 Message-ID: <2025100709-CVE-2023-53684-db58@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=2207; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tqeHScQtnbqKTEFYhKvHKs4VjfutwEuVgNi4HCxC5q4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9Z8JGHxfE3H+Wagxx1X5D8XFNz+JFgqlc13xruVk2 K+4i+tpRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEcBPDfEePkxKC8qo9jtzH P0w7cWCNYshbN4YFK+Ud9kvlnPy+QEKvSiXe+Td/p+sEAA== 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: xfrm: Zero padding when dumping algos and encap When copying data to user-space we should ensure that only valid data is copied over. Padding in structures may be filled with random (possibly sensitve) data and should never be given directly to user-space. This patch fixes the copying of xfrm algorithms and the encap template in xfrm_user so that padding is zeroed. The Linux kernel CVE team has assigned CVE-2023-53684 to this issue. Affected and fixed versions =========================== Fixed in 5.15.106 with commit 0725daaa9a879388ed312110f62dbd5ea2d75f8f Fixed in 6.1.23 with commit 5218af4ad5d8948faac19f71583bcd786c3852df Fixed in 6.2.10 with commit 1a351e26cc010d6991fbbd5701ac16581372e26f Fixed in 6.3 with commit 8222d5910dae08213b6d9d4bc9a7f8502855e624 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-2023-53684 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/xfrm/xfrm_user.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/0725daaa9a879388ed312110f62dbd5ea2d75f8f https://git.kernel.org/stable/c/5218af4ad5d8948faac19f71583bcd786c3852df https://git.kernel.org/stable/c/1a351e26cc010d6991fbbd5701ac16581372e26f https://git.kernel.org/stable/c/8222d5910dae08213b6d9d4bc9a7f8502855e624