{"id":"CVE-2026-63973","state":"PUBLISHED","title":"net: mana: Add NULL guards in teardown path to prevent panic on attach failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mana: Add NULL guards in teardown path to prevent panic on attach failure\n\nWhen queue allocation fails partway through, the error cleanup frees\nand NULLs apc->tx_qp and apc->rxqs. Multiple teardown paths such as\nmana_remove(), mana_change_mtu() recovery, and internal error handling\nin mana_alloc_queues() can subsequently call into functions that\ndereference these pointers without NULL checks:\n\n- mana_chn_setxdp() dereferences apc->rxqs[0], causing a NULL pointer\n  dereference panic (CR2: 0000000000000000 at mana_chn_setxdp+0x26).\n- mana_destroy_vport() iterates apc->rxqs without a NULL check.\n- mana_fence_rqs() iterates apc->rxqs without a NULL check.\n- mana_dealloc_queues() iterates apc->tx_qp without a NULL check.\n\nAdd NULL guards for apc->rxqs in mana_fence_rqs(),\nmana_destroy_vport(), and before the mana_chn_setxdp() call. Add a\nNULL guard for apc->tx_qp in mana_dealloc_queues() to skip TX queue\ndraining when TX queues were never allocated or already freed.","publishedAt":"2026-07-19T14:55:59.263Z","updatedAt":"2026-07-19T14:55:59.263Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"da7e4a1aaf397af6a094f640c92d6bc7564c10db","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"95e414f8324385771bdfd6d497a01d5593813ccb","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"26a96fa81496afe7d162d172ccdc8cb9dbc685d2","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"da87896f34e0a51489811d1a684e2953099ca98f","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"0a9c520fdcb1cb2e79c163c12d359b5e1ee40007","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"17bfe0a8c014ee1d542ad352cd6a0a505361664a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microsoft/mana/mana_en.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"6.1.176","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.143","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.93","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.35","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.12","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/microsoft/mana/mana_en.c"]}],"references":["https://git.kernel.org/stable/c/da7e4a1aaf397af6a094f640c92d6bc7564c10db","https://git.kernel.org/stable/c/95e414f8324385771bdfd6d497a01d5593813ccb","https://git.kernel.org/stable/c/26a96fa81496afe7d162d172ccdc8cb9dbc685d2","https://git.kernel.org/stable/c/da87896f34e0a51489811d1a684e2953099ca98f","https://git.kernel.org/stable/c/0a9c520fdcb1cb2e79c163c12d359b5e1ee40007","https://git.kernel.org/stable/c/17bfe0a8c014ee1d542ad352cd6a0a505361664a"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/63xxx/CVE-2026-63973.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-63973","state":"PUBLISHED","datePublished":"2026-07-19T14:55:59.263Z","dateUpdated":"2026-07-19T14:55:59.263Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.024Z"},"containers":{"cna":{"title":"net: mana: Add NULL guards in teardown path to prevent panic on attach failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mana: Add NULL guards in teardown path to prevent panic on attach failure\n\nWhen queue allocation fails partway through, the error cleanup frees\nand NULLs apc->tx_qp and apc->rxqs. Multiple teardown paths such as\nmana_remove(), mana_change_mtu() recovery, and internal error handling\nin mana_alloc_queues() can subsequently call into functions that\ndereference these pointers without NULL checks:\n\n- mana_chn_setxdp() dereferences apc->rxqs[0], causing a NULL pointer\n  dereference panic (CR2: 0000000000000000 at mana_chn_setxdp+0x26).\n- mana_destroy_vport() iterates apc->rxqs without a NULL check.\n- mana_fence_rqs() iterates apc->rxqs without a NULL check.\n- mana_dealloc_queues() iterates apc->tx_qp without a NULL check.\n\nAdd NULL guards for apc->rxqs in mana_fence_rqs(),\nmana_destroy_vport(), and before the mana_chn_setxdp() call. Add a\nNULL guard for apc->tx_qp in mana_dealloc_queues() to skip TX queue\ndraining when TX queues were never allocated or already freed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"da7e4a1aaf397af6a094f640c92d6bc7564c10db","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"95e414f8324385771bdfd6d497a01d5593813ccb","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"26a96fa81496afe7d162d172ccdc8cb9dbc685d2","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"da87896f34e0a51489811d1a684e2953099ca98f","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"0a9c520fdcb1cb2e79c163c12d359b5e1ee40007","versionType":"git"},{"version":"ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f","status":"affected","lessThan":"17bfe0a8c014ee1d542ad352cd6a0a505361664a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microsoft/mana/mana_en.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"6.1.176","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.143","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.93","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.35","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.12","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/microsoft/mana/mana_en.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/da7e4a1aaf397af6a094f640c92d6bc7564c10db"},{"url":"https://git.kernel.org/stable/c/95e414f8324385771bdfd6d497a01d5593813ccb"},{"url":"https://git.kernel.org/stable/c/26a96fa81496afe7d162d172ccdc8cb9dbc685d2"},{"url":"https://git.kernel.org/stable/c/da87896f34e0a51489811d1a684e2953099ca98f"},{"url":"https://git.kernel.org/stable/c/0a9c520fdcb1cb2e79c163c12d359b5e1ee40007"},{"url":"https://git.kernel.org/stable/c/17bfe0a8c014ee1d542ad352cd6a0a505361664a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-07-19T14:55:59.263Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.1.176"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.6.143"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.12.93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.18.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.0.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}