Bug 2300458 (CVE-2024-41081)

Summary: CVE-2024-41081 kernel: ila: block BH in ila_output()
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 4.19.319, kernel 5.4.281, kernel 5.10.223, kernel 5.15.164, kernel 6.1.101, kernel 6.6.42, kernel 6.9.11, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
A race condition flaw was found in the Linux kernel's IP Last Anomaly (ILA) subsystem. This issue occurs when the `ila_output()` function, called from `lwtunnel_output()` in process context and under RCU read lock, could be interrupted by a softirq, leading to potential corruption of `dst_cache` data structures.
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: 2301656    
Bug Blocks:    

Description OSIDB Bzimport 2024-07-29 15:51:49 UTC
In the Linux kernel, the following vulnerability has been resolved:

ila: block BH in ila_output()

As explained in commit 1378817486d6 ("tipc: block BH
before using dst_cache"), net/core/dst_cache.c
helpers need to be called with BH disabled.

ila_output() is called from lwtunnel_output()
possibly from process context, and under rcu_read_lock().

We might be interrupted by a softirq, re-enter ila_output()
and corrupt dst_cache data structures.

Fix the race by using local_bh_disable().

Comment 1 Mauro Matteo Cascella 2024-07-30 14:56:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072926-CVE-2024-41081-2552@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 14:56:32 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301656]