Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.259, 5.15.210, 6.1.176, 6.12.93, 6.18.35, 6.6.143, 7.0.11
CVEs
CVE-2026-64222
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 04:14 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 24 Jul 2026, 15:23 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.

osv:CVE-2026-64222

Kernel

Fixed versions: 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.11

Complete source record
{
  "id": "0b5c0d87d4be2b393a84cb2e6de44a85e1ce7356f6c2ddfd0c2da7a1aa0181b7",
  "url": "https://osv.dev/vulnerability/CVE-2026-64222",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "octeontx2-pf: avoid double free of pool->stack on AQ init failure",
    "summary": "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.",
    "evidence": "osv:CVE-2026-64222",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.259",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.210",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.176",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.143",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.93",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.35",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-64222",
      "aliases": [
        "CVE-2026-64222"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "caa2da34fd25a37e9fd43343b6966fb9d730a6d5"
                },
                {
                  "fixed": "e6e9bc0bf963662b7042048ab0281014625d4cb4"
                },
                {
                  "fixed": "b92e7ea408b6f1144648909c9c49a55d245d7300"
                },
                {
                  "fixed": "94192b0579333c3deee2441379aab8ca98fc2e6b"
                },
                {
                  "fixed": "4c29603498b05c049dbbbc47e882f2fbf0193cd7"
                },
                {
                  "fixed": "0488a0bb344fb1992853b60082acff6be8164d74"
                },
                {
                  "fixed": "0d9b9d7dbef976ae7f855b6358f1d703014e96ea"
                },
                {
                  "fixed": "c4b8c5d51632538b19ee01cf6d70cbceeefbd3ec"
                },
                {
                  "fixed": "9b244c242bec48b37e82b89787afd6a4c43457e1"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64222.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.6.0"
                },
                {
                  "fixed": "5.10.259"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.210"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.176"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.143"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.93"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.35"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.11"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64222.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.447376160Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0488a0bb344fb1992853b60082acff6be8164d74",
        "https://git.kernel.org/stable/c/0d9b9d7dbef976ae7f855b6358f1d703014e96ea",
        "https://git.kernel.org/stable/c/4c29603498b05c049dbbbc47e882f2fbf0193cd7",
        "https://git.kernel.org/stable/c/94192b0579333c3deee2441379aab8ca98fc2e6b",
        "https://git.kernel.org/stable/c/9b244c242bec48b37e82b89787afd6a4c43457e1",
        "https://git.kernel.org/stable/c/b92e7ea408b6f1144648909c9c49a55d245d7300",
        "https://git.kernel.org/stable/c/c4b8c5d51632538b19ee01cf6d70cbceeefbd3ec",
        "https://git.kernel.org/stable/c/e6e9bc0bf963662b7042048ab0281014625d4cb4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64222.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-64222",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64222.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-64222",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518044,
  "published_at": "2026-07-24T15:23:08.072+00:00"
}