# CVE-2026-64472: vfio/mlx5: Fix racy bitfields and tighten struct layout

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.16%, higher than 3% of CVEs (2026-11-30)
- Published: 2026-07-25T08:51:35.978Z
- Modified: 2026-11-12T18:03:10.340Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

vfio/mlx5: Fix racy bitfields and tighten struct layout

Bitfield operations are not atomic, they use a read-modify-write
pattern, therefore we should be careful not to pack bitfields that
can be concurrently updated into the same storage unit.

This split takes a binary approach: flags that are only modified
pre/post open/close remain bitfields, flags modified from user
action, including actions that reach across to another device (ex.
reset) use dedicated storage units.

Note mlx5_vhca_page_tracker.status is relocated to fill the alignment
hole this split exposes.

Bitfield justifications:

  migrate_cap: written only in mlx5vf_cmd_set_migratable() at probe
  chunk_mode: written only in mlx5vf_cmd_set_migratable() at probe
  mig_state_cap: written only in mlx5vf_cmd_set_migratable() at probe

Dedicated storage units:

  mdev_detach: written in the VF attach/detach event notifier
               mlx5fv_vf_event() at runtime
  log_active: written in mlx5vf_start_page_tracker()/
              mlx5vf_stop_page_tracker() during runtime dirty tracking
  deferred_reset: written in mlx5vf_state_mutex_unlock()/
                  mlx5vf_pci_aer_reset_done() during runtime reset handling
  is_err: set by tracker error handling and dirty-log polling at runtime
  object_changed: set by tracker event handling and cleared by dirty-log
                  polling at runtime

(As written by CVE List.)

## Affected

- Linux Linux: from 61a2f1460fd03285ea34c1a235f2f50f71e13a1f before 1dd99b8f4e143592e12e5a77e7b538bc698116cb; from 61a2f1460fd03285ea34c1a235f2f50f71e13a1f before f1db80a67da928a92ba460ede1be52d8941f46be; from 61a2f1460fd03285ea34c1a235f2f50f71e13a1f before 399d806f998f7a25405fc1b97227e579aead24af; from 61a2f1460fd03285ea34c1a235f2f50f71e13a1f before 7ed120b1a007bace57c461805519d70e1af44e59; from 61a2f1460fd03285ea34c1a235f2f50f71e13a1f before 39d163627b51886492bf31f66cb02c94613d2287; from 61a2f1460fd03285ea34c1a235f2f50f71e13a1f before f2365a63b02ddea32e7db78b742c2503ec7b81f1; 5.19 (not affected: before 5.19; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 5.19 before 6.1.178; from 6.2 before 6.6.145; from 6.7 before 6.12.97; from 6.13 before 6.18.40; from 6.19 before 7.1.4; 7.2

## References

- <https://git.kernel.org/stable/c/1dd99b8f4e143592e12e5a77e7b538bc698116cb> (patch)
- <https://git.kernel.org/stable/c/f1db80a67da928a92ba460ede1be52d8941f46be> (patch)
- <https://git.kernel.org/stable/c/399d806f998f7a25405fc1b97227e579aead24af> (patch)
- <https://git.kernel.org/stable/c/7ed120b1a007bace57c461805519d70e1af44e59> (patch)
- <https://git.kernel.org/stable/c/39d163627b51886492bf31f66cb02c94613d2287> (patch)
- <https://git.kernel.org/stable/c/f2365a63b02ddea32e7db78b742c2503ec7b81f1> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-64472 · Whole record: https://cve.day/CVE-2026-64472.json · Rebuilt by cve.day 2026-11-25T22:59:30.137Z
