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 CE68E1DC753 for ; Mon, 21 Oct 2024 20:10:40 +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=1729541440; cv=none; b=Td4U87CYSWrW1CcrQ6N5QmSBRmdV41VWYWuiNK3NLvIQcPk1slrPZii2LpwIg6ctbT5qUitaQIEhjGD1QRe0aGzKNubVPGJ0WhKFgGnAwiZeu3/pzEL7v4nhuLFodhXCytAGUMokoljcCinRTSGDWz0WB7r+HPt/8wEYdKay57w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541440; c=relaxed/simple; bh=lztZj+6Zj3bKhC8YB4VsLygJziz+rwVv09oBHDbcbmY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jMemWiWqWxala1dGH7Dzapqo7hZvwGaRCrLIGDIouJdVo00ddpMrtc2sMWTTxtbeKA/EVHC5o9u1rVGkhAwSwjbnyTjM3IouKakvMel4x5l517nuXpRtr8HGJ/ea584931FYhEZLMkLLhdlueJhAzP9k0SqfxLWpw97WQIPs87c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kSwHXM/N; 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="kSwHXM/N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4835AC4CEC3; Mon, 21 Oct 2024 20:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541440; bh=lztZj+6Zj3bKhC8YB4VsLygJziz+rwVv09oBHDbcbmY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kSwHXM/Ny/20Xf0d7rZkAwh4VzYDWmf7EotNpaeXJjpAUDnDnhGe6BRLXHgROfopj W/bA91oNqBZyUpS1Iht3/vvmnGgm93Aw9LJ4GLAQkv9C6vqehNUZFfghFPeREqVEIi z5KCtYrNle/MCy8xhXp/2xt3buSYww8Idw61IszM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48965: gpio/rockchip: fix refcount leak in rockchip_gpiolib_register() Date: Mon, 21 Oct 2024 22:05:57 +0200 Message-ID: <2024102143-CVE-2022-48965-0039@gregkh> X-Mailer: git-send-email 2.47.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=1994; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lztZj+6Zj3bKhC8YB4VsLygJziz+rwVv09oBHDbcbmY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW8S/dTHzqcxMZbJgrd1euXlGkJZWuNSMqCtn2y6GX 9G9eMm0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSzMCw4IrRPrb3O3VUvBc+ tOl1VAm0Lv35mGFBlxbX2qsB22V2G4q8y10x8b6tofIlAA== 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: gpio/rockchip: fix refcount leak in rockchip_gpiolib_register() The node returned by of_get_parent() with refcount incremented, of_node_put() needs be called when finish using it. So add it in the end of of_pinctrl_get(). The Linux kernel CVE team has assigned CVE-2022-48965 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 936ee2675eee and fixed in 5.15.83 with commit 5cb8f1a784fd Issue introduced in 5.15 with commit 936ee2675eee and fixed in 6.0.13 with commit 033c79b7ee8a Issue introduced in 5.15 with commit 936ee2675eee and fixed in 6.1 with commit 63ff545af73f 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-48965 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/gpio/gpio-rockchip.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/5cb8f1a784fd6115be58282fe15105572319d8be https://git.kernel.org/stable/c/033c79b7ee8a7bf1c1a13ac3addc91184425cbae https://git.kernel.org/stable/c/63ff545af73f759d1bd04198af8ed8577fb739fc