Bug 2221702 (CVE-2023-4133)

Summary: CVE-2023-4133 kernel: cxgb4: use-after-free in ch_flower_stats_cb()
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, crwood, dbohanno, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, kernel-mgr, ldoskova, lgoncalv, lleshchi, lzampier, nmurray, ptalbert, qzhao, rogbas, rrobaina, rvrbovsk, rysulliv, scweaver, tglozar, tyberry, vkumar, walters, wcosta, williams, wmealing, ycote, ymankad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: kernel 6.3 Doc Type: If docs needed, set a value
Doc Text:
A use-after-free vulnerability was found in the cxgb4 driver in the Linux kernel. The bug occurs when the cxgb4 device is detaching due to a possible rearming of the flower_stats_timer from the work queue. This flaw allows a local user to crash the system, causing a denial of service condition.
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:
Bug Depends On: 2221712, 2221713, 2228787, 2228789, 2228790    
Bug Blocks: 2221670    

Description Mauro Matteo Cascella 2023-07-10 15:34:32 UTC
From the upstream fix below: The flower_stats_timer can schedule flower_stats_work and flower_stats_work can also arm the flower_stats_timer [..] When the cxgb4 device is detaching, the timer and workqueue could still be rearmed. As a result, a possible use-after-free bug could happen.

Upstream commit:

Comment 2 Mauro Matteo Cascella 2023-08-03 09:31:06 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2228787]

Comment 4 Justin M. Forbes 2023-08-07 22:09:28 UTC
This was fixed for Fedora with the 6.2.13 stable kernel updates.

Comment 5 errata-xmlrpc 2024-04-30 10:11:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2394 https://access.redhat.com/errata/RHSA-2024:2394

Comment 6 errata-xmlrpc 2024-05-22 09:14:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:2950 https://access.redhat.com/errata/RHSA-2024:2950

Comment 7 errata-xmlrpc 2024-05-22 09:50:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:3138 https://access.redhat.com/errata/RHSA-2024:3138