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 A61D621C16D for ; Wed, 26 Feb 2025 02:27:52 +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=1740536872; cv=none; b=BD7X+39tGRx9kJfnhNnyicdTT8btZElrvArOAIIW4uNcu3dbdn2h16v7JQloO93rzuyFpmgWkl7eLlJde4gxEx8T+G3uEprK3WFLxYxR8uauJtmyF1n7Y+f/jAP7btpiKrxEpgHNeL1TniKfC2fHjw3QYuU/C+omOe2cqml+JLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536872; c=relaxed/simple; bh=HuALkEI+ClcmMh01HOFYcqG97daAo68qRjrGQw4BcEs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lu9KuNYpsUcAUzcXgwvl+4Y/2g/NkdMLHb9pnzUa+Tnoxwauwfvd8wJMGEXFqNq7keXE2Jkz5oFIxQ+f1bgo+9dfOfNrmutlSbJzGFPk5J8CR84PAQTSxHeqTWDEPN+cHaLBpIClX0ZQtCDiQ/c82Bl1o9HrkBMXjcwCzJy16Cw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QsuFnTqQ; 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="QsuFnTqQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79D90C4CEDD; Wed, 26 Feb 2025 02:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536872; bh=HuALkEI+ClcmMh01HOFYcqG97daAo68qRjrGQw4BcEs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QsuFnTqQ+hZi1lE4rAJoPtQFpYv4/aEO0zkCXtt6s1vvBzoTn3dFVG6vdHAH8fecb l3Z+fzxaG3/3Jb5paRkZh+8sWZK9iDHvsJPDPXarFkRz7yPCrGIktE82qzWEMptaF2 8Ol53QjL3PEqP+6/XQWaSGNzPM3SnkEKlk8G3lIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49681: xtensa: xtfpga: Fix refcount leak bug in setup Date: Wed, 26 Feb 2025 03:24:04 +0100 Message-ID: <2025022625-CVE-2022-49681-faa1@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=2645; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HuALkEI+ClcmMh01HOFYcqG97daAo68qRjrGQw4BcEs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qh7+YI81LDsSpG98fpbPjCMylqm3zFPdiuyVLcO2/ b26PvdRRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkySKGBXOYqzdMv97VtbxO ckmRtd3RMMP5/xgWXFV5kBKdljnzTrK8cHV/mIb5F3dnAA== 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: xtensa: xtfpga: Fix refcount leak bug in setup In machine_setup(), of_find_compatible_node() 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-49681 to this issue. Affected and fixed versions =========================== Fixed in 4.9.321 with commit b12d5c52f073a0420622aaf2f21b615cce8b36cc Fixed in 4.14.286 with commit 35d7e961be68732eb3acaeba81fb81ca16eafd05 Fixed in 4.19.250 with commit 0715d0e60052662c3f225342062f174dd721d1c7 Fixed in 5.4.202 with commit a52972ee706b438302eb0350e61f378eb191e3d1 Fixed in 5.10.127 with commit 6c0839cf1b9e1b3c88da6af76794583cbfae8da3 Fixed in 5.15.51 with commit 0162451723178602c37f0555d235dfa17e486112 Fixed in 5.18.8 with commit 9b30c5c8884eda3f541229899671cebbad15979b Fixed in 5.19 with commit 173940b3ae40114d4179c251a98ee039dc9cd5b3 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-49681 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/xtensa/platforms/xtfpga/setup.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/b12d5c52f073a0420622aaf2f21b615cce8b36cc https://git.kernel.org/stable/c/35d7e961be68732eb3acaeba81fb81ca16eafd05 https://git.kernel.org/stable/c/0715d0e60052662c3f225342062f174dd721d1c7 https://git.kernel.org/stable/c/a52972ee706b438302eb0350e61f378eb191e3d1 https://git.kernel.org/stable/c/6c0839cf1b9e1b3c88da6af76794583cbfae8da3 https://git.kernel.org/stable/c/0162451723178602c37f0555d235dfa17e486112 https://git.kernel.org/stable/c/9b30c5c8884eda3f541229899671cebbad15979b https://git.kernel.org/stable/c/173940b3ae40114d4179c251a98ee039dc9cd5b3