{"id":"CVE-2026-64118","state":"PUBLISHED","title":"qed: fix double free in qed_cxt_tables_alloc()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nqed: fix double free in qed_cxt_tables_alloc()\n\nIf one of the later PF or VF CID bitmap allocations fails,\nqed_cid_map_alloc() jumps to cid_map_fail and frees the previously\nallocated CID bitmaps before returning an error. qed_cxt_tables_alloc()\nthen calls qed_cxt_mngr_free(), which invokes qed_cid_map_free()\nagain.\n\nFix this by setting each CID bitmap pointer to NULL after bitmap_free()\nto avoid double free.\n\nThe bug was first flagged by an experimental analysis tool we are\ndeveloping for kernel memory-management bugs while analyzing\nv6.13-rc1. The tool is still under development and is not yet publicly\navailable. Manual inspection confirms that the bug is still\npresent in v7.1-rc3.\n\nRuntime reproduction was not attempted because exercising the failing\nallocation path requires device-specific setup.","publishedAt":"2026-07-19T15:40:17.643Z","updatedAt":"2026-10-19T20:28:13.114Z","severity":{"score":8.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"9fe030719bd083b766602692ee96c8c985798e3c","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"06fa8e69019fd3c41a7b0ea8c5f509c3a33dc227","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"8cf5e4d2ca6b101d163c7423a426fb0aec34f7bb","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"3904b993cc17ec5d7c5d3b57dbd0b775dafb9684","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"bdf678a273cadbccc347f331ae2e93ff4d14834c","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"0e47fc1c9181ae029e0e35a865cbf2adcbae626c","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"a04c207f0801abdd23a169b5f902a9845059a65a","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"2bccfb8476ca5f3548afbd623dc7a6980d4e77de","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/qlogic/qed/qed_cxt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"5.10.259","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.210","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.175","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.142","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/qlogic/qed/qed_cxt.c"]}],"references":["https://git.kernel.org/stable/c/9fe030719bd083b766602692ee96c8c985798e3c","https://git.kernel.org/stable/c/06fa8e69019fd3c41a7b0ea8c5f509c3a33dc227","https://git.kernel.org/stable/c/8cf5e4d2ca6b101d163c7423a426fb0aec34f7bb","https://git.kernel.org/stable/c/3904b993cc17ec5d7c5d3b57dbd0b775dafb9684","https://git.kernel.org/stable/c/bdf678a273cadbccc347f331ae2e93ff4d14834c","https://git.kernel.org/stable/c/0e47fc1c9181ae029e0e35a865cbf2adcbae626c","https://git.kernel.org/stable/c/a04c207f0801abdd23a169b5f902a9845059a65a","https://git.kernel.org/stable/c/2bccfb8476ca5f3548afbd623dc7a6980d4e77de"],"weaknesses":["CWE-415"],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64118.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64118","state":"PUBLISHED","datePublished":"2026-07-19T15:40:17.643Z","dateUpdated":"2026-10-19T20:28:13.114Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.035Z"},"containers":{"cna":{"title":"qed: fix double free in qed_cxt_tables_alloc()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nqed: fix double free in qed_cxt_tables_alloc()\n\nIf one of the later PF or VF CID bitmap allocations fails,\nqed_cid_map_alloc() jumps to cid_map_fail and frees the previously\nallocated CID bitmaps before returning an error. qed_cxt_tables_alloc()\nthen calls qed_cxt_mngr_free(), which invokes qed_cid_map_free()\nagain.\n\nFix this by setting each CID bitmap pointer to NULL after bitmap_free()\nto avoid double free.\n\nThe bug was first flagged by an experimental analysis tool we are\ndeveloping for kernel memory-management bugs while analyzing\nv6.13-rc1. The tool is still under development and is not yet publicly\navailable. Manual inspection confirms that the bug is still\npresent in v7.1-rc3.\n\nRuntime reproduction was not attempted because exercising the failing\nallocation path requires device-specific setup."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"9fe030719bd083b766602692ee96c8c985798e3c","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"06fa8e69019fd3c41a7b0ea8c5f509c3a33dc227","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"8cf5e4d2ca6b101d163c7423a426fb0aec34f7bb","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"3904b993cc17ec5d7c5d3b57dbd0b775dafb9684","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"bdf678a273cadbccc347f331ae2e93ff4d14834c","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"0e47fc1c9181ae029e0e35a865cbf2adcbae626c","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"a04c207f0801abdd23a169b5f902a9845059a65a","versionType":"git"},{"version":"fe56b9e6a8d957d6a20729d626027f800c17a2da","status":"affected","lessThan":"2bccfb8476ca5f3548afbd623dc7a6980d4e77de","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/qlogic/qed/qed_cxt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"5.10.259","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.210","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.175","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.142","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.92","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/qlogic/qed/qed_cxt.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9fe030719bd083b766602692ee96c8c985798e3c"},{"url":"https://git.kernel.org/stable/c/06fa8e69019fd3c41a7b0ea8c5f509c3a33dc227"},{"url":"https://git.kernel.org/stable/c/8cf5e4d2ca6b101d163c7423a426fb0aec34f7bb"},{"url":"https://git.kernel.org/stable/c/3904b993cc17ec5d7c5d3b57dbd0b775dafb9684"},{"url":"https://git.kernel.org/stable/c/bdf678a273cadbccc347f331ae2e93ff4d14834c"},{"url":"https://git.kernel.org/stable/c/0e47fc1c9181ae029e0e35a865cbf2adcbae626c"},{"url":"https://git.kernel.org/stable/c/a04c207f0801abdd23a169b5f902a9845059a65a"},{"url":"https://git.kernel.org/stable/c/2bccfb8476ca5f3548afbd623dc7a6980d4e77de"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code runs only during PF driver resource initialization (probe or firmware-initiated recovery), reached via local kernel driver bring-up paths rather than network packet processing or remote protocol handlers.\nAC:L - An attacker who can influence system memory pressure (e.g., via local memory exhaustion) can reliably force `bitmap_zalloc()` failures during the multi-step CID bitmap allocation loop, and can also time this with firmware recovery reprobes that re-enter `qed_resc_alloc()`.\nPR:N - No local account or capability is strictly required if a remote attacker can induce firmware process-kill recovery on an internet-facing QED host, causing automatic re-execution of `qed_resc_alloc()` where post-incident memory pressure can trigger the failing allocation path.\nUI:N - Exploitation does not require any victim user action such as opening files or mounting filesystems; driver recovery and re-allocation occur automatically in kernel context once the error/recovery conditions are met.\nS:U - Impact is confined to kernel heap corruption and potential privilege escalation within the same kernel security boundary, not a cross-authority escape such as VM breakout or IOMMU bypass.\nC:H - A double-free of kmalloc-allocated CID bitmap objects corrupts the kernel slab allocator state, which is classically leverageable for arbitrary kernel memory disclosure through heap manipulation primitives.\nI:H - Slab double-free is a standard heap corruption primitive that can be developed into arbitrary kernel writes and control-flow hijacking, not merely a bounded or cosmetic modification.\nA:H - Double-free during driver initialization can cause immediate kernel oops/panic from allocator corruption, and repeated recovery attempts on production QED hardware can produce sustained denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:39:27.598Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"5.10.259"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"5.15.210"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.1.175"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.6.142"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.12.92"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.18.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"7.0.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-64118","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:36:40.630775Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-415","lang":"en","type":"CWE","description":"CWE-415 Double Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:28:13.114Z"}}]}}}