Bug 2187931 (CVE-2023-2176) - CVE-2023-2176 Kernel: Slab-out-of-bound read in compare_netdev_and_ip
Summary: CVE-2023-2176 Kernel: Slab-out-of-bound read in compare_netdev_and_ip
Keywords:
Status: NEW
Alias: CVE-2023-2176
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2187937 2187939 2187935 2187936 2187938
Blocks: 2158739
TreeView+ depends on / blocked
 
Reported: 2023-04-19 07:00 UTC by Rohit Keshri
Modified: 2023-07-07 08:28 UTC (History)
44 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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]


Note You need to log in before you can comment on or make changes to this bug.