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 6C06C196C7C for ; Tue, 16 Jul 2024 11:14: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=1721128444; cv=none; b=rAGcuAm3LScBWO9j1wpQlM9F6AQHvMnBttQk/3LRk5hyXHRLclfqvNpUGT4wI3FpNwaGIL95huZjaBwjiyksNS+C80unmF6i+g9yk9qWxYOagP5SIFMew7xuMgMTYsR0nNAZBkvg7oPHhxXNYjKYLkvb4mNQe/765qAFevsAqa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721128444; c=relaxed/simple; bh=kibY0YIgPWQa66XUfG51WRY9BjUx2H65KRX4Zj2jdcg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gGW25OUyB5IKTE9IRareOSbLhvllGqF7uY04JRrJYGxxyAjFOwAnOVbf5Z8kZsetsE2dyiVRjg7pFDa7abXsVoLIUNc5UAGotpaHqEVFXHpLEZ9NpG4WALRIhUSCYZm0avxM73UwDwwb7hIP3iihJ5P8Kb3ZePjw/YG8jAmPxFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pFMDAuKG; 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="pFMDAuKG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E36ECC4AF0C; Tue, 16 Jul 2024 11:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721128444; bh=kibY0YIgPWQa66XUfG51WRY9BjUx2H65KRX4Zj2jdcg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pFMDAuKGIRQz6e4sKtonxjVWnIll2PAIfGGaINoMoDzD4RavOi/mFw3ICVAgmM2B8 W0ipf60CNVuBqEfq4ooSFMvjV67Xcmf1sAFQQ39RHshruWS4nZCJnhWkj2e57jr2yn P1AXtX7kzdpNNJyFAjZwe0DWzblSCoU99ZMQT13Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48778: mtd: rawnand: gpmi: don't leak PM reference in error path Date: Tue, 16 Jul 2024 13:13:32 +0200 Message-ID: <2024071632-CVE-2022-48778-b11c@gregkh> X-Mailer: git-send-email 2.45.2 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=2189; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kibY0YIgPWQa66XUfG51WRY9BjUx2H65KRX4Zj2jdcg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTQu8kqE9MsJy24SnnROODvbob4ruXKNT7Ps0Qmv34v pEl7/FNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRM4UM89Pq9XWWFB7de0Xh V6e2wNkDKiysPxlms0U+SRCcdWnBm39WVa7vX0UdtNe3AQA= 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: mtd: rawnand: gpmi: don't leak PM reference in error path If gpmi_nfc_apply_timings() fails, the PM runtime usage counter must be dropped. The Linux kernel CVE team has assigned CVE-2022-48778 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.174 with commit 29218853877a and fixed in 5.4.181 with commit 4cd3281a910a Issue introduced in 5.10.94 with commit 538a5e208e7d and fixed in 5.10.102 with commit a4eeeaca5019 Issue introduced in 5.15.17 with commit 0fe08bf9909f and fixed in 5.15.25 with commit 4a7ec50298b1 Issue introduced in 5.16.3 with commit c447696e2f82 and fixed in 5.16.11 with commit 58d3111eafce 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-48778 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/nand/raw/gpmi-nand/gpmi-nand.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/4cd3281a910a5adf73b2a0a82241dd67844d0b25 https://git.kernel.org/stable/c/a4eeeaca50199e3f19eb13ac3b7e0bbb93e22de4 https://git.kernel.org/stable/c/4a7ec50298b1127c5024a750c969ea0794899545 https://git.kernel.org/stable/c/58d3111eafce9e4398654b07f0b1dac27f26ee5b https://git.kernel.org/stable/c/9161f365c91614e5a3f5c6dcc44c3b1b33bc59c0