| 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-49618: pinctrl: aspeed: Fix potential NULL dereference in aspeed_pinmux_set_mux() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| pinctrl: aspeed: Fix potential NULL dereference in aspeed_pinmux_set_mux() |
| |
| pdesc could be null but still dereference pdesc->name and it will lead to |
| a null pointer access. So we move a null check before dereference. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49618 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.9 with commit 4d3d0e4272d8d660f5f14f5abcf96fb4df1aa94b and fixed in 5.10.132 with commit ef1e38532f4b2f0f3b460e938a2e7076c3bed5ee |
| Issue introduced in 4.9 with commit 4d3d0e4272d8d660f5f14f5abcf96fb4df1aa94b and fixed in 5.15.56 with commit 3cb392b64304a05bf647e2e44efacd9a1f3c3c6a |
| Issue introduced in 4.9 with commit 4d3d0e4272d8d660f5f14f5abcf96fb4df1aa94b and fixed in 5.18.13 with commit e162a24f1dd06c0dcae71f2565c9f3da2827b98e |
| Issue introduced in 4.9 with commit 4d3d0e4272d8d660f5f14f5abcf96fb4df1aa94b and fixed in 5.19 with commit 84a85d3fef2e75b1fe9fc2af6f5267122555a1ed |
| |
| 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-49618 |
| 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/pinctrl/aspeed/pinctrl-aspeed.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/ef1e38532f4b2f0f3b460e938a2e7076c3bed5ee |
| https://git.kernel.org/stable/c/3cb392b64304a05bf647e2e44efacd9a1f3c3c6a |
| https://git.kernel.org/stable/c/e162a24f1dd06c0dcae71f2565c9f3da2827b98e |
| https://git.kernel.org/stable/c/84a85d3fef2e75b1fe9fc2af6f5267122555a1ed |