Bug 2281931 (CVE-2024-35955)

Summary: CVE-2024-35955 kernel: kprobes: Fix possible use-after-free issue on kprobe registration
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, 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 4.19.313, kernel 5.4.275, kernel 5.10.216, kernel 5.15.157, kernel 6.1.87, kernel 6.6.28, kernel 6.8.7, kernel 6.9 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel's kprobes functionality, where a use-after-free issue could occur during kprobe registration when unloading a module. The problem arises due to the module's state changing from `MODULE_STATE_LIVE` to `MODULE_STATE_UNFORMED` between two address checks (`is_module_text_address()` and `__module_text_address()`). This can result in a failed address check and the attempt to modify a non-existent module text address, leading to a use-after-free.
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: 2281932    
Bug Blocks: 2282032    

Description Robb Gatica 2024-05-20 17:15:08 UTC
In the Linux kernel, the following vulnerability has been resolved:

kprobes: Fix possible use-after-free issue on kprobe registration

The Linux kernel CVE team has assigned CVE-2024-35955 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024052018-CVE-2024-35955-2555@gregkh/T

Comment 1 Robb Gatica 2024-05-20 17:15:46 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281932]

Comment 2 Alex 2024-06-09 14:29:02 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-35955 is: 	SKIP	The Fixes patch not applied yet, so unlikely that actual: 28f6c37a2910f565b4f5960df52b2eccae28c891	YES			NO	NO	unknown	 (where first YES/NO value means if related sources built).