CVE-2024-46689

soc: qcom: cmd-db: Map shared memory as WC, not WB

MEDIUM
5.5
CVSS Score
Published: September 13, 2024 at 05:29 AM UTC
Updated: June 17, 2026 at 07:55 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.18 ≤ v < 5.10.2254.18 ≤ v < 5.15.1664.18 ≤ v < 5.4.2834.18 ≤ v < 6.1.1084.18 ≤ v < 6.10.84.18 ≤ v < 6.114.18 ≤ v < 6.6.495.11 ≤ v < 5.15.1665.16 ≤ v < 6.1.1085.5 ≤ v < 5.10.2256.2 ≤ v < 6.6.496.7 ≤ v < 6.10.8312416d9171a1460b7ed8d182b5b540c910ce80d6.11 rc16.11 rc26.11 rc36.11 rc46.11 rc5
Vendor states this is fixed in 0ee9594c974368a17e85a431e9fe1c14fb65c278 (fixed)
Vendor states this is fixed in 62c2d63605ca25b5db78a347ed303c0a0a77d5b4 (fixed)
Vendor states this is fixed in d9d48d70e922b272875cda60d2ada89291c840cf (fixed)
Vendor states this is fixed in eaff392c1e34fb77cc61505a31b0191e5e46e271 (fixed)
Vendor states this is fixed in ef80520be0ff78ae5ed44cb6eee1525e65bebe70 (fixed)
Vendor states this is fixed in f5a5a5a0e95f36e2792d48e6e4b64e665eb01374 (fixed)
Vendor states this is fixed in f9bb896eab221618927ae6a2f1d566567999839d (fixed)
Vendor states this is fixed in 4.18 (unaffected)
Vendor states this is fixed in 5.10.225 (unaffected)
Vendor states this is fixed in 5.15.166 (unaffected)
Vendor states this is fixed in 5.4.283 (unaffected)
Vendor states this is fixed in 6.1.108 (unaffected)
Vendor states this is fixed in 6.10.8 (unaffected)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.6.49 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0ee9594c974368a17e85a431e9fe1c14fb65c278
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/62c2d63605ca25b5db78a347ed303c0a0a77d5b4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d9d48d70e922b272875cda60d2ada89291c840cf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eaff392c1e34fb77cc61505a31b0191e5e46e271
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef80520be0ff78ae5ed44cb6eee1525e65bebe70
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f5a5a5a0e95f36e2792d48e6e4b64e665eb01374
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f9bb896eab221618927ae6a2f1d566567999839d
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card