# CVE-2026-64118: qed: fix double free in qed_cxt_tables_alloc()

- Severity: High 8.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-19T15:40:17.643Z
- Modified: 2026-10-19T21:17:24.603Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

qed: fix double free in qed_cxt_tables_alloc()

If one of the later PF or VF CID bitmap allocations fails,
qed_cid_map_alloc() jumps to cid_map_fail and frees the previously
allocated CID bitmaps before returning an error. qed_cxt_tables_alloc()
then calls qed_cxt_mngr_free(), which invokes qed_cid_map_free()
again.

Fix this by setting each CID bitmap pointer to NULL after bitmap_free()
to avoid double free.

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 reproduction was not attempted because exercising the failing
allocation path requires device-specific setup.

(As written by CVE List.)

## Affected

- Linux Linux: from fe56b9e6a8d957d6a20729d626027f800c17a2da before 9fe030719bd083b766602692ee96c8c985798e3c; from fe56b9e6a8d957d6a20729d626027f800c17a2da before 06fa8e69019fd3c41a7b0ea8c5f509c3a33dc227; from fe56b9e6a8d957d6a20729d626027f800c17a2da before 8cf5e4d2ca6b101d163c7423a426fb0aec34f7bb; from fe56b9e6a8d957d6a20729d626027f800c17a2da before 3904b993cc17ec5d7c5d3b57dbd0b775dafb9684; from fe56b9e6a8d957d6a20729d626027f800c17a2da before bdf678a273cadbccc347f331ae2e93ff4d14834c; from fe56b9e6a8d957d6a20729d626027f800c17a2da before 0e47fc1c9181ae029e0e35a865cbf2adcbae626c; from fe56b9e6a8d957d6a20729d626027f800c17a2da before a04c207f0801abdd23a169b5f902a9845059a65a; from fe56b9e6a8d957d6a20729d626027f800c17a2da before 2bccfb8476ca5f3548afbd623dc7a6980d4e77de; 4.4 (not affected: before 4.4; from 5.10.259 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.142 up to 6.6.*; from 6.12.92 up to 6.12.*; 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 4.4 before 5.10.259; from 5.11 before 5.15.210; from 5.16 before 6.1.175; from 6.2 before 6.6.142; from 6.7 before 6.12.92; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/9fe030719bd083b766602692ee96c8c985798e3c> (patch)
- <https://git.kernel.org/stable/c/06fa8e69019fd3c41a7b0ea8c5f509c3a33dc227> (patch)
- <https://git.kernel.org/stable/c/8cf5e4d2ca6b101d163c7423a426fb0aec34f7bb> (patch)
- <https://git.kernel.org/stable/c/3904b993cc17ec5d7c5d3b57dbd0b775dafb9684> (patch)
- <https://git.kernel.org/stable/c/bdf678a273cadbccc347f331ae2e93ff4d14834c> (patch)
- <https://git.kernel.org/stable/c/0e47fc1c9181ae029e0e35a865cbf2adcbae626c> (patch)
- <https://git.kernel.org/stable/c/a04c207f0801abdd23a169b5f902a9845059a65a> (patch)
- <https://git.kernel.org/stable/c/2bccfb8476ca5f3548afbd623dc7a6980d4e77de> (patch)

## Sources

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

---

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