# CVE-2026-64224: octeontx2-pf: fix double free in rvu_rep_rsrc_init()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-24T15:23:09.209Z
- Modified: 2026-11-06T17:18:42.017Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

octeontx2-pf: fix double free in rvu_rep_rsrc_init()

rvu_rep_rsrc_init() allocates queue memory before calling
otx2_init_hw_resources(). When hardware resource setup fails,
otx2_init_hw_resources() already unwinds the partially initialized
SQ, CQ, and aura state before returning an error. The representor
error path then calls otx2_free_hw_resources() again and can free
the same resources a second time.

Fix this by splitting the cleanup labels so that a failure from
otx2_init_hw_resources() only releases queue memory. Keep the
otx2_free_hw_resources() call for failures that happen after
hardware resource initialization completed successfully.

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 representor hardware.

(As written by CVE List.)

## Affected

- Linux Linux: from 3937b7308d4fce2793fa7fa56ed0faf0f8b6dc7a before 8864b664d0443ecb8e56690e5546fcda5fe5e81b; from 3937b7308d4fce2793fa7fa56ed0faf0f8b6dc7a before eb72a65f2bb2cc059e2ca5d83de01fdf3ea602ad; from 3937b7308d4fce2793fa7fa56ed0faf0f8b6dc7a before e8fb3de2a8effcaf62bec2c56b93d8bb480371d1; 6.13 (not affected: before 6.13; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/8864b664d0443ecb8e56690e5546fcda5fe5e81b> (patch)
- <https://git.kernel.org/stable/c/eb72a65f2bb2cc059e2ca5d83de01fdf3ea602ad> (patch)
- <https://git.kernel.org/stable/c/e8fb3de2a8effcaf62bec2c56b93d8bb480371d1> (patch)

## Sources

- CVE List: [CVE-2026-64224](https://www.cve.org/CVERecord?id=CVE-2026-64224), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-64224](https://nvd.nist.gov/vuln/detail/CVE-2026-64224), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-64224 · Whole record: https://cve.day/CVE-2026-64224.json · Rebuilt by cve.day 2026-11-25T22:59:30.006Z
