| 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-49537: scsi: lpfc: Fix call trace observed during I/O with CMF enabled |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| scsi: lpfc: Fix call trace observed during I/O with CMF enabled |
| |
| The following was seen with CMF enabled: |
| |
| BUG: using smp_processor_id() in preemptible |
| code: systemd-udevd/31711 |
| kernel: caller is lpfc_update_cmf_cmd+0x214/0x420 [lpfc] |
| kernel: CPU: 12 PID: 31711 Comm: systemd-udevd |
| kernel: Call Trace: |
| kernel: <TASK> |
| kernel: dump_stack_lvl+0x44/0x57 |
| kernel: check_preemption_disabled+0xbf/0xe0 |
| kernel: lpfc_update_cmf_cmd+0x214/0x420 [lpfc] |
| kernel: lpfc_nvme_fcp_io_submit+0x23b4/0x4df0 [lpfc] |
| |
| this_cpu_ptr() calls smp_processor_id() in a preemptible context. |
| |
| Fix by using per_cpu_ptr() with raw_smp_processor_id() instead. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49537 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Fixed in 5.15.46 with commit ae373d66c427812754db5292eb1481b181daf9ce |
| Fixed in 5.17.14 with commit cd7f899de4b1b829125d72ee6fbfd878b637b815 |
| Fixed in 5.18.3 with commit 517e0835cfb2007713ff16c4fb8479f08b16aec7 |
| Fixed in 5.19 with commit d6d45f67a11136cb88a70a29ab22ea6db8ae6bd5 |
| |
| 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-49537 |
| 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/scsi/lpfc/lpfc_scsi.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/ae373d66c427812754db5292eb1481b181daf9ce |
| https://git.kernel.org/stable/c/cd7f899de4b1b829125d72ee6fbfd878b637b815 |
| https://git.kernel.org/stable/c/517e0835cfb2007713ff16c4fb8479f08b16aec7 |
| https://git.kernel.org/stable/c/d6d45f67a11136cb88a70a29ab22ea6db8ae6bd5 |