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 3428F277CA1 for ; Sat, 4 Oct 2025 15:52: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=1759593178; cv=none; b=L/VP8QPBw93k2+wQcAWdmVwPNrH5v1hFf1kZZPPmYrQmpGCi/Io4VEfuP6+wvcbbGdfoWbf6bDli1VW3GYjb97uMZMYnwNF98IydilYZa4NWDDCLDsToHI1P5k5ALNEqJo7Ny5lx/CMWrHvAaatDjE2nFsrHfKNPplyF4f0Tm5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593178; c=relaxed/simple; bh=3sz18KZh6tUtkfkRkVqTIg5UpCfXDr1r+qCFUXly6rc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pg5tp9E0SPitDehgrMHLAnVt/xBpNHrCLzUtpWixiuoPIKLSultlMPLWd0t3dCHUGE9azsOaTIEpkbD46QS3P1CtENHXiUA2jrY2ZxqyInoqgPLQlzsYhs3sGaHX8DHC0VrtvuJxeEbsQmopjOsuz9XMLoobXrkWZ3H81AQsjUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=twi3x/j7; 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="twi3x/j7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB5F6C4CEF1; Sat, 4 Oct 2025 15:52:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593178; bh=3sz18KZh6tUtkfkRkVqTIg5UpCfXDr1r+qCFUXly6rc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=twi3x/j72mRMnXeHoQ7u+7z7QTR/F4HVRr+hZnmhjr0dKImwAzbbm3k5WluBkIvBn dbeZKqPb6JtvxO+cJdz2eHrP3XRG+af8PVehSua/pA9goxQ+xe002kZT/LWJVql7IH PSaoPkCESXti+Zs5N/HLJ6dlDYVM5do09CcHGh0Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50503: mtd: lpddr2_nvm: Fix possible null-ptr-deref Date: Sat, 4 Oct 2025 17:51:28 +0200 Message-ID: <2025100421-CVE-2022-50503-6c75@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=3470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hNTMOcAqvbO5CtGsknCoYkl0XNSK6qTBnr+WNy9Z+LQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPnSpb9392MuXy6dz3zr+75akqv6jcVa96hmvS1rsnT ChV2bqlI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCc4RhrrD87936b52eTJI7 KV6hp6N7MP6yFsOC87GSx39O7H1+dmqdqsOKPWmH/0QFAAA= 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: mtd: lpddr2_nvm: Fix possible null-ptr-deref It will cause null-ptr-deref when resource_size(add_range) invoked, if platform_get_resource() returns NULL. The Linux kernel CVE team has assigned CVE-2022-50503 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 4.9.337 with commit 4d10bd7416e8383340b5524b8d616b8ad01ef1e1 Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 4.14.303 with commit bb9ccb6121ec4140d366147aa866ceb5a21a8d3d Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 4.19.270 with commit e6aafb57d90ff2c1e18554f3a3c36247a59825ce Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 5.4.229 with commit 8eb64dc5a790a529ef49ec94b3337af09dac15d3 Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 5.10.163 with commit 0919982a1744346269320615615c7deb14106661 Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 5.15.86 with commit e0d3e46ac6669cdf1b99bc7b7d92f1221b9a1ff2 Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 6.0.16 with commit f82f63b3911f1b2da68a14d9c4babf3b55feca55 Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 6.1.2 with commit c4cc41e94d8357f5f02b8ef40257bb23931d8438 Issue introduced in 3.16 with commit 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 and fixed in 6.2 with commit 6bdd45d795adf9e73b38ced5e7f750cd199499ff 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-50503 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/mtd/lpddr/lpddr2_nvm.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/4d10bd7416e8383340b5524b8d616b8ad01ef1e1 https://git.kernel.org/stable/c/bb9ccb6121ec4140d366147aa866ceb5a21a8d3d https://git.kernel.org/stable/c/e6aafb57d90ff2c1e18554f3a3c36247a59825ce https://git.kernel.org/stable/c/8eb64dc5a790a529ef49ec94b3337af09dac15d3 https://git.kernel.org/stable/c/0919982a1744346269320615615c7deb14106661 https://git.kernel.org/stable/c/e0d3e46ac6669cdf1b99bc7b7d92f1221b9a1ff2 https://git.kernel.org/stable/c/f82f63b3911f1b2da68a14d9c4babf3b55feca55 https://git.kernel.org/stable/c/c4cc41e94d8357f5f02b8ef40257bb23931d8438 https://git.kernel.org/stable/c/6bdd45d795adf9e73b38ced5e7f750cd199499ff