Vulnerability in Kernel package: rtc: mt6397

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1003726: rtc: mt6397: check return value after calling platform_get_resource(). Affects Kernel versions >= fc2979118f3f5193475cb53d5df7bdaa7e358a42, < d77f28c1bc9d3043a52069fe42e4a26fbf961ebd. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel package is a critical component of the Linux operating system, responsible for managing the core functionalities and interactions between hardware and software. It provides essential services, including device drivers, memory management, and process scheduling. The rtc: mt6397 module within the Kernel package is specifically responsible for handling real-time clock (RTC) functionality on devices utilizing the MediaTek MT6397 chipset. RTCs are crucial for maintaining accurate timekeeping, often used in systems that require precise timing or event scheduling. However, a vulnerability has been identified in the rtc: mt6397 module that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in the rtc: mt6397 module arises from a failure to check the return value after calling platform_get_resource(). This oversight could lead to various security issues, including potential memory corruption or privilege escalation attacks. An attacker could potentially exploit this vulnerability to execute arbitrary code, gain elevated privileges, or cause a denial of service. The impact and attack plausibility of this vulnerability have not been proven yet, but it is essential to address it to ensure the security and stability of systems utilizing the Kernel package.

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, developers can manually implement the necessary checks after calling platform_get_resource(). Here is an example of how the code can be modified:

// Original code
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);

// Modified code
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!resource) {
    // Handle the error or return an appropriate value
}

Conclusion

The vulnerability in the rtc: mt6397 module of the Kernel package poses potential security risks, including memory corruption and privilege escalation. It is crucial to update the package to the latest version, v5.4.198 or later, to mitigate these risks. Regularly updating the Kernel package is essential for maintaining the security and stability of systems. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel package is a critical component of the Linux operating system, responsible for managing core functionalities and interactions between hardware and software.

The rtc: mt6397 module is a part of the Kernel package and is specifically responsible for handling real-time clock (RTC) functionality on devices utilizing the MediaTek MT6397 chipset.

platform_get_resource() is a function provided by the Kernel package that retrieves platform-specific resource information, such as memory regions or I/O ports, for a given device.

The vulnerability could potentially be exploited by attackers to execute arbitrary code, gain elevated privileges, or cause a denial of service. However, the actual impact and attack plausibility have not been proven yet.

To fix this vulnerability, it is recommended to update the Linux Kernel package to version v5.4.198 or later, which includes the necessary fix for this issue.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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