Bug 2347936 (CVE-2022-49521)

Summary: CVE-2022-49521 kernel: scsi: lpfc: Fix resource leak in lpfc_sli4_send_seq_to_ulp()
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A resource leak vulnerability exists in the Linux kernel's SCSI subsystem, specifically within the lpfc (LightPulse Fibre Channel) driver. This issue arises when the driver processes unsolicited frames that lack a corresponding handler for their rctl (Routing Control) value. In such cases, the frames are dropped without properly releasing the associated resources, leading to a memory leak.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:11:54 UTC
In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Fix resource leak in lpfc_sli4_send_seq_to_ulp()

If no handler is found in lpfc_complete_unsol_iocb() to match the rctl of a
received frame, the frame is dropped and resources are leaked.

Fix by returning resources when discarding an unhandled frame type.  Update
lpfc_fc_frame_check() handling of NOP basic link service.

Comment 1 Avinash Hanwate 2025-02-26 20:51:43 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022611-CVE-2022-49521-64b2@gregkh/T