# CVE-2026-139225: net/mlx5: HWS, fix modify header pool match for copy actions

- Severity: not scored yet
- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:46.548Z
- Modified: 2026-11-30T14:18:43.337Z
- Assigned by: Linux

## Description

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

net/mlx5: HWS, fix modify header pool match for copy actions

mlx5_fs_hws_mh_pool_match() compares a single dword of each action
since rules pass their values as arguments. Copy and add_field actions
keep their destination in the second dword and HWS reads them from the
pattern alone. Two modify headers whose copies differ only in
destination then share a pool and the second rule writes to the wrong
field.

Use the HWS core comparison that checks these actions in full.

Found while checking a Sashiko AI review report and confirmed against
the HWS pattern code. Not reproduced. No in-kernel user puts such
actions on the FDB but RDMA flow actions can. Tested for regressions on
ConnectX-7 with firmware 28.48.1000 on a little-endian host.

(As written by CVE List.)

## Affected

- Linux Linux: from b36315ca69cb39c839c98a31cae27b266481b0ac before f8c15a036e714997bb1e77ef7735e47600ee1612; from b36315ca69cb39c839c98a31cae27b266481b0ac before 7debb50be9e5c242121b05ec84ba117722b1ffcc; from b36315ca69cb39c839c98a31cae27b266481b0ac before d425ec9bb9371d52d492ac4d09f0da6e26561684; 6.14 (not affected: before 6.14; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/f8c15a036e714997bb1e77ef7735e47600ee1612>
- <https://git.kernel.org/stable/c/7debb50be9e5c242121b05ec84ba117722b1ffcc>
- <https://git.kernel.org/stable/c/d425ec9bb9371d52d492ac4d09f0da6e26561684>

## Sources

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

---

Page: https://cve.day/CVE-2026-139225 · Whole record: https://cve.day/CVE-2026-139225.json · Rebuilt by cve.day 2026-11-30T14:32:47.203Z
