From mboxrd@z Thu Jan 1 00:00:00 1970 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 41A9D2165ED for ; Wed, 26 Feb 2025 02:13:32 +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=1740536012; cv=none; b=j7WzlyadEHHF1qnlO75ourtWBcmnywfMxeIuxGa8MpfiNkIaMoulTqPlBI46jjK53DeCB7tDlXlCiVkaSnTCMpaj2T1ShuNMMv0EhiXb/7Wvfwmq1a+nCf7JpvQQ1diAUjpjf6WWZyXYY7YGmzX9WjqCtmoBAPAxbEveVTiqKJM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536012; c=relaxed/simple; bh=dSnBirH/eDXNp0hlH8D2pejieEoI6LQrFiE8egBGVIA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o5q67Nqk1woTkjnbZmekzLwvw/sZV2R3KJo465V5vMvNqVHdU0bcLneV0yCRgfm3BLC8tpUT1Ev8tsZcIC3TBscIrqpPF/o6iDBPztUUdtkxaENS5VQakgyqk4Yrg7PhyfvLyGsmCXzLdmQ+2KYHAMknQ0/scO4iz2ZyEeceGJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V6qIdjKE; 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="V6qIdjKE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A374C4CEDD; Wed, 26 Feb 2025 02:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536012; bh=dSnBirH/eDXNp0hlH8D2pejieEoI6LQrFiE8egBGVIA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V6qIdjKEBX6s+5OIfEhHu4kqeDQ1ejILgdgpGLqOAxKr5o5Zyfj3ulh+YxTiRgnnw m2vY7/brT0F/N5ilUVeqsI6bTd1JeqUlAlFWpXGnNwre/qxo5OwCr3JlCCLKOvR4X3 pDhCVvLl3or5D+WFmrvXpKa6s3l+2BrMT+IGZ4Qs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49370: firmware: dmi-sysfs: Fix memory leak in dmi_sysfs_register_handle Date: Wed, 26 Feb 2025 03:10:44 +0100 Message-ID: <2025022645-CVE-2022-49370-05fc@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=3685; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dSnBirH/eDXNp0hlH8D2pejieEoI6LQrFiE8egBGVIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yl+t1Xp8vnVTR/6L3SG3gzmld6x5NkGF0+0E8+Hil zMXFzpO7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJROgzzA8VYroz7bKoJu8a iZ9at21zNGTbWhkWXLzhvSGYJ3bJgY63zesLYr0evU7vAAA= 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: firmware: dmi-sysfs: Fix memory leak in dmi_sysfs_register_handle 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 this issue by calling kobject_put(). The Linux kernel CVE team has assigned CVE-2022-49370 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 4.9.318 with commit a9bfb37d6ba7c376b0d53337a4c5f5ff324bd725 Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 4.14.283 with commit ed38d04342dfbe9e5aca745c8b5eb4188a74f0ef Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 4.19.247 with commit c66cc3c62870a27ea8f060a7e4c1ad8d26dd3f0d Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 5.4.198 with commit a724634b2a49f6ff0177a9e19a5a92fc1545e1b7 Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 5.10.122 with commit 985706bd3bbeffc8737bc05965ca8d24837bc7db Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 5.15.47 with commit fdffa4ad8f6bf1ece877edfb807f2b2c729d8578 Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 5.17.15 with commit 3ba359ebe914ac3f8c6c832b28007c14c39d3766 Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 5.18.4 with commit ec752973aa721ee281d5441e497364637c626c7b Issue introduced in 2.6.39 with commit 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 and fixed in 5.19 with commit 660ba678f9998aca6db74f2dd912fa5124f0fa31 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-49370 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/firmware/dmi-sysfs.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/a9bfb37d6ba7c376b0d53337a4c5f5ff324bd725 https://git.kernel.org/stable/c/ed38d04342dfbe9e5aca745c8b5eb4188a74f0ef https://git.kernel.org/stable/c/c66cc3c62870a27ea8f060a7e4c1ad8d26dd3f0d https://git.kernel.org/stable/c/a724634b2a49f6ff0177a9e19a5a92fc1545e1b7 https://git.kernel.org/stable/c/985706bd3bbeffc8737bc05965ca8d24837bc7db https://git.kernel.org/stable/c/fdffa4ad8f6bf1ece877edfb807f2b2c729d8578 https://git.kernel.org/stable/c/3ba359ebe914ac3f8c6c832b28007c14c39d3766 https://git.kernel.org/stable/c/ec752973aa721ee281d5441e497364637c626c7b https://git.kernel.org/stable/c/660ba678f9998aca6db74f2dd912fa5124f0fa31