Bug 2267023 (CVE-2023-52484)

Summary: CVE-2023-52484 kernel: iommu/arm-smmu-v3: Fix soft lockup triggered by arm_smmu_mm_invalidate_range
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, cye, cyin, 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, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, scweaver, sidakwo, sukulkar, tglozar, vkumar, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.15.134, kernel 6.1.56, kernel 6.5.6, kernel 6.6 Doc Type: If docs needed, set a value
Doc Text:
In arm_smmu_v3 (part of the Linux IOMMU/SMMU driver), there’s a bug in the function arm_smmu_mm_invalidate_range (or its renamed variant) that can trigger a soft lockup, meaning the CPU gets stuck executing without making progress. The issue arises when flushing/invalidating TLB (translation lookaside buffer) ranges: there’s no limit enforced for the number of per-page TLBI (TLB invalidation) operations, unlike in the CPU MMU path which has MAX_TLBI_OPS. This allows extremely large or many invalidation requests to overwhelm the arm_smmu command queue, causing it to spin or stall.
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: 2267024    
Bug Blocks: 2266913    

Description Avinash Hanwate 2024-02-29 11:08:25 UTC
In the Linux kernel, the following vulnerability has been resolved:

iommu/arm-smmu-v3: Fix soft lockup triggered by arm_smmu_mm_invalidate_range

The Linux kernel CVE team has assigned CVE-2023-52484 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024022923-CVE-2023-52484-3635@gregkh/T/#u

Comment 1 Avinash Hanwate 2024-02-29 11:09:05 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2267024]

Comment 2 Justin M. Forbes 2024-02-29 17:29:45 UTC
This was fixed for Fedora with the 6.5.6 stable kernel updates.

Comment 5 Alex 2024-06-09 13:16:12 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2023-52484 is: 	SKIP	No affected files built, so skip this CVE	NO			-	-	unknown (where first YES/NO value means if related sources built).