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 99CFA14388C for ; Tue, 21 May 2024 15:07:15 +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=1716304035; cv=none; b=Vqisycs2D4N/BYgUbngcEfPIE6WZ8Pm+XNwQuPZKVaHhhOFgNhRgG4QW1vVVczsRLXGz4o3Sx/k/mi4agarf09S8vZSEJu2aqxXsNujbgmV1YDoiIWGMAwe3tP4/TO5JQFvGDyzXHJowjgvb+dDxy2DsSVoIL8bzRKZ1dCwJ5VI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304035; c=relaxed/simple; bh=gHNLrfLgUJBNrq9GIti8RY78GS4jb32F//rSnbRvV0E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZlqdolFld2kgs05cfxvtOVddaw4Uzwlv5laJF2VxEYBJioy9rpzJZgHGrRygTxa+4bjZgfa+FNjoMZrox2ds9optgZodamXh+k285njAXTOXdyhqYpJJdVKEQt/YTBMGDmHmGdUb/sfWKtkSwLSgF6r8S2TmpEbltIdKs//4b/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JYQGfb7C; 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="JYQGfb7C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDCDEC2BD11; Tue, 21 May 2024 15:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716304035; bh=gHNLrfLgUJBNrq9GIti8RY78GS4jb32F//rSnbRvV0E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JYQGfb7CSdx1sa2pFzdmZuBRfCg4c2cl3+M13WEkA+bz8bTLRGcJcS9yb9EWqBIJU F7HwVewBMJ0FkucBp8jvqgpOuy5VTDYJL+XjtV8cNTS0vcLrtr4d60Q3111x/SxY1k xukPq6I6mrbPDpQ1eFw5aCQd0SIVaUfLt1Lr+x9Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47425: i2c: acpi: fix resource leak in reconfiguration device addition Date: Tue, 21 May 2024 17:04:42 +0200 Message-ID: <2024052156-CVE-2021-47425-8e9f@gregkh> X-Mailer: git-send-email 2.45.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=2671; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gHNLrfLgUJBNrq9GIti8RY78GS4jb32F//rSnbRvV0E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+2+9saGB5XOvT/jifyVQtTmrNf4ZLomI+hglijN4Ci fs3l77riGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlkBTPMFfPqeuSRziXDZDrZ P1v0wrMuU9m7DAvWTBXWlRRLVc7b7CB+31iwlX164yoA 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: i2c: acpi: fix resource leak in reconfiguration device addition acpi_i2c_find_adapter_by_handle() calls bus_find_device() which takes a reference on the adapter which is never released which will result in a reference count leak and render the adapter unremovable. Make sure to put the adapter after creating the client in the same manner that we do for OF. [wsa: fixed title] The Linux kernel CVE team has assigned CVE-2021-47425 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 525e6fabeae2 and fixed in 4.14.251 with commit b8090a84d775 Issue introduced in 4.8 with commit 525e6fabeae2 and fixed in 4.19.211 with commit 3d9d458a8aaa Issue introduced in 4.8 with commit 525e6fabeae2 and fixed in 5.4.153 with commit 60bacf259e8c Issue introduced in 4.8 with commit 525e6fabeae2 and fixed in 5.10.73 with commit f86de018fd7a Issue introduced in 4.8 with commit 525e6fabeae2 and fixed in 5.14.12 with commit 90f1077c9184 Issue introduced in 4.8 with commit 525e6fabeae2 and fixed in 5.15 with commit 6558b646ce1c 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-2021-47425 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/i2c/i2c-core-acpi.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/b8090a84d7758b929d348bafbd86bb7a10c5fb63 https://git.kernel.org/stable/c/3d9d458a8aaafa47268ea4f1b4114a9f12927989 https://git.kernel.org/stable/c/60bacf259e8c2eb2324f3e13275200baaee9494b https://git.kernel.org/stable/c/f86de018fd7a24ee07372d55ffa7824f0c674a95 https://git.kernel.org/stable/c/90f1077c9184ec2ae9989e4642f211263f301694 https://git.kernel.org/stable/c/6558b646ce1c2a872fe1c2c7cb116f05a2c1950f