From mboxrd@z Thu Jan 1 00:00:00 1970 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 9E98F19DF75 for ; Wed, 26 Feb 2025 01:57:38 +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=1740535058; cv=none; b=noheArVa2VJba2e/h5o+4EYhJBxRNj52RUAxk49elGun8O0iLOQTK7G7Y7VmEKJHaH+nd+SCNqWce5SIJWC0jFn4Ui4hWB3eh5f1XcnvWo+I2A6jHOXwroPJ77wyZ9ueRaVdiTVZEMjlu+gf3KTLlGFBtvaStxBDxfk4+D0pDeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535058; c=relaxed/simple; bh=dXVRc7SAFoMKoQHEge99dUL8Izq6L1fRDYPdTdGnEMo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fyQSqJl4dgPH0pAFvB+lGWAR19TrepuhcXDofTG91fCyuOmPPeVVq6OeqzgU0si4Wcp55swyjI82oLQSDtFdzy3XgFXd19Kq7JU9vkXMYJGSRs3Lv/8dy2FN01iwlCqsTxaeruiQyeSodi9/FMa1uyWiaYIi5YV6Eng5yYCFbag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cVYWyyCy; 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="cVYWyyCy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EDA2C4CEDD; Wed, 26 Feb 2025 01:57:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535058; bh=dXVRc7SAFoMKoQHEge99dUL8Izq6L1fRDYPdTdGnEMo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cVYWyyCySjImxYF6Rmhqx3Zh50ClPm48AYWybya+6ZSRfKRARzCP6e9Y3cRwwfb2o ZNk594OFgg/Bstd0loK4990Z6Cgzl1ms3P4Dqu9aHnUjQGSejUAReZG0IyIb5FUhDd vlMRb3xunj1qZ9d66Kc9UKJKfXbyQxCIKilKgPeE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49050: memory: renesas-rpc-if: fix platform-device leak in error path Date: Wed, 26 Feb 2025 02:54:15 +0100 Message-ID: <2025022651-CVE-2022-49050-e12a@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=2327; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dXVRc7SAFoMKoQHEge99dUL8Izq6L1fRDYPdTdGnEMo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SvQDDKYKPP17ymwjz5Wi+HOdX55IXd7t8GnWoWP8w U+DhJWzO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiex4zzGbz/F+32ulPYZbO wi9PhPRlLxbv38ow3/9azowy0W/9OXMXX1Y/sNSA7+xWbQA= 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: memory: renesas-rpc-if: fix platform-device leak in error path Make sure to free the flash platform device in the event that registration fails during probe. The Linux kernel CVE team has assigned CVE-2022-49050 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit ca7d8b980b67f133317525c4273e144116ee1ae5 and fixed in 5.10.112 with commit c089ffc846c85f200db34ad208338f4f81a6d82d Issue introduced in 5.9 with commit ca7d8b980b67f133317525c4273e144116ee1ae5 and fixed in 5.15.35 with commit 05d1824a7fb43ab9adb1eb82404954af81d8c984 Issue introduced in 5.9 with commit ca7d8b980b67f133317525c4273e144116ee1ae5 and fixed in 5.17.4 with commit 66b9b707ea4dcafca92b6261c6924652914e3b73 Issue introduced in 5.9 with commit ca7d8b980b67f133317525c4273e144116ee1ae5 and fixed in 5.18 with commit b452dbf24d7d9a990d70118462925f6ee287d135 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-49050 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/memory/renesas-rpc-if.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/c089ffc846c85f200db34ad208338f4f81a6d82d https://git.kernel.org/stable/c/05d1824a7fb43ab9adb1eb82404954af81d8c984 https://git.kernel.org/stable/c/66b9b707ea4dcafca92b6261c6924652914e3b73 https://git.kernel.org/stable/c/b452dbf24d7d9a990d70118462925f6ee287d135