octeontx2-af: CGX: fix bitmap leaks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e740003874edc13e468d19233f99787bedb4bb8e · < 3def995c4ede842adf509c410e92d09a0cedc965| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: CGX: fix bitmap leaks
The RX/TX flow-control bitmaps (rx_fc_pfvf_bmap and tx_fc_pfvf_bmap) are allocated by cgx_lmac_init() but never freed in cgx_lmac_exit(). Unbinding and rebinding the driver therefore triggers kmemleak:
unreferenced object (size 16): backtrace: rvu_alloc_bitmap cgx_probe
Free both bitmaps during teardown.
From the CVE record · Linux
The Linux kernel's octeontx2-af CGX driver does not free two flow-control bitmaps during teardown. Unbinding and rebinding the driver locally triggers a memory leak. The input does not specify authentication requirements or other user interaction.
Engineers running the Linux kernel with the octeontx2-af CGX driver should check their systems; affected versions are not specified.