RDMA/cxgb4: Free debugfs on registration failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.8, Kernel 4.20, Kernel 046425412529dbfca1433c8bef5641b271b4ab2a and 15 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/cxgb4: Free debugfs on registration failure c4iw_alloc() creates the per-device debugfs tree (dev->debugfs_root via setup_debugfs()), but it is removed only in c4iw_remove(), not in c4iw_dealloc(). When RDMA device registration fails, the registration worker's err_dealloc_ctx path calls c4iw_dealloc() directly, bypassing c4iw_remove(), so the debugfs dentries leak and outlive the freed c4iw_dev. Move debugfs_remove_recursive() into c4iw_dealloc() so every path that frees ctx->dev also removes its debugfs tree.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.7.6 <5.8, >=4.19.130 <4.20, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <046425412529dbfca1433c8bef5641b271b4ab2a, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <459b59f7ed56511d6529311cb4e5e482ebfcfb8e, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <479a7f90060e62bdd9bb4036ec0a70bf460f6d23, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <c332d9e7dce234d8bef78271d003a68ee943b61b, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <cd60992f09b7e83bfd3c76e3bb06b29f3e2fa0a8, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <ea41b5630fa3d9877ce9ed8832cf5575f742bfbb, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <f98e894ec029a752cf9c7f7834741bead0fb463d, >=49ea0c036ede81f126f1a9389d377999fdf5c5a1 <fe5c16bb6252dea6025b748257ddc3b2665495b0, >=5.4.49 <5.5, =5.8, =98fa991017981b52dcc4dc3924fc8e1e83e41bf4, =9c0cec79e5c914662c2cf98b4a729c0fcc8c872e, =af92e4a595e006b498c44b617ea38f697eca3469 | 5.8, 4.20, 046425412529dbfca1433c8bef5641b271b4ab2a, 459b59f7ed56511d6529311cb4e5e482ebfcfb8e, 479a7f90060e62bdd9bb4036ec0a70bf460f6d23, c332d9e7dce234d8bef78271d003a68ee943b61b, cd60992f09b7e83bfd3c76e3bb06b29f3e2fa0a8, ea41b5630fa3d9877ce9ed8832cf5575f742bfbb, f98e894ec029a752cf9c7f7834741bead0fb463d, fe5c16bb6252dea6025b748257ddc3b2665495b0, 5.5 |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=5.4.49 <5.5, >=5.7.6 <5.8, >=5.8.0 <5.10.270, >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=4.19.130 <4.20 | 5.15.221, 6.1.188, 5.5, 5.8, 5.10.270, 6.18.52, 7.2.6, 6.6.157, 6.12.110, 4.20 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket