CVE-2024-46689 Details
Description
In the Linux kernel, the following vulnerability has been resolved: soc: qcom: cmd-db: Map shared memory as WC, not WB Linux does not write into cmd-db region. This region of memory is write protected by XPU. XPU may sometime falsely detect clean cache eviction as "write" into the write protected region leading to secure interrupt which causes an endless loop somewhere in Trust Zone. The only reason it is working right now is because Qualcomm Hypervisor maps the same region as Non-Cacheable memory in Stage 2 translation tables. The issue manifests if we want to use another hypervisor (like Xen or KVM), which does not know anything about those specific mappings. Changing the mapping of cmd-db memory from MEMREMAP_WB to MEMREMAP_WT/WC removes dependency on correct mappings in Stage 2 tables. This patch fixes the issue by updating the mapping to MEMREMAP_WC. I tested this on SA8155P with Xen.
A vulnerability exists in the Linux kernel's handling of the command database (cmd-db) memory mapping for Qualcomm systems. The issue arises because the cmd-db region, which is write-protected by the XPU, is incorrectly mapped as write-back (WB) cacheable memory. This can lead to false detections of 'writes' into the protected area, triggering secure interrupts that cause an infinite loop in the Trust Zone. While this problem is currently mitigated by the Qualcomm Hypervisor's non-cacheable mapping in Stage 2 translation tables, it can disrupt operations with other hypervisors like Xen or KVM that lack awareness of these mappings. The vulnerability has been addressed by changing the memory mapping to write-combining (WC), eliminating reliance on the Stage 2 table mappings. This issue affects Linux kernel versions 5.4 and later.
Users can upgrade to the latest Linux kernel version, which includes the patch addressing this vulnerability. For Debian 11, this can be done by installing the linux-image-6.1 metapackage appropriate for the system architecture.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 29, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.18, < 5.4.283 >= 5.5, < 5.10.225 >= 5.11, < 5.15.166 >= 5.16, < 6.1.108 >= 6.2, < 6.6.49 >= 6.7, < 6.10.8 6.11 rc1 6.11 rc2 6.11 rc3 6.11 rc4 6.11 rc5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 20, 2024 | Initial Analysis | [email protected] |
| Sep 13, 2024 | New CVE Received | kernel.org |