{"id":"CVE-2026-72032","state":"PUBLISHED","title":"net/mlx5: HWS, fix matcher leak on resize target setup failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, fix matcher leak on resize target setup failure\n\nhws_bwc_matcher_move() allocates a replacement matcher before setting it\nas the resize target. If mlx5hws_matcher_resize_set_target() fails, the\nreplacement matcher is not attached anywhere and is leaked.\n\nFix the leak by destroying the replacement matcher before returning from\nthe resize-target failure path.\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.1.\n\nAn x86_64 allyesconfig build showed no new warnings. As we do not have a\nmlx5 HWS-capable device to test with, no runtime testing was able to be\nperformed.","publishedAt":"2026-08-15T05:51:54.461Z","updatedAt":"2026-08-17T05:06:57.395Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"a751ccdc6ea9bde154f25a5ba66926f462f96c19","versionType":"git"},{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a","versionType":"git"},{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"ae0265f0a95aaacef59d560a3e1ea36db8be9a52","versionType":"git"},{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"bb09d0e64ecaa0aa0f7d1133a1696ed74dead295","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/mellanox/mlx5/core/steering/hws/bwc.c"]}],"references":["https://git.kernel.org/stable/c/a751ccdc6ea9bde154f25a5ba66926f462f96c19","https://git.kernel.org/stable/c/1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a","https://git.kernel.org/stable/c/ae0265f0a95aaacef59d560a3e1ea36db8be9a52","https://git.kernel.org/stable/c/bb09d0e64ecaa0aa0f7d1133a1696ed74dead295"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72032.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72032","state":"PUBLISHED","datePublished":"2026-08-15T05:51:54.461Z","dateUpdated":"2026-08-17T05:06:57.395Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.901Z"},"containers":{"cna":{"title":"net/mlx5: HWS, fix matcher leak on resize target setup failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, fix matcher leak on resize target setup failure\n\nhws_bwc_matcher_move() allocates a replacement matcher before setting it\nas the resize target. If mlx5hws_matcher_resize_set_target() fails, the\nreplacement matcher is not attached anywhere and is leaked.\n\nFix the leak by destroying the replacement matcher before returning from\nthe resize-target failure path.\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.1.\n\nAn x86_64 allyesconfig build showed no new warnings. As we do not have a\nmlx5 HWS-capable device to test with, no runtime testing was able to be\nperformed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"a751ccdc6ea9bde154f25a5ba66926f462f96c19","versionType":"git"},{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a","versionType":"git"},{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"ae0265f0a95aaacef59d560a3e1ea36db8be9a52","versionType":"git"},{"version":"2111bb970c787b16b002dc726c1d296ce87a00fb","status":"affected","lessThan":"bb09d0e64ecaa0aa0f7d1133a1696ed74dead295","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/mellanox/mlx5/core/steering/hws/bwc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a751ccdc6ea9bde154f25a5ba66926f462f96c19"},{"url":"https://git.kernel.org/stable/c/1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a"},{"url":"https://git.kernel.org/stable/c/ae0265f0a95aaacef59d560a3e1ea36db8be9a52"},{"url":"https://git.kernel.org/stable/c/bb09d0e64ecaa0aa0f7d1133a1696ed74dead295"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:06:57.395Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.101"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}