RDMA/ionic: Embed counter driver data in rdma_counter allocation
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 08b8630b557828aedb1d9ef0a6e2ec421f334ee2, Kernel c98197ee3cd28288da13dc9881bb9e74daa7cbbc, Kernel cf3ebd89e754015625fee90aa938f6bc79a2c974 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/ionic: Embed counter driver data in rdma_counter allocation Commit 7e53b31acc7f ("RDMA/core: Create and destroy rdma_counter using rdma_zalloc_drv_obj()") requires drivers implementing counter ops to embed struct rdma_counter in a driver-specific struct, register its size via INIT_RDMA_OBJ_SIZE, and provide a counter_init callback. The ionic driver was merged without this adaptation, causing a NULL pointer dereference in alloc_and_bind() since rdma_zalloc_drv_obj() allocates zero bytes when size_rdma_counter is unset. Consolidate struct ionic_counter into a new struct ionic_rdma_counter that embeds struct rdma_counter, replace the xarray with a lightweight ida for ID allocation, and add the required counter_init and INIT_RDMA_OBJ_SIZE declarations.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=ea4c399642b85dc30f44d90ee805c6a18fa03062 <08b8630b557828aedb1d9ef0a6e2ec421f334ee2, >=ea4c399642b85dc30f44d90ee805c6a18fa03062 <c98197ee3cd28288da13dc9881bb9e74daa7cbbc, >=ea4c399642b85dc30f44d90ee805c6a18fa03062 <cf3ebd89e754015625fee90aa938f6bc79a2c974 | 08b8630b557828aedb1d9ef0a6e2ec421f334ee2, c98197ee3cd28288da13dc9881bb9e74daa7cbbc, cf3ebd89e754015625fee90aa938f6bc79a2c974 |
| linux-kernel: Kernel | >=6.18.0 <6.18.51, >=6.19.0 <7.2.4 | 6.18.51, 7.2.4 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket