Bug 2282382 (CVE-2021-47365)

Summary: CVE-2021-47365 kernel: afs: Fix page leak
Product: [Other] Security Response Reporter: ybuenos
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, esandeen, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, 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.14.9, kernel 5.15 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the afs_extend_writeback() function in the Linux kernel’s AFS module. A loop designed to enhance write efficiency can leak memory caused by the removal of the cleanup loop when the code switches from using find_get_pages_contig() to xarray scanning, as the latter only gets a single page at a time, not a batch results in a memory leak that accumulates, eventually using up to 4GiB of RAM with repeated operations.
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:    
Bug Blocks: 2282498    

Description ybuenos 2024-05-22 10:36:56 UTC
In the Linux kernel, the following vulnerability has been resolved:

afs: Fix page leak

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024052138-CVE-2021-47365-d5ef@gregkh/T

Comment 2 Alex 2024-06-09 13:49:43 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-47365 is: 	SKIP	The required patch already applied both for rhel8 and for rhel9: 581b2027af0018944ba301d68e7af45c6d1128b5	YES			YES	YES	unknown	 (where first YES/NO value means if related sources built).