CVE-2026-64472

vfio/mlx5: Fix racy bitfields and tighten struct layout

State
Published
Severity
Not scored
Published
Jul 25, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 61a2f1460fd03285ea34c1a235f2f50f71e13a1f to before 1dd99b8f4e143592e12e5a77e7b538bc698116cbAffected
  • 61a2f1460fd03285ea34c1a235f2f50f71e13a1f to before f1db80a67da928a92ba460ede1be52d8941f46beAffected
  • 61a2f1460fd03285ea34c1a235f2f50f71e13a1f to before 399d806f998f7a25405fc1b97227e579aead24afAffected
  • 61a2f1460fd03285ea34c1a235f2f50f71e13a1f to before 7ed120b1a007bace57c461805519d70e1af44e59Affected
  • 61a2f1460fd03285ea34c1a235f2f50f71e13a1f to before 39d163627b51886492bf31f66cb02c94613d2287Affected
  • 61a2f1460fd03285ea34c1a235f2f50f71e13a1f to before f2365a63b02ddea32e7db78b742c2503ec7b81f1Affected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.