Vulnerability in PM / devfreq: rk3399_dmc
Summary
GSD-2022-1003576: PM / devfreq: rk3399_dmc: Disable edev on remove(). Affects Kernel versions < 86b091b6894c449d2734de7aa7d79ccb33ffd97d. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The PM / devfreq package is a component of the Linux Kernel that manages the dynamic frequency scaling of devices. It includes the rk3399_dmc module, which is responsible for managing the frequency scaling of the Rockchip RK3399 SoC's Dynamic Memory Controller (DMC). The DMC controls the memory frequency and voltage to optimize performance and power consumption. However, a vulnerability has been discovered in the rk3399_dmc module that can potentially be exploited by attackers.
Vulnerability Detail
The vulnerability in the rk3399_dmc module occurs when the 'remove()' function is called without disabling the 'edev' (event device) associated with the module. This can lead to a use-after-free vulnerability, where the module may still be accessed after it has been freed from memory. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The impact and attack plausibility of this vulnerability have not been proven yet.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, users can manually disable the 'edev' associated with the rk3399_dmc module before removing it. This can be done by executing the following command:
echo 0 > /sys/class/devfreq/rk3399_dmc/edev/enable
This command will disable the 'edev' and prevent the use-after-free vulnerability. However, it is still recommended to update the Kernel to the fixed version as soon as possible.
Conclusion
In conclusion, the PM / devfreq package's rk3399_dmc module has a vulnerability that can be mitigated by updating the Linux Kernel to the fixed version. Additionally, a workaround is available to manually disable the 'edev' associated with the module. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The PM / devfreq package is a component of the Linux Kernel that manages the dynamic frequency scaling of devices.
The rk3399_dmc module is a part of the PM / devfreq package and is responsible for managing the frequency scaling of the Rockchip RK3399 SoC's Dynamic Memory Controller (DMC).
The impact of this vulnerability is not yet proven. However, if exploited, it could allow an attacker to execute arbitrary code or cause a denial-of-service condition.
To fix this vulnerability, update the Linux Kernel to version v5.10.121 or later, which includes the necessary fix for the rk3399_dmc module.
Yes, a workaround is available. Users can manually disable the 'edev' associated with the rk3399_dmc module before removing it.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.