AZL-118691: CVE-2026-143374 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ptp: unwind partially completed virtual clock creation
nvclocksstore() publishes the new clock count only after every child has been registered. If a later registration fails, it returns without unregistering the children already created by that request. Those clocks are left out of nvclocks, and a subsequent request can overwrite their index entries without removing them.
Unregister the newly created children in reverse order and clear their index entries on failure. Leave the previously installed clocks and their count unchanged. The nvclocks mutex serializes this rollback with other sysfs changes, and parent removal drains the store before walking the children.
This was found by code inspection while adding initial PHC sample error handling to virtual clock registration.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
On virtual clock registration failure, unregister the children created by that request in reverse order, clear their index entries, and leave the previously published clock count unchanged.
Event History
Frequently Asked Questions
What sequence of events is needed to reach the flawed state?
A request to create virtual clocks must register at least one child successfully, then encounter a failure while registering a later child. The failed request then returns without unregistering the children it already created.
What happens after a partially failed virtual-clock creation request?
The already-created clocks are not reflected in n_vclocks. A later request can overwrite their index entries without first removing those clocks.
What behavior does the resolved code introduce?
On registration failure, it unregisters newly created children in reverse order and clears their index entries. Previously installed clocks and their published count remain unchanged.