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 BEBCE239561 for ; Wed, 18 Jun 2025 11:09:11 +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=1750244951; cv=none; b=kS5NH8fmirFNk40n8fjmj1mk7yrwh9jC0g0WW0S/eA899PDW8Dj0eiFamwoKEMJQB35dzQ7/KbgVqZaHpBb5gD5P10OccLw2Gtf0j8Fcwm+WQO7ankPQQ5YvgV1h9I6u4Chh7S3TXjiaH/ChHyDPMBxVL62zKdcGabDpo5uoHYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244951; c=relaxed/simple; bh=QDnADXzHHS531xaMDm+GptQibh7K5tqtfNe2Bwb7yAY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=m2mtG/beHkLud2UTudc+yvc8UvjdrqiK7BshGtDW5SHli07ezjALyx11fCujoNrvWn7OUeOdURdIG6YGA0R1bQU3SKllahzrK7k84cRM6yn8+0t1KWVMOXQYVLwLzP+6p0xmhKBvEWjsU6F4IND5mLrZ53zX0KnpWhrCG/8WPaU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tYBs0fxo; 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="tYBs0fxo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5077EC4CEE7; Wed, 18 Jun 2025 11:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244951; bh=QDnADXzHHS531xaMDm+GptQibh7K5tqtfNe2Bwb7yAY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tYBs0fxoUHEaneMueZWhF5qqiLeiseAJnQfhA9gH1BXq/++O3IvV0HwMEys+Fzi0Z 0C9dcdXkwIcVXQ1UOiqMrU4h49rS6GirllMPri4MT7wCm5BjAg7kK5/Mwjf/O2B5ua BAELSDCGssq/CtDik5jht9LRtQOG1AO4GZrcJAQk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50085: dm raid: fix address sanitizer warning in raid_resume Date: Wed, 18 Jun 2025 13:02:30 +0200 Message-ID: <2025061858-CVE-2022-50085-7e05@gregkh> X-Mailer: git-send-email 2.49.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=2708; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BC7oDRhwq5bC+ko6Ys54GNUMgLxBkbqKDK0zMbc9BlE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc7L4dnMuSD5kx3N696ep2bPvmU2RPbpu4guvldG+T z3C7/006ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJlPYwLJjb3PV20gOGa74d kZw/HAX+vb8xUYJhfqnat+MJQg8+LHI0mbOJW9FTa8XkagA= 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: dm raid: fix address sanitizer warning in raid_resume There is a KASAN warning in raid_resume when running the lvm test lvconvert-raid.sh. The reason for the warning is that mddev->raid_disks is greater than rs->raid_disks, so the loop touches one entry beyond the allocated length. The Linux kernel CVE team has assigned CVE-2022-50085 to this issue. Affected and fixed versions =========================== Fixed in 4.14.291 with commit c2f075e729636a44e98d9722e3852c2fa6fa49b6 Fixed in 4.19.256 with commit 3bfdc95466f5be4d8d95db5a5b470d61641a7c24 Fixed in 5.4.211 with commit 71f601c779b3cc1baf497796f5b922c3fe5d2a1e Fixed in 5.10.137 with commit c2d47bef93fb74aa97d90f9a40ca657b8f376083 Fixed in 5.15.61 with commit 50235d9a1f1f742619ed9963cb9f240e5b821d46 Fixed in 5.18.18 with commit 74af83732a39ab7d3bc9b49219a535853e25679f Fixed in 5.19.2 with commit 2a9faa704d83ff0b04387e385efd8ae21cd95af6 Fixed in 6.0 with commit 7dad24db59d2d2803576f2e3645728866a056dab 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-50085 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-raid.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/c2f075e729636a44e98d9722e3852c2fa6fa49b6 https://git.kernel.org/stable/c/3bfdc95466f5be4d8d95db5a5b470d61641a7c24 https://git.kernel.org/stable/c/71f601c779b3cc1baf497796f5b922c3fe5d2a1e https://git.kernel.org/stable/c/c2d47bef93fb74aa97d90f9a40ca657b8f376083 https://git.kernel.org/stable/c/50235d9a1f1f742619ed9963cb9f240e5b821d46 https://git.kernel.org/stable/c/74af83732a39ab7d3bc9b49219a535853e25679f https://git.kernel.org/stable/c/2a9faa704d83ff0b04387e385efd8ae21cd95af6 https://git.kernel.org/stable/c/7dad24db59d2d2803576f2e3645728866a056dab