{"id":"CVE-2026-143220","state":"PUBLISHED","title":"net/mlx5: Use only loaded devices for PTP clock operations","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Use only loaded devices for PTP clock operations\n\nThe PTP periodic worker and PTP operations access PCI registers through\nthe function backing the PTP clock. The PTP clock remains registered\nwhen a PCI function is suspended, so these paths can still access the\nfunction after it has been unloaded.\n\nTo fix that, serialize clock hardware access with the clock mutex for\nall clocks and fail callbacks with -EAGAIN when there is no loaded\nfunction to service the clock. Additionally, tie the worker's lifetime\nto load/unload and use the devcom lock to synchronize with peer\nloads/unloads.\n\nSince the periodic worker is stopped during unload, the free running\ncounter may wrap without being sampled. Reinitialize the timecounter\non load using the hardware real time clock in real time mode, or the\nsaved PHC time plus elapsed CLOCK_BOOTTIME in free running mode.\n\nThis provides best effort PHC continuity across unload/load. In free\nrunning mode, elapsed time while unloaded is estimated using\nCLOCK_BOOTTIME rather than the PHC's adjusted frequency.","publishedAt":"2026-12-03T09:20:38.476Z","updatedAt":"2026-12-03T09:20:38.476Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8fc3e29be9248048f449793502c15af329f35c6e","status":"affected","lessThan":"64060642d78f239b6231c3d5be85059d6c1695cf","versionType":"git"},{"version":"8fc3e29be9248048f449793502c15af329f35c6e","status":"affected","lessThan":"6f92d58bd65564a83c87721eb2873234eb49ad17","versionType":"git"},{"version":"8fc3e29be9248048f449793502c15af329f35c6e","status":"affected","lessThan":"908561cc4b4db4510465f02f5323e98f2dc00fad","versionType":"git"},{"version":"fb915f061e9eae214d9bae4d0d7f6d254ab79728","status":"affected","versionType":"git"},{"version":"01212948daab4616e409d2e70fc961340cc9378e","status":"affected","versionType":"git"},{"version":"5.4.46","status":"affected","lessThan":"5.5","versionType":"semver"},{"version":"5.6.18","status":"affected","lessThan":"5.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c","drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c","drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h"]}],"references":["https://git.kernel.org/stable/c/64060642d78f239b6231c3d5be85059d6c1695cf","https://git.kernel.org/stable/c/6f92d58bd65564a83c87721eb2873234eb49ad17","https://git.kernel.org/stable/c/908561cc4b4db4510465f02f5323e98f2dc00fad"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143220.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143220","state":"PUBLISHED","datePublished":"2026-12-03T09:20:38.476Z","dateUpdated":"2026-12-03T09:20:38.476Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.360Z"},"containers":{"cna":{"title":"net/mlx5: Use only loaded devices for PTP clock operations","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Use only loaded devices for PTP clock operations\n\nThe PTP periodic worker and PTP operations access PCI registers through\nthe function backing the PTP clock. The PTP clock remains registered\nwhen a PCI function is suspended, so these paths can still access the\nfunction after it has been unloaded.\n\nTo fix that, serialize clock hardware access with the clock mutex for\nall clocks and fail callbacks with -EAGAIN when there is no loaded\nfunction to service the clock. Additionally, tie the worker's lifetime\nto load/unload and use the devcom lock to synchronize with peer\nloads/unloads.\n\nSince the periodic worker is stopped during unload, the free running\ncounter may wrap without being sampled. Reinitialize the timecounter\non load using the hardware real time clock in real time mode, or the\nsaved PHC time plus elapsed CLOCK_BOOTTIME in free running mode.\n\nThis provides best effort PHC continuity across unload/load. In free\nrunning mode, elapsed time while unloaded is estimated using\nCLOCK_BOOTTIME rather than the PHC's adjusted frequency."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8fc3e29be9248048f449793502c15af329f35c6e","status":"affected","lessThan":"64060642d78f239b6231c3d5be85059d6c1695cf","versionType":"git"},{"version":"8fc3e29be9248048f449793502c15af329f35c6e","status":"affected","lessThan":"6f92d58bd65564a83c87721eb2873234eb49ad17","versionType":"git"},{"version":"8fc3e29be9248048f449793502c15af329f35c6e","status":"affected","lessThan":"908561cc4b4db4510465f02f5323e98f2dc00fad","versionType":"git"},{"version":"fb915f061e9eae214d9bae4d0d7f6d254ab79728","status":"affected","versionType":"git"},{"version":"01212948daab4616e409d2e70fc961340cc9378e","status":"affected","versionType":"git"},{"version":"5.4.46","status":"affected","lessThan":"5.5","versionType":"semver"},{"version":"5.6.18","status":"affected","lessThan":"5.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c","drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c","drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/64060642d78f239b6231c3d5be85059d6c1695cf"},{"url":"https://git.kernel.org/stable/c/6f92d58bd65564a83c87721eb2873234eb49ad17"},{"url":"https://git.kernel.org/stable/c/908561cc4b4db4510465f02f5323e98f2dc00fad"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:38.476Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}