AZL-118694: CVE-2026-143375 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ptp: drain virtual clock sysfs operations before unregistering children
Parent clock removal walks its virtual clocks before removing the nvclocks sysfs attribute. The mutex taken by ptpvclockinuse() is released before that walk, so a concurrent sysfs deletion can pick the same child and unregister and free its ptpvclock a second time. A reference held by the device iterator does not protect that separately allocated virtual clock.
Remove nvclocks before walking the children. Removing the attribute prevents new stores and drains stores already running, without holding nvclocksmux across a callback that needs that mutex. Skip virtual clocks, which do not have this attribute.
This race was found by code inspection of virtual-clock registration failure cleanup and parent removal.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The race requires concurrent sysfs activity involving a PTP virtual clock while its parent clock is being removed or during virtual-clock registration failure cleanup. The concurrent sysfs deletion can select a child that the parent-removal path is also processing, leading to a second unregister and free of the same virtual-clock object.
Which systems are exposed?
Systems using the affected Azure Linux kernel package and PTP virtual clocks are relevant. The issue is specifically in virtual-clock handling; virtual clocks are distinct from parent clocks and do not have the n_vclocks sysfs attribute themselves.
What is the consequence of successful exploitation?
A concurrent sysfs deletion can cause the same ptp_vclock object to be unregistered and freed twice. The description identifies this as a race condition involving object lifetime during child removal.
What code change resolves the race?
The fix removes the parent clock's n_vclocks sysfs attribute before walking and removing virtual-clock children. Removing the attribute blocks new store operations and waits for already-running stores to drain before child cleanup begins.