CVE-2024-56787
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-56787 affects the Linux kernel's SoC driver for i.MX8M platforms. The vulnerability was discovered when using driverasyncprobe=* kernel command line parameter on i.MX8M Plus hardware, where the soc-imx8m.c driver calls ofclkgetbyname() which returns -EPROBEDEFER because the clock driver is not yet probed. This issue was not detected during regular testing without driverasync_probe. The vulnerability was disclosed on January 8, 2025 (NVD).

Technical details

The vulnerability stems from improper handling of driver probing sequence in the i.MX8M SoC driver. The issue occurs because the soc-imx8m.c driver attempts to access clock resources before the clock driver is fully initialized when async probing is enabled. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (MEDIUM) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can lead to system instability and potential denial of service on affected i.MX8M Plus systems. The issue manifests as a warning trace in the kernel log, indicating a failure in the SoC driver initialization sequence (Kernel Patch).

Mitigation and workarounds

The issue has been fixed by converting the SoC code to a platform driver and instantiating a platform device in its current deviceinitcall(). The fix also includes reworking the .socrevision callback to always return valid error codes and return SoC revision via parameter. This ensures that if anything in the .socrevision callback returns -EPROBEDEFER, it gets propagated to .probe and the probe will be retried later (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management