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 C63D1288C05 for ; Wed, 18 Jun 2025 11:05:35 +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=1750244737; cv=none; b=HYPBy88QfqCrjXKrUliQw2HQ0y4XnPBLBYEnOUBZY1jdjnQawkomc+rAo3FjHtTmU98CDv88L5am4IJ8ZGN19RiRNFBqgIV8Ab57I6kCTYmwTM3N1LXX75RDYDBOFgr/Pi+ku1kNRzjlRHqWNXD4Y25xjcaXax2TenGwV1Qa8/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244737; c=relaxed/simple; bh=QGkchn66pPE/EgeHaA/wsARprI3AOd+6Epmi1wNZnRE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nvdW6R3lvexOk1p9kKaznBkMjsFsf7gX2NUWSLr7tQyzt6nnyNi531RYxggAKwA0aUuFRT/9ARnvRTbHJcQwUrSC1I3EjE3vXJL1ejUApoO+2goGboNOJV1hu45Xcr49ZgV70yBmvk+QGTpAnGKzgzNB7G3oTN0WUwk63g1PdOk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rd260Ab8; 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="rd260Ab8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF680C4CEE7; Wed, 18 Jun 2025 11:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244735; bh=QGkchn66pPE/EgeHaA/wsARprI3AOd+6Epmi1wNZnRE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rd260Ab8ZFqRkn6H+w4CfAGG+vMTIO/esbxyU2QZBl04Cz33nOHUuS1HZq0MP5IpR wqTilpItInjUUjoqHffRFHATz7bc5DwW7APAZQRmWJbYNdypm2wg6gblSogqpV1Ffm AyYaC2GjoJ2bDETynTiYJ/n6UgVfOKdUWQ1cHWPI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50019: tty: serial: Fix refcount leak bug in ucc_uart.c Date: Wed, 18 Jun 2025 13:01:24 +0200 Message-ID: <2025061834-CVE-2022-50019-181a@gregkh> X-Mailer: git-send-email 2.49.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=2631; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TwQ7PfJqw1rZsf1C8lCTx7kgo0ejm2tAYAHwhhTu+wE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc4KffTCtXcxb+vL8creMzatVmhz023MO/2dlXXTyz 2O5CSfLOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi+48xLFgpvs7apaN+n7yU 8PLu+/tWhggzNjDMDxDNaQx74Prkpn75lkk5McU28vPNAA== 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: tty: serial: Fix refcount leak bug in ucc_uart.c In soc_info(), of_find_node_by_type() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. The Linux kernel CVE team has assigned CVE-2022-50019 to this issue. Affected and fixed versions =========================== Fixed in 4.9.326 with commit 8245e7d1d7f75a9255ad1e8146752e5051d528b8 Fixed in 4.14.291 with commit ec56f886f3bf0f15f7a3844d4c025e165b8e8de7 Fixed in 4.19.256 with commit 59bc4c19d53bdac61ec952c01c6e864f5f0f8367 Fixed in 5.4.211 with commit ca3fc1c38e4253bc019881301a28ea60b8b0bca3 Fixed in 5.10.138 with commit 81939c4fbc2d5c754d0f1c1f05149d4b70d751ed Fixed in 5.15.63 with commit 17c32546166d8a7d2579c4b57c8b16241f94a66b Fixed in 5.19.4 with commit f6ed634eedb1a8a6a8cb110a7695c7abb70ffcbf Fixed in 6.0 with commit d24d7bb2cd947676f9b71fb944d045e09b8b282f 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-50019 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/tty/serial/ucc_uart.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/8245e7d1d7f75a9255ad1e8146752e5051d528b8 https://git.kernel.org/stable/c/ec56f886f3bf0f15f7a3844d4c025e165b8e8de7 https://git.kernel.org/stable/c/59bc4c19d53bdac61ec952c01c6e864f5f0f8367 https://git.kernel.org/stable/c/ca3fc1c38e4253bc019881301a28ea60b8b0bca3 https://git.kernel.org/stable/c/81939c4fbc2d5c754d0f1c1f05149d4b70d751ed https://git.kernel.org/stable/c/17c32546166d8a7d2579c4b57c8b16241f94a66b https://git.kernel.org/stable/c/f6ed634eedb1a8a6a8cb110a7695c7abb70ffcbf https://git.kernel.org/stable/c/d24d7bb2cd947676f9b71fb944d045e09b8b282f