octeontx2-af: Free BPID bitmap on setup failure
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: Free BPID bitmap on setup failure
nix_setup_bpids() allocates bp->bpids with rvu_alloc_bitmap(), which uses a plain kcalloc(). If any of the following devm_kcalloc() allocations for the BPID mapping arrays fails, the function returns without freeing the bitmap. Free the BPID bitmap before returning from those error paths.
From the CVE record · Linux
The octeontx2-af BPID setup path fails to free a bitmap if a subsequent mapping-array allocation fails, causing a memory leak. The input does not establish whether an attacker can trigger the failure or specify access or user-interaction requirements.
Engineers running the Linux kernel should check whether their version includes the affected octeontx2-af code; affected versions are not specified.