CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's octeontx2-pf component, where a double free of memory occurs during the initialization of a pool due to improper handling of pointers after allocation failures. This flaw can lead to potential memory corruption, which may be exploited to execute arbitrary code or crash the system. Organizations using Linux on OcteonTX2 or CN20K hardware should prioritize this issue to mitigate risks associated with memory management vulnerabilities.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: avoid double free of pool->stack on AQ init failure otx2_pool_aq_init() frees pool->stack when mailbox sync or retry allocation fails, but leaves the pointer unchanged. Later, otx2_sq_aura_pool_init() unwinds the partial setup through otx2_aura_pool_free(), which frees pool->stack again. The CN20K-specific cn20k_pool_aq_init() implementation has the same bug in its corresponding error path. Set pool->stack to NULL immediately after the local free so the shared cleanup path does not free the same stack again while cleaning up partially initialized pool state. The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1-rc3. Runtime validation was not performed because reproducing this path requires OcteonTX2/CN20K hardware.
Related CVEs
Other vulnerabilities affecting the same vendor(s)