Null Pointer Dereference in sh_pfc_map_resources() in pinctrl: renesas: core
Summary
GSD-2022-1003579: pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources(). Affects Kernel versions >= c7977ec4a33633c8e8d9267dd014356cf857351c, < f991879762392c19661af5b722578089a12b305f. 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 pinctrl: renesas: core package is a component of the Linux Kernel that provides support for configuring pin control and GPIO functionality on Renesas SoCs. It is responsible for mapping and managing the hardware resources associated with pin control. This vulnerability affects versions of the Linux Kernel from v4.3 to v5.10.121.
Vulnerability Detail
The vulnerability exists in the sh_pfc_map_resources() function within the pinctrl: renesas: core package. It is caused by a possible null pointer dereference, which occurs when the function is called with a null pointer as an argument. An attacker could potentially exploit this vulnerability to cause a denial-of-service condition or execute arbitrary code with kernel privileges. The vulnerability was introduced in version v4.3 and has been fixed in version v5.10.121 of the Linux Kernel.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.121 or later. This can be done by downloading the latest stable release from the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and following the installation instructions provided. Alternatively, users can apply the specific commit (f991879762392c19661af5b722578089a12b305f) that fixes the vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel.
Conclusion
The null pointer dereference vulnerability in sh_pfc_map_resources() in pinctrl: renesas: core can be fixed by updating the Linux Kernel to version v5.10.121 or later. It is important to promptly apply the fix to mitigate the risk of a denial-of-service condition or arbitrary code execution. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
Pinctrl: renesas: core is a component of the Linux Kernel that provides support for configuring pin control and GPIO functionality on Renesas SoCs.
A null pointer dereference occurs when a program attempts to access or manipulate memory using a null pointer, resulting in a crash or unexpected behavior.
This vulnerability could lead to a denial-of-service condition or allow an attacker to execute arbitrary code with kernel privileges.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will provide real-time alerts for open-source vulnerabilities.
You can find more information about this vulnerability in the GSD-2022-1003579.json file available on the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003579.json).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.