Bug 2275643 (CVE-2024-26902)

Summary: CVE-2024-26902 kernel: perf: RISCV: Fix panic on pmu overflow handler
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, vsroka, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.6.23, kernel 6.7.11, kernel 6.8 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel in the RISC-V architecture. The issue arises in the perf subsystem's handling of Performance Monitoring Unit (PMU) overflow interrupts. Specifically, it involves an error when setting bits in the overflowed_ctrs variable, where an incorrect shift operation using an `int` rather than an unsigned long can lead to kernel panic. This vulnerability triggers a NULL pointer dereference, causing the kernel to crash when running certain perf commands, such as perf record -e branches, on systems like the Sophgo SG2042. The issue results in system instability, potentially leading to a denial-of-service (DoS) scenario. The problem has been fixed by replacing the faulty code with a more appropriate bit-setting operation using the BIT() macro.
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: 2275644    
Bug Blocks: 2275696    

Description Robb Gatica 2024-04-17 17:36:09 UTC
In the Linux kernel, the following vulnerability has been resolved:

perf: RISCV: Fix panic on pmu overflow handler

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024041745-CVE-2024-26902-5f77@gregkh/T

Comment 1 Robb Gatica 2024-04-17 17:36:43 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2275644]