octeontx2-pf: avoid double free of pool->stack on AQ init failure

Summary

CVECVE-2026-64222
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-24 16:16:50 UTC
Updated2026-07-24 16:16:50 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 e6e9bc0bf963662b7042048ab0281014625d4cb4 git Not specified
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 b92e7ea408b6f1144648909c9c49a55d245d7300 git Not specified
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 94192b0579333c3deee2441379aab8ca98fc2e6b git Not specified
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 4c29603498b05c049dbbbc47e882f2fbf0193cd7 git Not specified
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 0488a0bb344fb1992853b60082acff6be8164d74 git Not specified
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 0d9b9d7dbef976ae7f855b6358f1d703014e96ea git Not specified
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 c4b8c5d51632538b19ee01cf6d70cbceeefbd3ec git Not specified
CNA Linux Linux affected caa2da34fd25a37e9fd43343b6966fb9d730a6d5 9b244c242bec48b37e82b89787afd6a4c43457e1 git Not specified
CNA Linux Linux affected 5.6 Not specified
CNA Linux Linux unaffected 5.6 semver Not specified
CNA Linux Linux unaffected 5.10.259 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.210 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.176 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.143 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.93 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.35 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.11 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/0488a0bb344fb1992853b60082acff6be8164d74 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4c29603498b05c049dbbbc47e882f2fbf0193cd7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c4b8c5d51632538b19ee01cf6d70cbceeefbd3ec 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9b244c242bec48b37e82b89787afd6a4c43457e1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/94192b0579333c3deee2441379aab8ca98fc2e6b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b92e7ea408b6f1144648909c9c49a55d245d7300 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e6e9bc0bf963662b7042048ab0281014625d4cb4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0d9b9d7dbef976ae7f855b6358f1d703014e96ea 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report