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 54F001A83E2 for ; Wed, 26 Feb 2025 01:58:58 +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=1740535138; cv=none; b=OvB4xw8udZYtJi4u3QBAaKCFyIYjwL7VgCZUjyPDDdxW1b/OC4Zr9qridMvbtkTY1rGoFg4BUIs4e1AaHgX1Uaeg+bVEEZGhEq5/YnzEgGHdIBtcWmi+apGYIjlWaxLzmAfnccWGYnaH1oDaE4VnXcO0LeI6zLpcmnVlr6N+KpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535138; c=relaxed/simple; bh=ef+vZq1JHBfaVHWPM6apefJxGUjtPqvNKERn04gB6aM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ehLOHOjsvLDG+hpmD//xEb1StBENlclKpYzfidDuMhc+a1amZdgaM/rfISiGDfkn/u2QIReX9hUdhwsxRZjOsdA8e43BBYXladgQk2gPBo54WNhf+V8+VJHJpMgqgGVWuHd8nKfr/RgZ24chJtWkpVaRXlqfvmotvmTmT5/HhXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SzsW2xze; 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="SzsW2xze" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AD59C4CEDD; Wed, 26 Feb 2025 01:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535138; bh=ef+vZq1JHBfaVHWPM6apefJxGUjtPqvNKERn04gB6aM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SzsW2xzeyo0NTUIJaJppPmS78Eban825p7UaTG3PhOnVb4fU7yuEEdr5r9KZOP4kg MIPu75bBj0isnuV1PJMkwJUeS2jpDSVnM/Yf6LE/EzK9V8QDhxuDwQfjdqHSQQ3AaO ykI/CwmtYLVZObIcbXtS+zYofYNCzejy1Fw0PniI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49122: dm ioctl: prevent potential spectre v1 gadget Date: Wed, 26 Feb 2025 02:55:27 +0100 Message-ID: <2025022604-CVE-2022-49122-b139@gregkh> X-Mailer: git-send-email 2.48.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=2848; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ef+vZq1JHBfaVHWPM6apefJxGUjtPqvNKERn04gB6aM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SmxupHzc9kc0+UnZps+imkVa7yQM+z+3bn/9dLrz8 8crLkf5dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEdsgzzDPn8n7y7/f6xc8i F6j2W2k52HY2/WKY77Gw5JTIeYZPXt852C8FTqpfXzZDEwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: dm ioctl: prevent potential spectre v1 gadget It appears like cmd could be a Spectre v1 gadget as it's supplied by a user and used as an array index. Prevent the contents of kernel memory from being leaked to userspace via speculative execution by using array_index_nospec. The Linux kernel CVE team has assigned CVE-2022-49122 to this issue. Affected and fixed versions =========================== Fixed in 4.9.311 with commit 76c94651005f58885facf9c973007f5ea01ab01f Fixed in 4.14.276 with commit 58880025e3362024f6d8ea01cb0c7a5df6c84ba6 Fixed in 4.19.238 with commit 7ae2c5b89da3cfaf856df880af27d3bb32a74b3d Fixed in 5.4.189 with commit 0320bac5801b31407200227173205d017488f140 Fixed in 5.10.111 with commit 71c8df33fd777c7628f6fbc09b14e84806c55914 Fixed in 5.15.34 with commit 02cc46f397eb3691c56affbd5073e54f7a82ac32 Fixed in 5.16.20 with commit 44e6cb3ab177faae840bb2c1ebda9a2539876184 Fixed in 5.17.3 with commit dd86064417de828ff2102ddc6049c829bf7585b4 Fixed in 5.18 with commit cd9c88da171a62c4b0f1c70e50c75845969fbc18 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-2022-49122 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/md/dm-ioctl.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/76c94651005f58885facf9c973007f5ea01ab01f https://git.kernel.org/stable/c/58880025e3362024f6d8ea01cb0c7a5df6c84ba6 https://git.kernel.org/stable/c/7ae2c5b89da3cfaf856df880af27d3bb32a74b3d https://git.kernel.org/stable/c/0320bac5801b31407200227173205d017488f140 https://git.kernel.org/stable/c/71c8df33fd777c7628f6fbc09b14e84806c55914 https://git.kernel.org/stable/c/02cc46f397eb3691c56affbd5073e54f7a82ac32 https://git.kernel.org/stable/c/44e6cb3ab177faae840bb2c1ebda9a2539876184 https://git.kernel.org/stable/c/dd86064417de828ff2102ddc6049c829bf7585b4 https://git.kernel.org/stable/c/cd9c88da171a62c4b0f1c70e50c75845969fbc18