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 3F7ED1C7B64 for ; Mon, 21 Oct 2024 20:13:01 +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=1729541581; cv=none; b=eYn4o4dYbx7yfqdLS37TagGW3N5Wk0hBdAl9ziX84yqJPM/R256nr++dgqyKLVUmFsK3zP+A0nH24P6xBAlJfHhAgTh7JpJqRuNfjV4nrBfHV5mCybFjDQ8VyPqD8iO0wBX5Bw7B4bUEIlUKSxZVBp4NV3dqd8cY9Rt7j6m81iQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541581; c=relaxed/simple; bh=R/hC0lfQHvOyRghJ9PShMctp6j1pBF3qBDFt3ULi02E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jMfXdlDGwpQd8S8ZGAcwEq9KRZQWrRo7s+xd+8VUpX8mh2O+a0e+8ZgyZZCfbWw4xD/R2UMq01nJeQknQ5FCuaHtpoKBshVBN59zfg2x0mAfu94f7wZpdUSg10Vp7xJnap1S9l6xY2OyNcrGv//LxgKnoaSsJz6Nw0aqvW1Qw2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x1W2Sgt/; 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="x1W2Sgt/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5F33C4CEC3; Mon, 21 Oct 2024 20:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541581; bh=R/hC0lfQHvOyRghJ9PShMctp6j1pBF3qBDFt3ULi02E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x1W2Sgt/mWLob5oGN/RFnOsv8btnoNV0LqbXoJPuzp7C1Ib2uoNriVgI+s6755d0F jPHQHwUC4MycQnUIJ+NuGwtMNSGRzPdhy8FuJGu7/VAdgi2KkPl47xLdmgVDb2pdqx rvhDDAwS1Gq0ISg7Xz1hwp/AxJsWbo4LPtI7JBwY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49011: hwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new() Date: Mon, 21 Oct 2024 22:06:43 +0200 Message-ID: <2024102152-CVE-2022-49011-069a@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=2942; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R/hC0lfQHvOyRghJ9PShMctp6j1pBF3qBDFt3ULi02E=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliWxTeSa/b9SJuntTF8OsVH52/TWVwSnI79LdRcA2vw 9yCWjfFjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIoSqG+YU3im3upp5PzujZ PcWuTJO3hm+KLcM8q4N7Wp371gZv6t/04d633JkKDUq6AA== 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: hwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new() As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). So call it after using to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49011 to this issue. Affected and fixed versions =========================== Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 4.9.335 with commit bb75a0d1223d Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 4.14.301 with commit 0dd1da5a15ee Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 4.19.268 with commit 2f74cffc7c85 Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 5.4.226 with commit ea5844f946b1 Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 5.10.158 with commit c40db1e5f316 Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 5.15.82 with commit 6e035d5a2a6b Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 6.0.12 with commit f598da27acbe Issue introduced in 3.14 with commit 14513ee696a0 and fixed in 6.1 with commit 7dec14537c59 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-49011 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/hwmon/coretemp.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/bb75a0d1223d43f97089841aecb28a9b4de687a9 https://git.kernel.org/stable/c/0dd1da5a15eeecb2fe4cf131b3216fb455af783c https://git.kernel.org/stable/c/2f74cffc7c85f770b1b1833dccb03b8cde3be102 https://git.kernel.org/stable/c/ea5844f946b1ec5c0b7c115cd7684f34fd48021b https://git.kernel.org/stable/c/c40db1e5f316792b557d2be37e447c20d9ac4635 https://git.kernel.org/stable/c/6e035d5a2a6b907cfce9a80c5f442c2e459cd34e https://git.kernel.org/stable/c/f598da27acbeee414679cacd14294db3e273e3d2 https://git.kernel.org/stable/c/7dec14537c5906b8bf40fd6fd6d9c3850f8df11d