{"id":"CVE-2026-139225","state":"PUBLISHED","title":"net/mlx5: HWS, fix modify header pool match for copy actions","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, fix modify header pool match for copy actions\n\nmlx5_fs_hws_mh_pool_match() compares a single dword of each action\nsince rules pass their values as arguments. Copy and add_field actions\nkeep their destination in the second dword and HWS reads them from the\npattern alone. Two modify headers whose copies differ only in\ndestination then share a pool and the second rule writes to the wrong\nfield.\n\nUse the HWS core comparison that checks these actions in full.\n\nFound while checking a Sashiko AI review report and confirmed against\nthe HWS pattern code. Not reproduced. No in-kernel user puts such\nactions on the FDB but RDMA flow actions can. Tested for regressions on\nConnectX-7 with firmware 28.48.1000 on a little-endian host.","publishedAt":"2026-11-30T13:32:46.548Z","updatedAt":"2026-11-30T13:32:46.548Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b36315ca69cb39c839c98a31cae27b266481b0ac","status":"affected","lessThan":"f8c15a036e714997bb1e77ef7735e47600ee1612","versionType":"git"},{"version":"b36315ca69cb39c839c98a31cae27b266481b0ac","status":"affected","lessThan":"7debb50be9e5c242121b05ec84ba117722b1ffcc","versionType":"git"},{"version":"b36315ca69cb39c839c98a31cae27b266481b0ac","status":"affected","lessThan":"d425ec9bb9371d52d492ac4d09f0da6e26561684","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/fs_hws_pools.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.h"]}],"references":["https://git.kernel.org/stable/c/f8c15a036e714997bb1e77ef7735e47600ee1612","https://git.kernel.org/stable/c/7debb50be9e5c242121b05ec84ba117722b1ffcc","https://git.kernel.org/stable/c/d425ec9bb9371d52d492ac4d09f0da6e26561684"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139225.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139225","state":"PUBLISHED","datePublished":"2026-11-30T13:32:46.548Z","dateUpdated":"2026-11-30T13:32:46.548Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.921Z"},"containers":{"cna":{"title":"net/mlx5: HWS, fix modify header pool match for copy actions","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, fix modify header pool match for copy actions\n\nmlx5_fs_hws_mh_pool_match() compares a single dword of each action\nsince rules pass their values as arguments. Copy and add_field actions\nkeep their destination in the second dword and HWS reads them from the\npattern alone. Two modify headers whose copies differ only in\ndestination then share a pool and the second rule writes to the wrong\nfield.\n\nUse the HWS core comparison that checks these actions in full.\n\nFound while checking a Sashiko AI review report and confirmed against\nthe HWS pattern code. Not reproduced. No in-kernel user puts such\nactions on the FDB but RDMA flow actions can. Tested for regressions on\nConnectX-7 with firmware 28.48.1000 on a little-endian host."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b36315ca69cb39c839c98a31cae27b266481b0ac","status":"affected","lessThan":"f8c15a036e714997bb1e77ef7735e47600ee1612","versionType":"git"},{"version":"b36315ca69cb39c839c98a31cae27b266481b0ac","status":"affected","lessThan":"7debb50be9e5c242121b05ec84ba117722b1ffcc","versionType":"git"},{"version":"b36315ca69cb39c839c98a31cae27b266481b0ac","status":"affected","lessThan":"d425ec9bb9371d52d492ac4d09f0da6e26561684","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/fs_hws_pools.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.c","drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/f8c15a036e714997bb1e77ef7735e47600ee1612"},{"url":"https://git.kernel.org/stable/c/7debb50be9e5c242121b05ec84ba117722b1ffcc"},{"url":"https://git.kernel.org/stable/c/d425ec9bb9371d52d492ac4d09f0da6e26561684"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:46.548Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}