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 7D55C288534 for ; Wed, 18 Jun 2025 11:05: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=1750244733; cv=none; b=cPmmgajonZ5tk1Fi7+0ehQZCmbrfKNR9s4SN/i8M5PPCSmLXvKUFqneyfY8p4s8iaGvDw3jd0snbfn/eJWZeulpCF6xcC4Qg2t6kx5Wh4Xgg4mv6K77xkpqL1iLqfrXPePr8tnkIGe1v3r/3AiVkGDIMFUI6VYp714WTFRBQkDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244733; c=relaxed/simple; bh=Vz4htSFgF8J0D7llCkh4MFf4izYFG3pS4SSSIT24N1g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nAj516dfpSqtGyGxDZb/H84AYoHspx98wVIAG0k6+Tq7JnWbzHBdv0u836I1iKYgSWYo8IuIyi+KqpSh8VaWRQXyqB50aPLxlqHxYuqkbocSRQjUUgtilV4E/jkW4koAKSCjvR3VRV1ZvNmI0PXHvduNTy7T2M0LMFNlcvsuqj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=byUZqgqP; 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="byUZqgqP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C48DC4CEE7; Wed, 18 Jun 2025 11:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244732; bh=Vz4htSFgF8J0D7llCkh4MFf4izYFG3pS4SSSIT24N1g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=byUZqgqPK8h7RAf26LzuvshamC5rOjBUQ0F9tRFlzCR1c23Q6Rn8LtsoZgKM2iqbM WtZXyoALW5e1/HAlWKN/MllnN4lJOe4Fn5HiTSqSfaPC27WXqC5UlwLsjbRlGrSPoi ilecMaObvhnwNIGSwgvawLTsSW7Os4DuoPHW4Lis= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50018: ALSA: hda: Fix page fault in snd_hda_codec_shutdown() Date: Wed, 18 Jun 2025 13:01:23 +0200 Message-ID: <2025061834-CVE-2022-50018-1fab@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=2736; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=z2k9BGn6xT0nk/gk5T157myotXCn4kpIECyJrCUqLV4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc4I2Ly9Nk046F/i5/qBq/LfQh366ywOOfxbP3dB5s UH0U6NFRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykOp1hfvJl6SlXLXdqarqc tyirLxWsvnvTgWHBBrs/rUaym57IsV2cyplXnHGq9IIIAA== 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 page fault in snd_hda_codec_shutdown() If early probe of HDAudio bus driver fails e.g.: due to missing firmware file, snd_hda_codec_shutdown() ends in manipulating uninitialized codec->pcm_list_head causing page fault. Iinitialization of HDAudio codec in ASoC is split in two: - snd_hda_codec_device_init() - snd_hda_codec_device_new() snd_hda_codec_device_init() is called during probe_codecs() by HDAudio bus driver while snd_hda_codec_device_new() is called by codec-component's ->probe(). The second call will not happen until all components required by related sound card are present within the ASoC framework. With firmware failing to load during the PCI's deferred initialization i.e.: probe_work(), no platform components are ever registered. HDAudio codec enumeration is done at that point though, so the codec components became registered to ASoC framework, calling snd_hda_codec_device_init() in the process. Now, during platform reboot snd_hda_codec_shutdown() is called for every codec found on the HDAudio bus causing oops if any of them has not completed both of their initialization steps. Relocating field initialization fixes the issue. The Linux kernel CVE team has assigned CVE-2022-50018 to this issue. Affected and fixed versions =========================== Fixed in 5.19.4 with commit e02db5c2c2ee15bc9a9ec8a86a614fd091e584dc Fixed in 6.0 with commit 980b3a8790b402e959a6d773b38b771019682be1 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-50018 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/hda/hda_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/e02db5c2c2ee15bc9a9ec8a86a614fd091e584dc https://git.kernel.org/stable/c/980b3a8790b402e959a6d773b38b771019682be1