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.
Published: 2026-07-24
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The octeontx2-pf driver in the Linux kernel contains a double free bug in its pool allocation routine. During AQ initialization, freeing pool->stack when a mailbox sync or retry allocation fails releases memory but leaves the pointer unchanged. A later cleanup path then frees the same memory again, corrupting kernel memory, a classic example of CWE-415 double free and also covered by CWE-1341 memory corruption. This corruption can trigger kernel crashes or allow an attacker with local kernel access to exploit the double free for privilege escalation.

Affected Systems

All Linux kernel revisions that include the octeontx2-pf driver and the CN20K-specific cn20k_pool_aq_init routine before the patch are affected. The issue was identified in v6.13-rc1 and persists through v7.1-rc3, and is likely present in any earlier releases that retain the same driver code.

Risk and Exploitability

The CVSS score of 7.0 classifies this double‑free flaw as a high‑severity kernel memory corruption vulnerability. Despite the low EPSS (<1%) and the fact that it is not listed in CISA KEV, the potential impact remains significant because it could trigger a kernel crash or enable local privilege escalation. The attack vector appears to be local: an attacker must have access to OcteonTX2/CN20K hardware and be able to trigger the driver. Remote exploitation is unlikely without direct device access. The narrow attack surface combined with the low exploitation probability makes this risk moderate, but an affected host should still apply the patch promptly.

Generated by OpenCVE AI on August 13, 2026 at 11:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the patch that clears pool->stack after free
  • If updating the kernel immediately is not feasible, disable or unload the octeontx2-pf driver to eliminate the double free risk
  • Continuously monitor kernel logs for pool-allocation or double‑free errors and apply the fix as soon as it becomes available

Generated by OpenCVE AI on August 13, 2026 at 11:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Tue, 11 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*

Wed, 29 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1341
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Fri, 24 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
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.
Title octeontx2-pf: avoid double free of pool->stack on AQ init failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:40:09.522Z

Reserved: 2026-07-19T15:36:31.770Z

Link: CVE-2026-64222

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-07-24T16:16:50.053

Modified: 2026-08-11T18:24:11.017

Link: CVE-2026-64222

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-24T00:00:00Z

Links: CVE-2026-64222 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T11:15:05Z

Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle

  • CWE-415

    Double Free