CVE-2024-52557 in Linuxinfo

Summary

by MITRE • 02/27/2025

In the Linux kernel, the following vulnerability has been resolved:

drm: zynqmp_dp: Fix integer overflow in zynqmp_dp_rate_get()

This patch fixes a potential integer overflow in the zynqmp_dp_rate_get()

The issue comes up when the expression drm_dp_bw_code_to_link_rate(dp->test.bw_code) * 10000 is evaluated using 32-bit Now the constant is a compatible 64-bit type.

Resolves coverity issues: CID 1636340 and CID 1635811

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 05/24/2026

The vulnerability CVE-2024-52557 addresses an integer overflow condition within the Linux kernel's display subsystem, specifically affecting the ZynqMP DisplayPort driver. This issue resides in the drm_zynqmp_dp_rate_get() function which handles DisplayPort link rate calculations for Xilinx ZynqMP SoC platforms. The flaw manifests when processing display bandwidth codes during DisplayPort link training procedures, creating a potential pathway for arbitrary code execution or system instability. The vulnerability impacts systems utilizing the ZynqMP family of devices where DisplayPort functionality is implemented through the kernel's DRM (Direct Rendering Manager) subsystem.

The technical root cause involves a 32-bit integer overflow occurring during arithmetic operations within the DisplayPort link rate calculation logic. When the expression drm_dp_bw_code_to_link_rate(dp->test.bw_code) * 10000 is evaluated, the intermediate calculation exceeds the maximum value that can be represented by a 32-bit signed integer, causing the result to wrap around to a negative value or incorrect positive value. This overflow condition stems from the multiplication of a bandwidth code value with a constant multiplier, where the combined result surpasses the 32-bit integer limits. The fix implements a type conversion to ensure the constant 10000 is treated as a 64-bit value during computation, preventing the overflow condition. This remediation follows established security practices for preventing integer overflows as classified under CWE-190, which specifically addresses integer overflow and underflow conditions.

The operational impact of this vulnerability extends beyond simple calculation errors, potentially enabling attackers to manipulate DisplayPort link parameters in ways that could compromise system stability or create opportunities for privilege escalation. Systems utilizing Xilinx ZynqMP SoCs with DisplayPort capabilities are particularly at risk, as the vulnerability affects the kernel's display subsystem during normal operation. The potential consequences include display corruption, system crashes, or in worst-case scenarios, unauthorized access to system resources. Attackers could exploit this condition by manipulating display bandwidth parameters during link training, potentially leading to denial of service or more severe security implications depending on the system configuration. The vulnerability represents a medium to high severity risk within the kernel's graphics subsystem, particularly in embedded systems where DisplayPort functionality is critical.

Mitigation strategies for this vulnerability involve applying the kernel patch that implements the 64-bit type conversion for the constant multiplier. System administrators should prioritize updating to kernel versions containing this fix, particularly in production environments where ZynqMP SoC devices operate with DisplayPort interfaces. The fix aligns with industry best practices for integer overflow prevention and follows the ATT&CK framework's mitigation recommendations for kernel-level vulnerabilities. Organizations should also implement monitoring for abnormal display behavior or system crashes that might indicate exploitation attempts. Additionally, the resolution addresses specific Coverity static analysis issues (CID 1636340 and CID 1635811) which demonstrates the vulnerability was identified through automated security analysis tools, emphasizing the importance of comprehensive code review processes. Regular kernel updates and vulnerability assessments remain essential for maintaining system security posture against similar integer overflow conditions that could affect other kernel subsystems.

Responsible

Linux

Reservation

02/27/2025

Disclosure

02/27/2025

Moderation

accepted

CPE

ready

EPSS

0.00182

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!