CVE Database›Document archive›CVE-2024-57983

CVE-2024-57983

kernel: mailbox: th1520: Fix memory corruption due to incorrect array size

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · February 27, 2025

Updated · October 30, 2026

Description

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

mailbox: th1520: Fix memory corruption due to incorrect array size

The functions th1520_mbox_suspend_noirq and th1520_mbox_resume_noirq are intended to save and restore the interrupt mask registers in the MBOX ICU0. However, the array used to store these registers was incorrectly sized, leading to memory corruption when accessing all four registers.

This commit corrects the array size to accommodate all four interrupt mask registers, preventing memory corruption during suspend and resume operations.

Statement

Moderate severity is assigned to this flaw because it involves out-of-bounds kernel memory corruption during system suspend and resume transitions, requiring local interaction with power-management states. The issue is restricted to the driver for the T-Head TH1520 RISC-V system-on-chip mailbox controller, which is not supported or enabled in Red Hat Enterprise Linux kernel builds. Consequently, Red Hat enterprise products are not affected.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-787 · Out-of-bounds Write