# CVE-2024-46689: soc: qcom: cmd-db: Map shared memory as WC, not WB

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-09-13T05:29:19.713Z
- **Modified:** 2026-06-17T07:55:44.207Z

## Who should check

- Anyone running Linux \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< 0ee9594c974368a17e85a431e9fe1c14fb65c278; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< f5a5a5a0e95f36e2792d48e6e4b64e665eb01374; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< eaff392c1e34fb77cc61505a31b0191e5e46e271; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< d9d48d70e922b272875cda60d2ada89291c840cf; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< ef80520be0ff78ae5ed44cb6eee1525e65bebe70; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< 62c2d63605ca25b5db78a347ed303c0a0a77d5b4; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< f9bb896eab221618927ae6a2f1d566567999839d
- Anyone running Linux 4.18

## 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 and fixed versions

- Linux: \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< 0ee9594c974368a17e85a431e9fe1c14fb65c278; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< f5a5a5a0e95f36e2792d48e6e4b64e665eb01374; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< eaff392c1e34fb77cc61505a31b0191e5e46e271; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< d9d48d70e922b272875cda60d2ada89291c840cf; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< ef80520be0ff78ae5ed44cb6eee1525e65bebe70; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< 62c2d63605ca25b5db78a347ed303c0a0a77d5b4; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< f9bb896eab221618927ae6a2f1d566567999839d (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-46689. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46689.md
Affected: Linux >= 312416d9171a1460b7ed8d182b5b540c910ce80d, < 0ee9594c974368a17e85a431e9fe1c14fb65c278; >= 312416d9171a1460b7ed8d182b5b540c910ce80d, < f5a5a5a0e95f36e2792d48e6e4b64e665eb01374; >= 312416d9171a1460b7ed8d182b5b540c910ce80d, < eaff392c1e34fb77cc61505a31b0191e5e46e271; >= 312416d9171a1460b7ed8d1…
Fixed in: Linux 0ee9594c974368a17e85a431e9fe1c14fb65c278, Linux 62c2d63605ca25b5db78a347ed303c0a0a77d5b4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-46689 being exploited?

There is no confirmed exploitation: CVE-2024-46689 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-46689?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-46689?

Linux \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< 0ee9594c974368a17e85a431e9fe1c14fb65c278; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< f5a5a5a0e95f36e2792d48e6e4b64e665eb01374; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< eaff392c1e34fb77cc61505a31b0191e5e46e271; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< d9d48d70e922b272875cda60d2ada89291c840cf; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< ef80520be0ff78ae5ed44cb6eee1525e65bebe70; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< 62c2d63605ca25b5db78a347ed303c0a0a77d5b4; \>= 312416d9171a1460b7ed8d182b5b540c910ce80d, \< f9bb896eab221618927ae6a2f1d566567999839d; Linux 4.18.

### Is there a fix for CVE-2024-46689?

Yes. Fixed in Linux 0ee9594c974368a17e85a431e9fe1c14fb65c278, Linux 62c2d63605ca25b5db78a347ed303c0a0a77d5b4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-46689?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0ee9594c974368a17e85a431e9fe1c14fb65c278>
- patch: <https://git.kernel.org/stable/c/f5a5a5a0e95f36e2792d48e6e4b64e665eb01374>
- patch: <https://git.kernel.org/stable/c/eaff392c1e34fb77cc61505a31b0191e5e46e271>
- patch: <https://git.kernel.org/stable/c/d9d48d70e922b272875cda60d2ada89291c840cf>
- patch: <https://git.kernel.org/stable/c/ef80520be0ff78ae5ed44cb6eee1525e65bebe70>
- patch: <https://git.kernel.org/stable/c/62c2d63605ca25b5db78a347ed303c0a0a77d5b4>
- patch: <https://git.kernel.org/stable/c/f9bb896eab221618927ae6a2f1d566567999839d>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-46689>

HTML: <https://flawdb.com/CVE-2024-46689> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-46689>
