blob: b81e713050249ccce473736db85aaf265c6216b0 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2022-49615: ASoC: rt711-sdca: fix kernel NULL pointer dereference when IO error
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: rt711-sdca: fix kernel NULL pointer dereference when IO error
The initial settings will be written before the codec probe function.
But, the rt711->component doesn't be assigned yet.
If IO error happened during initial settings operations, it will cause the kernel panic.
This patch changed component->dev to slave->dev to fix this issue.
The Linux kernel CVE team has assigned CVE-2022-49615 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit 7ad4d237e7c4a5dcc71cf438f646744b4484f1da and fixed in 5.15.56 with commit 269be8b2907378adf72d7347cfa43ef230351a06
Issue introduced in 5.13 with commit 7ad4d237e7c4a5dcc71cf438f646744b4484f1da and fixed in 5.18.13 with commit 7bb71133cae88d3003a3490b97864af76533072b
Issue introduced in 5.13 with commit 7ad4d237e7c4a5dcc71cf438f646744b4484f1da and fixed in 5.19 with commit 1df793d479bef546569fc2e409ff8bb3f0fb8e99
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-49615
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/soc/codecs/rt711-sdca.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/269be8b2907378adf72d7347cfa43ef230351a06
https://git.kernel.org/stable/c/7bb71133cae88d3003a3490b97864af76533072b
https://git.kernel.org/stable/c/1df793d479bef546569fc2e409ff8bb3f0fb8e99