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 4D2B11A5B95 for ; Wed, 26 Feb 2025 01:58:25 +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=1740535105; cv=none; b=P4lhGsp2fUKX9EbFL6A5Cz/8YtFzJiNVGJXf7sX6jkrnbb0xwWJfRQ+KLkrB+vIzRrvKphbjIWeLsNtXHZYsO3gjqadGrNOCbi/OLV6M0NfagfdCi6np/pJvPjcK4ZHebhR01ubyfNQp9fXM96jX9pApF5z7Sh8T3Pc+lmwLQJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535105; c=relaxed/simple; bh=UQmxEFfSAU3ZwRACNyzVMU7dZrNfAfheagL1wb+zsBk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Gc86mJ4l7sRJSmhM0cCoQCuGhqb59qEQPvW+vzgM4oQa1QdX4qwQelvpKEXGscL6KLWO85f/0sLX/l2VpILVcTJQYvJ78BsIbcBpqAB/dhQYJvoPdL9WSZAMe2SCk8u9nFLpy4lQqP0GzZUJ7P0Uzk2P977CQyEfRM+o0e0bT0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DBNUk3hj; 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="DBNUk3hj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EBA9C4CEDD; Wed, 26 Feb 2025 01:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535105; bh=UQmxEFfSAU3ZwRACNyzVMU7dZrNfAfheagL1wb+zsBk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DBNUk3hjbkzhN+cJRwLunwGOFhU7QM8gijUIhIY8uE94E8iflrtUj4OvPLJSp9o77 SYDp6xG3Fn3ezheLCatWCmJraHQp4IuIxudThOaX0f8BjjS3A1aAUxYnWkxU5iYVwl Lj7gag9zS5QLOfsSo02U+Qj0GA0ZWb+oReR7d450= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49113: powerpc/secvar: fix refcount leak in format_show() Date: Wed, 26 Feb 2025 02:55:18 +0100 Message-ID: <2025022602-CVE-2022-49113-5c20@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=2180; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UQmxEFfSAU3ZwRACNyzVMU7dZrNfAfheagL1wb+zsBk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Sqwcz/zuy7azu67vKRnCmVdfeSy7XGeR3fW2npbwc M2ZF950xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQCdzLMLzh879qKHQGC5zx0 ukO3PbBIWjhTlmHBCZ0tOSH3btVKXkndtZb3RUEH17T9AA== 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: powerpc/secvar: fix refcount leak in format_show() Refcount leak will happen when format_show returns failure in multiple cases. Unified management of of_node_put can fix this problem. The Linux kernel CVE team has assigned CVE-2022-49113 to this issue. Affected and fixed versions =========================== Fixed in 5.10.111 with commit 02222bf4f0a27f6eba66d1f597cdb5daadd51829 Fixed in 5.15.34 with commit 2a71e3ecd829a82013cf095c55068c61d991e885 Fixed in 5.16.20 with commit c105ffb6b9744158e37e9f81f0f38861951d1c1f Fixed in 5.17.3 with commit d05e4265d33af60b39606c20c731e3e719bfe3d6 Fixed in 5.18 with commit d601fd24e6964967f115f036a840f4f28488f63f 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-49113 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: arch/powerpc/kernel/secvar-sysfs.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/02222bf4f0a27f6eba66d1f597cdb5daadd51829 https://git.kernel.org/stable/c/2a71e3ecd829a82013cf095c55068c61d991e885 https://git.kernel.org/stable/c/c105ffb6b9744158e37e9f81f0f38861951d1c1f https://git.kernel.org/stable/c/d05e4265d33af60b39606c20c731e3e719bfe3d6 https://git.kernel.org/stable/c/d601fd24e6964967f115f036a840f4f28488f63f