dpll: Prevent duplicate registrations
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.686.18.86.19In the Linux kernel, the following vulnerability has been resolved:
dpll: Prevent duplicate registrations
Modify the internal registration helpers dpll_xa_ref_{dpll,pin}_add() to reject duplicate registration attempts.
Previously, if a caller attempted to register the same pin multiple times (with the same ops, priv, and cookie) on the same device, the core silently increments the reference count and return success. This behavior is incorrect because if the caller makes these duplicate registrations then for the first one dpll_pin_registration is allocated and for others the associated dpll_pin_ref.refcount is incremented. During the first unregistration the associated dpll_pin_registration is freed and for others WARN is fired.
Fix this by updating the logic to return `-EEXIST` if a matching registration is found to enforce a strict "register once" policy.
From the CVE record · Linux
The Linux kernel dpll registration helpers accepted duplicate registrations of the same pin on one device. When a caller made duplicate registrations with the same ops, priv, and cookie, later unregistration could trigger a warning. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified.