CVE-2022-49375Published Feb 26, 2025 · Feb 26Updated Oct 28
rtc: mt6397: check return value after calling platform_get_resource()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fc2979118f3f5193475cb53d5df7bdaa7e358a42 · < 865051de2d9eaa50630e055b73921ceaf3c4a7fc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rtc: mt6397: check return value after calling platform_get_resource()
It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value.
From the CVE record · Linux
The Linux kernel's mt6397 RTC driver did not check whether platform_get_resource() returned NULL. If it does, the driver can dereference a null pointer. The input does not specify how an attacker could cause this condition or whether access or user interaction is required.
Engineers running Linux kernels that include the mt6397 RTC driver should check their versions; affected versions are not specified.