Bug 2162096 (CVE-2022-44033)

Summary: CVE-2022-44033 Kernel: A race condition between cm4040_open() and reader_detach() may result in UAF
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, bhu, chwhite, crwood, ddepaula, debarbos, dfreiber, dhoward, dvlasenk, ezulian, fhrbata, hkrzesin, jarod, jburrell, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, kernel-mgr, kyoshida, lgoncalv, lleshchi, lzampier, nmurray, ptalbert, qzhao, rogbas, rvrbovsk, scweaver, security-response-team, tyberry, vkumar, walters, williams
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 use-after-free flaw was found in the Linux Kernel. This issue occurs due to a race between cm4040_open() and reader_detach() in drivers/char/pcmcia/cm4040_cs.c when a physically proximate attacker removes a PCMCIA device while calling open().
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-21 14:22:15 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: 2162101    
Bug Blocks: 2139046    

Description Rohit Keshri 2023-01-18 19:00:02 UTC
A race condition may occur if the user physically removes the pcmcia device while calling open() for this char device node. This is a race condition between the cm4040_open() function and the reader_detach() function, which may eventually result in UAF.

Reference:
https://lore.kernel.org/lkml/20220919040457.GA302681@ubuntu/

Comment 1 Rohit Keshri 2023-01-18 19:03:31 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2162101]

Comment 4 Product Security DevOps Team 2023-01-21 14:22:11 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-44033

Comment 8 Justin M. Forbes 2023-09-25 16:46:33 UTC
This was fixed with the 6.4 kernel series which removed these outdated drivers.