CVE-2024-50025: scsi: fnic: Move flush_work initialization out of if block
In the Linux kernel, the following vulnerability has been resolved:
scsi: fnic: Move flushwork initialization out of if block
After commit 379a58caa199 ("scsi: fnic: Move fnicfnicflushtx() to a work queue"), it can happen that a work item is sent to an uninitialized work queue. This may has the effect that the item being queued is never actually queued, and any further actions depending on it will not proceed.
The following warning is observed while the fnic driver is loaded:
kernel: WARNING: CPU: 11 PID: 0 at ../kernel/workqueue.c:1524 queuework+0x373/0x410 kernel: <IRQ> kernel: queueworkon+0x3a/0x50 kernel: fnicwqcopycmplhandler+0x54a/0x730 [fnic 62fbff0c42e7fb825c60a55cde2fb91facb2ed24] kernel: fnicisrmsixwqcopy+0x2d/0x60 [fnic 62fbff0c42e7fb825c60a55cde2fb91facb2ed24] kernel: handleirqeventpercpu+0x36/0x1a0 kernel: handleirqeventpercpu+0x30/0x70 kernel: handleirqevent+0x34/0x60 kernel: handleedgeirq+0x7e/0x1a0 kernel: commoninterrupt+0x3b/0xb0 kernel: commoninterrupt+0x58/0xa0 kernel: </IRQ>
It has been observed that this may break the rediscovery of Fibre Channel devices after a temporary fabric failure.
This patch fixes it by moving the work queue initialization out of an if block in fnicprobe().
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50025?
CVE-2024-50025 is considered a moderate severity vulnerability in the Linux kernel.
How do I fix CVE-2024-50025?
To address CVE-2024-50025, update the Linux kernel to a fixed version such as 6.12.12-1 or later.
Which versions of the Linux kernel are affected by CVE-2024-50025?
CVE-2024-50025 affects Linux kernel versions from 6.8 to 6.11.4, as well as 6.12-rc1 and 6.12-rc2.
What does CVE-2024-50025 impact in the Linux kernel?
CVE-2024-50025 impacts the SCSI fnic driver related to uninitialized work queues.
Is there a patch available for CVE-2024-50025?
Yes, patches for CVE-2024-50025 are included in the recent updates to the Linux kernel as of versions 5.10.223-1 and later.