Bug 2187931 (CVE-2023-2176)

Summary: CVE-2023-2176 Kernel: Slab-out-of-bound read in compare_netdev_and_ip
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, dbohanno, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, kernel-mgr, ldoskova, lgoncalv, lleshchi, lzampier, nmurray, ptalbert, qzhao, rogbas, rrobaina, rvrbovsk, rysulliv, scweaver, swood, tyberry, vkumar, walters, wcosta, williams, wmealing, ycote
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in compare_netdev_and_ip in drivers/infiniband/core/cma.c in RDMA in the Linux kernel. An improper cleanup results in an out-of-boundary read. This flaw allows a local user to crash or escalate privileges on the system.
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: 2187937, 2187939, 2187935, 2187936, 2187938    
Bug Blocks: 2158739    

Description Rohit Keshri 2023-04-19 07:00:27 UTC
The improper cleanup of resolve_prepare_src leads to a key mismatch or duplicate key in the cma id tree, which results in out-of-boundary in compare_netdev_and_ip. The issue was found in drivers/infiniband/core/cma.c in Linux in 6.1. A local user can utilize this bug to crash the system or escalation of privilege.

Affected component: rdma driver

References:
https://lkml.org/lkml/2022/12/9/178
https://www.spinics.net/lists/linux-rdma/msg114749.html
https://patchwork.kernel.org/project/linux-rdma/patch/3d0e9a2fd62bc10ba02fed1c7c48a48638952320.1672819273.git.leonro@nvidia.com/

Comment 2 Rohit Keshri 2023-04-19 07:15:56 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2187935]