CVE-2022-49537

scsi: lpfc: Fix call trace observed during I/O with CMF enabled

State
Published
Severity
Not scored
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 02243836ad6f384284f10302e6b820b893960d1c to before ae373d66c427812754db5292eb1481b181daf9ceAffected
  • 02243836ad6f384284f10302e6b820b893960d1c to before cd7f899de4b1b829125d72ee6fbfd878b637b815Affected
  • 02243836ad6f384284f10302e6b820b893960d1c to before 517e0835cfb2007713ff16c4fb8479f08b16aec7Affected
  • 02243836ad6f384284f10302e6b820b893960d1c to before d6d45f67a11136cb88a70a29ab22ea6db8ae6bd5Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.46 through 5.15.*Not affected
  • 5.17.14 through 5.17.*Not affected
  • 5.18.3 through 5.18.*Not affected
  • 5.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.