Bug 2506817 (CVE-2026-64222) - CVE-2026-64222 kernel: octeontx2-pf: avoid double free of pool->stack on AQ init failure
Summary: CVE-2026-64222 kernel: octeontx2-pf: avoid double free of pool->stack on AQ i...
Keywords:
Status: NEW
Alias: CVE-2026-64222
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-24 16:05 UTC by OSIDB Bzimport
Modified: 2026-07-28 12:08 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-24 16:05:38 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-07-28 12:05:46 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026072416-CVE-2026-64222-ee5a@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.