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 1EAAF1DC99C for ; Thu, 1 May 2025 14:14:49 +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=1746108889; cv=none; b=nr+iGbAIx/JKziarzVU1KcGV90vhcR0JxO8n9qPITquOVXU4F4raSPGnbMwmiFKPYgFVNuvFr6CRt8F4hkLxtrT373yg4tHLTAo0ksN8l34NFmMr4OGYeQI5/PAdrlxozEXTVD3m5C9/9beTJ8LTlwfCIMcR7Ng8sfRANCWqzJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108889; c=relaxed/simple; bh=vguYSskY3sxlGgsBsC3drlcTqHMT68Ib/bPKDDKuP5I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WlReRc9cOafsD+gJ2J4RAM8IDducFwetOXYD6x5KdFr9CfMOyZogLg7Ot/ye4wtK8iJ+NxgMji0E8unCBp4x4AVrUJAz53Ymc/1FgxtKvYSkSb6gIfqnohOXnHC6uAQdsZIMQe9GKjb7behjKZ03oOjDw6X7m1mLYZAOl75ZAec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H7J1YMPO; 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="H7J1YMPO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82B62C4CEE3; Thu, 1 May 2025 14:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108889; bh=vguYSskY3sxlGgsBsC3drlcTqHMT68Ib/bPKDDKuP5I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=H7J1YMPOA9wVo/w8hLIT9c5YcImNuUAapDkFJ78NdOhF+rowv8vvh4rRyAE8aQaoB Aoj5oEFALI7iR7dTDYBnyx8OhOlbogWaqEjCd/g0T1WfgR0QHh8LjfY7anGQe3TLwZ Iq7oImY+rgJMMlXjbM3Y03qN3wG9Oehjpp+DOOk8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49835: ALSA: hda: fix potential memleak in 'add_widget_node' Date: Thu, 1 May 2025 16:10:25 +0200 Message-ID: <2025050138-CVE-2022-49835-ea42@gregkh> X-Mailer: git-send-email 2.49.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=2674; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Sepbc5prvQL3k2p45i5LtKKzvXiqnZqpPBxZr0QqNN4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDYuq5885ekeAe813oRuPeeXyC1+8fDn5qmvt5DxDS bfLlq8lOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiTTsY5vBy7fyzsrdtk/9s xt0Xlsb+FfhvEsiwYONjWXY2zdC4DycrF/7It87+WHXNEAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: fix potential memleak in 'add_widget_node' As 'kobject_add' may allocated memory for 'kobject->name' when return error. And in this function, if call 'kobject_add' failed didn't free kobject. So call 'kobject_put' to recycling resources. The Linux kernel CVE team has assigned CVE-2022-49835 to this issue. Affected and fixed versions =========================== Fixed in 4.9.334 with commit b688a3ec235222d9a84e43a48a6f31acb95baf2d Fixed in 4.14.300 with commit bb0ac8d5e541224f599bc8e8f31a313faa4bf7b7 Fixed in 4.19.267 with commit 90b7d055e2b5f39429f9a9e3815b48a48530ef28 Fixed in 5.4.225 with commit 02dea987ec1cac712c78e75d224ceb9bb73519ed Fixed in 5.10.155 with commit 3a79f9568de08657fcdbc41d6fc4c0ca145a7a2b Fixed in 5.15.79 with commit 7140d7aaf93da6a665b454f91bb4dc6b1de218bd Fixed in 6.0.9 with commit 455d99bd6baf19688048b6d42d9fa74eae27f93b Fixed in 6.1 with commit 9a5523f72bd2b0d66eef3d58810c6eb7b5ffc143 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-49835 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: sound/hda/hdac_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/b688a3ec235222d9a84e43a48a6f31acb95baf2d https://git.kernel.org/stable/c/bb0ac8d5e541224f599bc8e8f31a313faa4bf7b7 https://git.kernel.org/stable/c/90b7d055e2b5f39429f9a9e3815b48a48530ef28 https://git.kernel.org/stable/c/02dea987ec1cac712c78e75d224ceb9bb73519ed https://git.kernel.org/stable/c/3a79f9568de08657fcdbc41d6fc4c0ca145a7a2b https://git.kernel.org/stable/c/7140d7aaf93da6a665b454f91bb4dc6b1de218bd https://git.kernel.org/stable/c/455d99bd6baf19688048b6d42d9fa74eae27f93b https://git.kernel.org/stable/c/9a5523f72bd2b0d66eef3d58810c6eb7b5ffc143