Bug 2267198 (CVE-2021-46959)

Summary: CVE-2021-46959 kernel: spi: Fix use-after-free with devm_spi_alloc_*
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, drow, dvlasenk, 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 4.4.271, kernel 4.9.271, kernel 4.14.233, kernel 4.19.191, kernel 5.4.119, kernel 5.10.37, kernel 5.11.21, kernel 5.12.4, kernel 5.13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-24 15:00:32 UTC 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: 2267199    
Bug Blocks: 2267197    

Description Avinash Hanwate 2024-03-01 05:19:38 UTC
In the Linux kernel, the following vulnerability has been resolved:

spi: Fix use-after-free with devm_spi_alloc_*

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024022916-CVE-2021-46959-f517@gregkh/T/#u

Comment 1 Avinash Hanwate 2024-03-01 05:20:16 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2267199]

Comment 5 Justin M. Forbes 2024-03-01 18:03:02 UTC
This was fixed for Fedora with the 5.12.4 stable kernel updates.

Comment 7 Alex 2024-06-09 16:30:33 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-46959 is: CHECK	Maybe valid. Check manually. with impact LOW (that is an approximation based on flags INIT WARNONLY UAF  ; these flags parsed automatically based on patch 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.