Null Pointer Dereference in sh_pfc_map_resources() in pinctrl: renesas: core

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003048: pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources(). Affects Kernel versions >= c7977ec4a33633c8e8d9267dd014356cf857351c, < e3a1ad8fd0ac11f4fa1260c23b5db71a25473254. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The pinctrl: renesas: core package is a component of the Linux Kernel that provides support for pin control on Renesas platforms. It allows users to configure and manage the multiplexing of pins on these platforms. The sh_pfc_map_resources() function within this package is responsible for mapping pin resources. However, a vulnerability has been identified in this function that could lead to a null pointer dereference.

Vulnerability Detail

The vulnerability in sh_pfc_map_resources() arises from the possibility of a null pointer dereference. If a null pointer is passed as an argument to this function, it can result in a crash or system instability. An attacker may be able to exploit this vulnerability to cause a denial-of-service (DoS) condition or potentially execute arbitrary code with kernel privileges. The vulnerability was introduced in version v4.3 of the Linux Kernel and has been fixed in version v5.17.14.

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 avoid passing a null pointer as an argument to the sh_pfc_map_resources() function. This can be achieved by validating the input before calling the function and ensuring a valid pointer is provided. Here is an example of how this can be done in C:

if (ptr != NULL) {
  sh_pfc_map_resources(ptr);
}

Conclusion

The null pointer dereference vulnerability in sh_pfc_map_resources() within the pinctrl: renesas: core package of the Linux Kernel can lead to system crashes, instability, and potential privilege escalation. It is crucial to update the Linux Kernel to version v5.17.14 or later to mitigate this vulnerability. Additionally, validating input and avoiding null pointers as arguments can serve as a temporary workaround. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a crash or system instability, potentially resulting in a denial-of-service (DoS) condition. In some cases, an attacker may be able to exploit this vulnerability to execute arbitrary code with kernel privileges.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, a patch for this vulnerability has been released in version v5.17.14 of the Linux Kernel. It is recommended to update to this version or a later one to mitigate the risk.

Yes, you can avoid passing a null pointer as an argument to the sh_pfc_map_resources() function. By validating the input and ensuring a valid pointer is provided, you can mitigate the risk of this vulnerability.

You can find more information about this vulnerability in the GSD-2022-1003048 entry of the GSD Database maintained by the Cloud Security Alliance. The link to the entry is available in the vulnerability details section.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback