scsi: fnic: Use GFP_ATOMIC for VLAN alloc under spinlock
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.517.2.47.3In the Linux kernel, the following vulnerability has been resolved:
scsi: fnic: Use GFP_ATOMIC for VLAN alloc under spinlock
fnic_fcoe_process_vlan_resp() allocates a VLAN descriptor with kzalloc_obj() (default GFP_KERNEL) while holding vlans_lock via spin_lock_irqsave(). GFP_KERNEL may sleep, which is not allowed in this atomic context and can trigger a sleeping-from-invalid-context warning or deadlock.
Pass GFP_ATOMIC so the allocation is safe under the IRQ-safe spinlock.
From the CVE record · Linux
The Linux kernel's fnic driver allocates a VLAN descriptor with a sleepable allocation while holding an IRQ-safe spinlock. This can trigger a warning or deadlock. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the fnic driver should check whether their kernel includes the fix; affected versions are not specified.