Bug 2244712 (CVE-2023-40791)

Summary: CVE-2023-40791 kernel: lib/scatterlist.c fails to unpin pages
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jforbes, jlelli, joe.lawrence, jpoimboe, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mstowell, nmurray, ptalbert, rogbas, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, 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:
An unreleased memory page flaw (unpinned) was found in extract_user_to_sg in the lib/scatterlist.c function of the Linux kernel. This flaw allows a local user, or potentially remote user, to crash the system.
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: 2244713    
Bug Blocks: 2244710    

Description Robb Gatica 2023-10-17 22:30:29 UTC
CVE-2023-40791

---

extract_user_to_sg in lib/scatterlist.c in the Linux kernel before 6.4.12 fails to unpin pages in a certain situation, as demonstrated by a WARNING for try_grab_page.

https://lkml.org/lkml/2023/8/3/323
https://lore.kernel.org/linux-crypto/20571.1690369076@warthog.procyon.org.uk/
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.4.12
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f443fd5af5dbd531f880d3645d5dd36976cf087f

Comment 1 Robb Gatica 2023-10-17 22:30:53 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2244713]

Comment 2 Justin M. Forbes 2023-10-18 13:42:54 UTC
This was fixed for Fedora with the 6.4.12 stable kernel updates.