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 494971DE4CD for ; Thu, 1 May 2025 14:12:04 +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=1746108724; cv=none; b=VerpKcLw+fEVwyzgpB2xqJXwGXlXxf467ML+Vn0CouyXznt2XVDGXMO841YzbXOQi/Ij+C1g4gFXkOeIUDplL41oySzbjbvhUIAIwcLaqvysleT1kWzf5kChGOvhi9/3eY4pc1FQwPlWnxamq3r8RofLL8K1gr0sYPUDEhiOtb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108724; c=relaxed/simple; bh=Jxk00JC4tUKim+RW8HtjeI4mIafufNglTHiuMKSdqbk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XBGr9Na2utp8QIQarJag21BhKUcZBnOi145kDJUL/jUGaz9CkeLs+tT2m1Kcxiksmi+7o9fe1p4sLlf6CrI1rrbL995hEGCTDxSkm3VZiTUXVNxMJv/fr6pbkp4k3e+mvDRDW+gLzigBPleVNxQREKQ4nDBR4y4LzAf6aypE0L8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dQ2KX3+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="dQ2KX3+r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B606BC4CEED; Thu, 1 May 2025 14:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108724; bh=Jxk00JC4tUKim+RW8HtjeI4mIafufNglTHiuMKSdqbk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dQ2KX3+rbFeNIlFe5xw4d1ZQhNda6BJngjRTzkH43ykyvjAFebeMlU3Bgfe/Rkneq PuVGtxlNnyhjM5QDQq8b+hvnPnil2KsbeDsEXhRf4UK5G6+/VovicDPQWtwEX2/MDo T2FKYhjhg5OC7e1snKFSugUOvy/wJl2LmlgRLvQ8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49792: iio: adc: mp2629: fix potential array out of bound access Date: Thu, 1 May 2025 16:09:42 +0200 Message-ID: <2025050123-CVE-2022-49792-7fd6@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=2309; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=k2+LpXyV67yH3BDsjgANhyEkoUcKfZbiaqU9DWuBTQQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDZNN67U23z1x6PIt5e/vu9Ll/2+atyIqhzesx6P0R sl2FeaKjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjILF2GBVNT3sf0aZlsWtrv qV+ySlVdyfSrFsM8rTMnCx/4fNLOOurAYyf21D0/6E4nAA== 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: iio: adc: mp2629: fix potential array out of bound access Add sentinel at end of maps to avoid potential array out of bound access in iio core. The Linux kernel CVE team has assigned CVE-2022-49792 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 5.10.156 with commit d95b85c5084ad70011988861ee864529eefa1da0 Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 5.15.80 with commit 1678d4abb2dc2ca3b05b998a9d88616976e4f947 Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 6.0.10 with commit 399b2105a2240e730b9f3880bd8f154247539aa7 Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 6.1 with commit ca1547ab15f48dc81624183ae17a2fd1bad06dfc 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-49792 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/iio/adc/mp2629_adc.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/d95b85c5084ad70011988861ee864529eefa1da0 https://git.kernel.org/stable/c/1678d4abb2dc2ca3b05b998a9d88616976e4f947 https://git.kernel.org/stable/c/399b2105a2240e730b9f3880bd8f154247539aa7 https://git.kernel.org/stable/c/ca1547ab15f48dc81624183ae17a2fd1bad06dfc