CVE-2024-57983
published high CVSS 3.1 · 7.8mailbox: th1520: Fix memory corruption due to incorrect array size
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5d4d263e1c6b6b18acb4d67fd3b9af71b7404924 to < 2cd12c7fba59f30369e8647a2b726c7280903304 · 5d4d263e1c6b6b18acb4d67fd3b9af71b7404924 to < db049866943a38bf46a34fa120d526663339d7a5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.13.2 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is a platform-driver system-sleep PM callback reached only through a local system suspend/hibernate transition; there is no network- or adjacent-network-facing path to it. AC:L - The overflow is unconditional — every suspend writes 4 bytes past the 12-byte allocation and every resume reads 4 bytes past it, with no race, timing window, or memory-layout condition outside the attacker's control, and it can be re-triggered on demand by repeating suspend cycles. PR:L - An unprivileged local user with an active session can initiate system suspend via logind/polkit (`org.freedesktop.login1.suspend` defaults to allow_active), and on autosleep-style embedded/Android deployments the cycle occurs with no privilege at all; real root in the init namespace is not required. UI:N - The attacker triggers the suspend/resume cycle themselves and the corruption occurs automatically in the PM callback; no action by any other user is needed. S:U - The out-of-bounds access corrupts kernel slab memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The resume path performs an out-of-bounds read of adjacent kernel heap memory, and the heap corruption from the paired OOB write is the class of defect that can be leveraged into a read primitive; per kernel scoring guidance heap memory corruption is treated as High confidentiality impact. I:H - This is an out-of-bounds heap write past a `devm_kzalloc` buffer, and out-of-bounds writes are scored High integrity because adjacent slab state can be modified and leveraged toward control-flow corruption. A:H - The slab out-of-bounds access oopses on KASAN/hardened kernels (panic with `panic_on_warn`) and heap corruption during the noirq suspend path can hang or crash the system, and it recurs on every suspend cycle.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5d4d263e1c6b6b18acb4d67fd3b9af71b7404924 to < 2cd12c7fba59f30369e8647a2b726c7280903304 (affected · git)5d4d263e1c6b6b18acb4d67fd3b9af71b7404924 to < db049866943a38bf46a34fa120d526663339d7a5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.13 (affected)0 to < 6.13 (unaffected · semver)6.13.2 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-787 CWE-787 Out-of-bounds Write
References
2Provider assertions
2Linux · cna
mailbox: th1520: Fix memory corruption due to incorrect array size
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8ca5080d93592af52bd66e47c266c9ed6a7a9ebcd7dd8efaae19b33c14301c34
- Ingested
- 23 Sep 2026, 08:32:14 UTC
- Source record
- Official CVE record