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 714BA14EC73 for ; Wed, 26 Feb 2025 01:59:27 +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=1740535167; cv=none; b=qWQRvsCAvez0dfw9GI/XzxRVTYqajZJtgmUqq7X25d3qUH4hlxgpJduEwIIR9vXOTpJdhIpEqRhGBmAVTGk1GE1Iu3yU6weLr6X4MXFuuzR+mvwl5IxNxBofZhOvreWxBtFkFEDzhvq8l/YxebSLvUy4bn4yZyfw5AvjbiJ+1uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535167; c=relaxed/simple; bh=45zpIWnlKW4D8cs+C1klFZxk3FxG9ZU8f0q7z2LTsac=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bR0eycHYXGx8KBfSYEbJtmcihcsfDJYKFAnVsl/CVNh7QRFLCt8qRkPox8yElFFQVmTgn8EHI8ced5rAaZjZ4Rg0MBvU2ICO4bRhSuP5rvYZOFJ5kTp7d9aiZDFWeEma2kKebSDPHQGD/yJRbQ5fmEBTVgDYgwtHtFp/t/P4lt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aDeMjJ8o; 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="aDeMjJ8o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48A5FC4CEDD; Wed, 26 Feb 2025 01:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535167; bh=45zpIWnlKW4D8cs+C1klFZxk3FxG9ZU8f0q7z2LTsac=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aDeMjJ8o6KPFfT8cqaM/OpNyyjZNd3CybgmOE1Z55H86+VoRubV8Ud0zZCC9Vl7En MGf30i7aTsYrt9/2CwO58uKal21Hh0fdbX7qxL28zSx5693fcZTn4I0NkaiY3QgoHQ OdIbAiHKh8Gb8DlhGvNNJp/Zhh8sSrsBydaKEzw4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49163: media: imx-jpeg: fix a bug of accessing array out of bounds Date: Wed, 26 Feb 2025 02:56:08 +0100 Message-ID: <2025022611-CVE-2022-49163-f5bc@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=2339; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=45zpIWnlKW4D8cs+C1klFZxk3FxG9ZU8f0q7z2LTsac=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SpxXzuzPXzrhVAK33rUYt38Nu+u9Y3pWLTte0+rya 0bXTVmhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIvRqG+WndDyNL/ploTr0p cfSW9A+mL6r9ggwL+hqvJLJF3JiYUbpx0u3QkE8cRQxhAA== 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: media: imx-jpeg: fix a bug of accessing array out of bounds When error occurs in parsing jpeg, the slot isn't acquired yet, it may be the default value MXC_MAX_SLOTS. If the driver access the slot using the incorrect slot number, it will access array out of bounds. The result is the driver will change num_domains, which follows slot_data in struct mxc_jpeg_dev. Then the driver won't detach the pm domain at rmmod, which will lead to kernel panic when trying to insmod again. The Linux kernel CVE team has assigned CVE-2022-49163 to this issue. Affected and fixed versions =========================== Fixed in 5.15.33 with commit 02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747 Fixed in 5.16.19 with commit 20c8b90430c5d6c4a3936eaa7c35aac670581487 Fixed in 5.17.2 with commit e209e6db2e527db6a93b14c2deedf969caca78fc Fixed in 5.18 with commit 97558d170a1236280407e8d29a7d095d2c2ed554 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-49163 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/media/platform/imx-jpeg/mxc-jpeg.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/02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747 https://git.kernel.org/stable/c/20c8b90430c5d6c4a3936eaa7c35aac670581487 https://git.kernel.org/stable/c/e209e6db2e527db6a93b14c2deedf969caca78fc https://git.kernel.org/stable/c/97558d170a1236280407e8d29a7d095d2c2ed554