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 CEAD8196C7C for ; Tue, 16 Jul 2024 11:13:55 +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=1721128435; cv=none; b=B/QT3cfxIoerVRVt4k4tX3H+HsvM2Z5JUqq5mOKC1KP/F5lxVOlXBovn0gbxpNxKRzXnurHie0uukFg615Xz7OIxTjXhrY5VDQjCv2W6NSdG1M5EGM28t1xuqkPEXXPzo6NeVQyQUvxJuz0JOZ/YLs3ct4qzQJejlcTcR/tO04o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721128435; c=relaxed/simple; bh=+rJVG4ygW7/urmIsWpao0jyBijM3oxYjR1TQCcg7dRs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qVPN5jieqP3yKjP+xZa3bGuf1mHsxV5ydHMReJxt8XveuWRliQbQtQt7h50sOm48ZRDR6vP3BOjHIhNt/roX8AxI3BoXMReIC+E04cBLy7xKvLonKKMCIUo2p1IBr5J8bn3dtKVxaCize0BRV1Lf84XgoMQ4q79KoYk2jr1Iq1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kV0KLkxs; 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="kV0KLkxs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3D4BC116B1; Tue, 16 Jul 2024 11:13:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721128435; bh=+rJVG4ygW7/urmIsWpao0jyBijM3oxYjR1TQCcg7dRs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kV0KLkxsguLjFv0G0skRpgLx2qCegYMbZ54359NCt0n078bmXaMbaJ8taFU+JGIBd l4/RqRyxP9gOLZELzJRn4CfYOyjzKcmXvG1EFGT9vMCRUGoNzK+zfYPczh73vJCQbq cqOkq0U1Io1QmHmWu/2eH9HcLkV3DWyJ2Q9GIlzk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48775: Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj Date: Tue, 16 Jul 2024 13:13:29 +0200 Message-ID: <2024071631-CVE-2022-48775-d5e9@gregkh> X-Mailer: git-send-email 2.45.2 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=2638; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+rJVG4ygW7/urmIsWpao0jyBijM3oxYjR1TQCcg7dRs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTQm9XXZsqvUgs2+PXkeW8Snp/S1N+fOAzTZhyRGrBi UJZ3uebOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiG0IY5rtty8+pE14l6dqh mHL2z4ybf3eIrGNY0HfpeinrufxIN8kM9m9C+3iiFTnmAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj kobject_init_and_add() takes reference even when it fails. According to the doc of kobject_init_and_add(): If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Fix memory leak by calling kobject_put(). The Linux kernel CVE team has assigned CVE-2022-48775 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit c2e5df616e1a and fixed in 4.19.231 with commit 417947891bd5 Issue introduced in 4.15 with commit c2e5df616e1a and fixed in 5.4.181 with commit fe595759c2a4 Issue introduced in 4.15 with commit c2e5df616e1a and fixed in 5.10.102 with commit 91d8866ca552 Issue introduced in 4.15 with commit c2e5df616e1a and fixed in 5.15.25 with commit c377e2ba78d3 Issue introduced in 4.15 with commit c2e5df616e1a and fixed in 5.16.11 with commit 92e25b637cd4 Issue introduced in 4.15 with commit c2e5df616e1a and fixed in 5.17 with commit 8bc69f86328e 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-48775 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/hv/vmbus_drv.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/417947891bd5ae327f15efed1a0da2b12ef24962 https://git.kernel.org/stable/c/fe595759c2a4a5bb41c438474f15947d8ae32f5c https://git.kernel.org/stable/c/91d8866ca55232d21995a3d54fac96de33c9e20c https://git.kernel.org/stable/c/c377e2ba78d3fe9a1f0b4ec424e75f81da7e81e9 https://git.kernel.org/stable/c/92e25b637cd4e010f776c86e4810300e773eac5c https://git.kernel.org/stable/c/8bc69f86328e87a0ffa79438430cc82f3aa6a194