octeontx2-af: fix the double free in rvu_npc_freemem()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: fix the double free in rvu_npc_freemem()
Clang static checker(scan-build) warning: drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c:line 2184, column 2 Attempt to free released memory.
npc_mcam_rsrcs_deinit() has released 'mcam->counters.bmap'. Deleted this redundant kfree() to fix this double free problem.
From the CVE record · Linux
The Linux kernel’s octeontx2-af driver attempts to free memory already released by npc_mcam_rsrcs_deinit(). The input does not establish whether an attacker can trigger this issue or specify access or interaction requirements.
Engineers running Linux kernels with the octeontx2-af driver should check their versions; affected versions were not provided.