Bug 2265802 (CVE-2024-26599)

Summary: CVE-2024-26599 kernel: pwm: Fix out-of-bounds access in of_pwm_single_xlate()
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
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, darcari, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mleitner, mmilgram, mstowell, ndegraef, nmurray, prarit, ptalbert, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, 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 6.8-rc1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel due to an out-of-bounds access issue in the of_pwm_single_xlate() function within the drivers/pwm/core.c file. This issue occurs because of incorrect indexing of arguments (args->args[2]) when args->args_count == 2, leading to potential memory corruption.
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: 2265814    
Bug Blocks: 2265790    

Description Patrick Del Bello 2024-02-24 11:20:38 UTC
With args->args_count == 2 args->args[2] is not defined. Actually the
flags are contained in args->args[1].

Comment 1 Patrick Del Bello 2024-02-24 11:26:12 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2265814]

Comment 6 Justin M. Forbes 2024-02-26 23:54:18 UTC
This was fixed for Fedora with the 6.6.14 stable kernel updates.

Comment 8 Keith Grant 2024-03-12 17:22:44 UTC
Marking RHEL not affected.

Comment 9 Alex 2024-06-09 13:34:04 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-26599 is: 	SKIP	The Fixes patch not applied yet, so unlikely that actual: 3ab7b6ac5d829e60c3b89d415811ff1c9f358c8e	YES			NO	NO	unknown (where first YES/NO value means if related sources built).