Bug 2262241 (CVE-2024-1151)

Summary: CVE-2024-1151 kernel: stack overflow problem in Open vSwitch kernel module leading to DoS
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, aconole, allarkin, aquini, bhu, carnil, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, drow, dvlasenk, echaudro, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mleitner, mmilgram, mstowell, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, security-response-team, 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-rc5 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was reported in the Open vSwitch sub-component in the Linux Kernel. The flaw occurs when a recursive operation of code push recursively calls into the code block. The OVS module does not validate the stack depth, pushing too many frames and causing a stack overflow. As a result, this can lead to a crash or other related issues.
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: 2263738    
Bug Blocks: 2262238    

Description Rohit Keshri 2024-02-01 11:28:13 UTC
A flaw in the Linux Kernel found in the Open vSwitch Kernel module.

The Netlink copy code in the ovs kernel module attempts to make an in-kernel copy of the actions required. That means that when recursive operations, like sample(), clone(), dec_ttl(), etc include additional actions, the code pushes a new stack frame and recursively calls into the code block.

Unfortunately, OVS module doesn't validate the stack depth, and will push too many frames causing a stack overflow which can lead to crash.

Reference:
https://lore.kernel.org/all/20240207132416.1488485-1-aconole@redhat.com/

Comment 7 Alex 2024-02-11 14:14:38 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2263738]

Comment 10 Salvatore Bonaccorso 2024-02-11 21:13:44 UTC
Is the "Fixed In Version" metadata really correct? The submitted change does not seem to have hit Linux tree yet and not in 6.8-rc4.

Comment 12 Justin M. Forbes 2024-02-15 19:33:19 UTC
(In reply to Salvatore Bonaccorso from comment #10)
> Is the "Fixed In Version" metadata really correct? The submitted change does
> not seem to have hit Linux tree yet and not in 6.8-rc4.

Looks like it did not make rc4, it is still in linux-next. Hopefully rc5?

Comment 13 Alex 2024-02-18 09:55:40 UTC
In reply to comment #12:
> (In reply to Salvatore Bonaccorso from comment #10)
> > Is the "Fixed In Version" metadata really correct? The submitted change does
> > not seem to have hit Linux tree yet and not in 6.8-rc4.
> 
> Looks like it did not make rc4, it is still in linux-next. Hopefully rc5?

Updated to kernel 6.8-rc5. Still need to check later if going to be included to rc5.