CVE-2026-143220: net/mlx5: Use only loaded devices for PTP clock operations

Published Dec 3, 2026
·
Updated

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

9 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.4.46<5.5
5.5
linux/kernel>=5.6.18<5.7
5.7
linux/kernel>=5.7.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1, <=6.12.118-1, <=7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.5
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.7
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using the mlx5 PTP clock are relevant when its backing PCI function can be suspended or unloaded while the PTP clock remains registered. The affected paths are PTP callbacks and the periodic PTP worker, which may otherwise access PCI registers after the function is unavailable.

2

What operational behavior should be expected after the fix?

PTP clock callbacks return -EAGAIN when no loaded PCI function is available to service them. The periodic worker is stopped during unload and restarted with the device; PHC time continuity across unload and reload is best effort, with free-running mode estimating elapsed time using CLOCK_BOOTTIME.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203