Bug 2266397 (CVE-2021-46919)

Summary: CVE-2021-46919 kernel: wq size store permission state
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
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, sukulkar, tglozar, tyberry, vkumar, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
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 flaw was found in the Linux Kernel. The WQ size can only be changed when the device is disabled. The current code allows change when the device is enabled but WQ is disabled. Change the check to detect the device state.
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: 2266399    
Bug Blocks: 2266369    

Description Rohit Keshri 2024-02-27 18:27:46 UTC
In the Linux kernel, the following vulnerability has been resolved:

dmaengine: idxd: fix wq size store permission state

WQ size can only be changed when the device is disabled. Current code
allows change when device is enabled but wq is disabled. Change the check
to detect device state.

https://git.kernel.org/stable/c/05b7791c4c4aa8304368fdc55ae911f6b34e7281
https://git.kernel.org/stable/c/0fff71c5a311e1264988179f7dcc217fda15fadd
https://git.kernel.org/stable/c/4ecf25595273203010bc8318c4aee60ad64037ae

Comment 1 Rohit Keshri 2024-02-27 18:33:48 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2266399]

Comment 3 Justin M. Forbes 2024-02-27 23:14:17 UTC
This was fixed for Fedora with the 5.11.16 stable kernel updates.

Comment 6 Alex 2024-06-09 16:40:37 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-46919 is: CHECK	Maybe valid. Check manually. with impact LOW (that is an approximation based on flags SIMPLEFIX IMPROVEONLY  ; 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.