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 6C2192E2DD8 for ; Wed, 1 Oct 2025 11:52:42 +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=1759319562; cv=none; b=k6p7hpkxWDKFE+KRiVIClP5lxxNRpwQtsj84H1fG+CNrLlhtNj5Kp6mSleXlETemNNoskD//QMyTlWd/7ThgnHs6K5oPsbaoX8uiGaYmpJyw4KOW+x2l307/F3KwOisRTWUh1ukIUxD14f5AnOsFwV6s2iuJrw4I8qPbOWoicP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319562; c=relaxed/simple; bh=kmJN5HzwmRD4XVpBzSzubmo3R32+RTCt9ljxS9y5y94=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nlZVRIWp2Vuf5Y8aGJCyrHp2iD1wSxGQQFhMz+EBQPFNRrPfB0PeVdlJSt5MgP52141I9W4SdafXI9IETIVBEpAt3huRCh4wIjdQaA3WLInUWbmH2ddBlVbA/yT1NiEFKiiEbrv37Arqas3YhYGUheHAjplLYWrJ+Z9R5iBUL6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ATd9YIB+; 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="ATd9YIB+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1566C4CEF4; Wed, 1 Oct 2025 11:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319562; bh=kmJN5HzwmRD4XVpBzSzubmo3R32+RTCt9ljxS9y5y94=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ATd9YIB+F/Ys3fDPrz0MLoDV1BcSRKrQ35eZE/sy8Q7wv1hE1BKfbr0hlGiSlMDH2 EKwghPAz27w3t5t0fazNQS7E45H9wcb6YL9CMka5x+AfSgrFiJqg3K9MW5PA7SuCxJ /oNrwUB5FMyX1PeGaqaW6Hjm7RA9ZGZdryyFM4qQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50427: ALSA: ac97: fix possible memory leak in snd_ac97_dev_register() Date: Wed, 1 Oct 2025 13:42:00 +0200 Message-ID: <2025100157-CVE-2022-50427-87b9@gregkh> X-Mailer: git-send-email 2.51.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=3322; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/6zwrhTpOEnri1OmokV7QzyojiA09tFrTHJ6hE6VGx0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hVsbnzDlT1EVfvKgTPd3iAqLUXQK95qD33RKDlnsK eroUs/piGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInEGjMsOHE2QPO+bZny8phf HdP4psyZzXb2FsOCY71/1969+6Tw98YI1e8L/h9tL8ouAQA= 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: ac97: fix possible memory leak in snd_ac97_dev_register() If device_register() fails in snd_ac97_dev_register(), it should call put_device() to give up reference, or the name allocated in dev_set_name() is leaked. The Linux kernel CVE team has assigned CVE-2022-50427 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 4.9.332 with commit a602ec9d88f177dba78bc97fb1adecc7a71ff279 Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 4.14.298 with commit 0f8e9a15c8ecf95057061d370a2dddaf1cee4aeb Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 4.19.264 with commit ee8bf0946f62ef00e5db4b613a9f664ac567259a Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 5.4.223 with commit 758dbcc6fbf2286eff02743b093c70a18a407d66 Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 5.10.153 with commit bfce73088682ef0770da951f51156c36a89be490 Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 5.15.77 with commit 4fdf6f978c6b605ca0d67bf0e982b7a8fc0f4aab Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 6.0.7 with commit c68b2e9ef246117f696e360bbdd2f5736b3a7127 Issue introduced in 2.6.14 with commit 0ca06a00e206b963587ac471e6d1c52bf33b9a18 and fixed in 6.1 with commit 4881bda5ea05c8c240fc8afeaa928e2bc43f61fa 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-50427 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/pci/ac97/ac97_codec.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/a602ec9d88f177dba78bc97fb1adecc7a71ff279 https://git.kernel.org/stable/c/0f8e9a15c8ecf95057061d370a2dddaf1cee4aeb https://git.kernel.org/stable/c/ee8bf0946f62ef00e5db4b613a9f664ac567259a https://git.kernel.org/stable/c/758dbcc6fbf2286eff02743b093c70a18a407d66 https://git.kernel.org/stable/c/bfce73088682ef0770da951f51156c36a89be490 https://git.kernel.org/stable/c/4fdf6f978c6b605ca0d67bf0e982b7a8fc0f4aab https://git.kernel.org/stable/c/c68b2e9ef246117f696e360bbdd2f5736b3a7127 https://git.kernel.org/stable/c/4881bda5ea05c8c240fc8afeaa928e2bc43f61fa