What’s Vulnerable › Vulnerabilities
CVE-2021-47537: octeontx2-af: Fix a memleak bug in rvu_mbox_init()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-24 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: octeontx2-af: Fix a memleak bug in rvu_mbox_init() In rvu_mbox_init(), mbox_regions is not freed or passed out under the switch-default region, which could lead to a memory leak. Fix this bug by changing 'return err' to 'goto free_regions'. This bug was found by a static analyzer. The analysis employs differential checking to identify inconsistent security operations (e.g., checks or kfrees) between two code paths and confirms that the inconsistent operations are not recovered in the current function or the callers, so they constitute bugs. Note that, as a bug found by static analysis, it can be a false positive or hard to trigger. Multiple researchers have cross-reviewed the bug. Builds with CONFIG_OCTEONTX2_AF=y show no new warnings, and our static analyzer no longer warns about this code.
Affected products
- Linux kernel: from 5.12 before 5.15.7 — fixed in 5.15.7
How to fix
Upgrade to a fixed version: Linux kernel 5.15.7. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1c0ddef45b7e3dbe3ed073695d20faa572b7056a
- https://git.kernel.org/stable/c/e07a097b4986afb8f925d0bb32612e1d3e88ce15
- https://git.kernel.org/stable/c/1c0ddef45b7e3dbe3ed073695d20faa572b7056a
- https://git.kernel.org/stable/c/e07a097b4986afb8f925d0bb32612e1d3e88ce15
Get alerted when CVE-2021-47537 or the next vulnerability affects your stack