dpll: fix xa_alloc_cyclic() error handling
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.216.13.96.14In the Linux kernel, the following vulnerability has been resolved:
dpll: fix xa_alloc_cyclic() error handling
In case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will be returned, which will cause IS_ERR() to be false. Which can lead to dereference not allocated pointer (pin).
Fix it by checking if err is lower than zero.
This wasn't found in real usecase, only noticed. Credit to Pierre.
From the CVE record · Linux
The Linux kernel dpll component mishandles an xa_alloc_cyclic() return value of 1, which can lead to dereferencing an unallocated pin pointer. The issue was noticed during review, not in a real use case; the input does not specify attacker access, authentication, or user-interaction requirements.
Teams running the Linux kernel should check their versions; affected versions are not specified in the input.