AZL-118370: CVE-2026-143220 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: Use only loaded devices for PTP clock operations
The PTP periodic worker and PTP operations access PCI registers through the function backing the PTP clock. The PTP clock remains registered when a PCI function is suspended, so these paths can still access the function after it has been unloaded.
To fix that, serialize clock hardware access with the clock mutex for all clocks and fail callbacks with -EAGAIN when there is no loaded function to service the clock. Additionally, tie the worker's lifetime to load/unload and use the devcom lock to synchronize with peer loads/unloads.
Since the periodic worker is stopped during unload, the free running counter may wrap without being sampled. Reinitialize the timecounter on load using the hardware real time clock in real time mode, or the saved PHC time plus elapsed CLOCKBOOTTIME in free running mode.
This provides best effort PHC continuity across unload/load. In free running mode, elapsed time while unloaded is estimated using CLOCKBOOTTIME rather than the PHC's adjusted frequency.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the affected Azure Linux kernel package and Mellanox mlx5 hardware with PTP clock functionality are relevant. The issue concerns PTP clock operations while the associated PCI function is suspended or unloaded.
What condition triggers the vulnerable behavior?
PTP periodic-worker or other PTP clock callbacks must run after the PCI function backing the clock has been unloaded. Those paths can then attempt PCI register access even though no loaded function is available to service the clock.
How can I tell whether the system is encountering this condition?
The described condition involves PTP clock activity concurrent with PCI-function suspend, unload, or peer load/unload events on mlx5 devices. The fixed behavior causes clock callbacks to fail with -EAGAIN when there is no loaded function, rather than accessing unloaded hardware.
What operational limitation remains after the fix?
PTP hardware-clock continuity across unload and reload is best effort. In free-running mode, time elapsed while unloaded is estimated using CLOCK_BOOTTIME rather than the PTP hardware clock's adjusted frequency.