Bug 2266724 (CVE-2021-47045)

Summary: CVE-2021-47045 kernel: scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb()
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, drow, dvlasenk, emilne, esandeen, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mleitner, mmilgram, mstowell, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, sidakwo, sukulkar, tglozar, tyberry, vkumar, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.11.21, kernel 5.12.4, kernel 5.13 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the scsi/lpfcIt subsystem of the Linux kernel, where it is possible to call lpfc_issue_els_plogi() passing a did argument for which no matching ndlp is found. A call is then made to lpfc_prep_els_iocb() with a NULL pointer to a lpfc_nodelist structure, resulting in a NULL pointer dereference.
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:
Bug Depends On: 2266725    
Bug Blocks: 2267020    

Description Mauro Matteo Cascella 2024-02-28 20:49:21 UTC
In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb()

The Linux kernel CVE team has assigned CVE-2021-47045 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024022839-CVE-2021-47045-7363@gregkh/T/#u

Comment 1 Mauro Matteo Cascella 2024-02-28 20:49:55 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2266725]

Comment 7 Justin M. Forbes 2024-03-01 22:48:19 UTC
This was fixed for Fedora with the 5.12.4 stable kernel updates.

Comment 9 Alex 2024-06-09 15:03:09 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-47045 is: CHECK	Maybe valid. Check manually. with impact MODERATE (that is approximation based on flags NULLPTR SIMPLEFIX LOG  ; these flags parsed automatically based on patche data). Such automatic check happens only for Low/Moderates (and only when not from reporter, but parsing already existing CVE). Highs always checked manually (I check it myself and then we check it again in Remediation team). In rare cases some of the Moderates could be increased to High later.