CVE-2024-46689 (GCVE-0-2024-46689)
Vulnerability from cvelistv5
Published
2024-09-13 05:29
Modified
2025-11-03 22:16
Severity ?
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: 312416d9171a1460b7ed8d182b5b540c910ce80d
Version: 312416d9171a1460b7ed8d182b5b540c910ce80d
Version: 312416d9171a1460b7ed8d182b5b540c910ce80d
Version: 312416d9171a1460b7ed8d182b5b540c910ce80d
Version: 312416d9171a1460b7ed8d182b5b540c910ce80d
Version: 312416d9171a1460b7ed8d182b5b540c910ce80d
Version: 312416d9171a1460b7ed8d182b5b540c910ce80d
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-46689",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-29T15:07:23.732311Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-29T15:07:38.504Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T22:16:27.670Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/soc/qcom/cmd-db.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0ee9594c974368a17e85a431e9fe1c14fb65c278",
              "status": "affected",
              "version": "312416d9171a1460b7ed8d182b5b540c910ce80d",
              "versionType": "git"
            },
            {
              "lessThan": "f5a5a5a0e95f36e2792d48e6e4b64e665eb01374",
              "status": "affected",
              "version": "312416d9171a1460b7ed8d182b5b540c910ce80d",
              "versionType": "git"
            },
            {
              "lessThan": "eaff392c1e34fb77cc61505a31b0191e5e46e271",
              "status": "affected",
              "version": "312416d9171a1460b7ed8d182b5b540c910ce80d",
              "versionType": "git"
            },
            {
              "lessThan": "d9d48d70e922b272875cda60d2ada89291c840cf",
              "status": "affected",
              "version": "312416d9171a1460b7ed8d182b5b540c910ce80d",
              "versionType": "git"
            },
            {
              "lessThan": "ef80520be0ff78ae5ed44cb6eee1525e65bebe70",
              "status": "affected",
              "version": "312416d9171a1460b7ed8d182b5b540c910ce80d",
              "versionType": "git"
            },
            {
              "lessThan": "62c2d63605ca25b5db78a347ed303c0a0a77d5b4",
              "status": "affected",
              "version": "312416d9171a1460b7ed8d182b5b540c910ce80d",
              "versionType": "git"
            },
            {
              "lessThan": "f9bb896eab221618927ae6a2f1d566567999839d",
              "status": "affected",
              "version": "312416d9171a1460b7ed8d182b5b540c910ce80d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/soc/qcom/cmd-db.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.18"
            },
            {
              "lessThan": "4.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.283",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.225",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.166",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.108",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.49",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.11",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.283",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.225",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.166",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.108",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.49",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10.8",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: cmd-db: Map shared memory as WC, not WB\n\nLinux does not write into cmd-db region. This region of memory is write\nprotected by XPU. XPU may sometime falsely detect clean cache eviction\nas \"write\" into the write protected region leading to secure interrupt\nwhich causes an endless loop somewhere in Trust Zone.\n\nThe only reason it is working right now is because Qualcomm Hypervisor\nmaps the same region as Non-Cacheable memory in Stage 2 translation\ntables. The issue manifests if we want to use another hypervisor (like\nXen or KVM), which does not know anything about those specific mappings.\n\nChanging the mapping of cmd-db memory from MEMREMAP_WB to MEMREMAP_WT/WC\nremoves dependency on correct mappings in Stage 2 tables. This patch\nfixes the issue by updating the mapping to MEMREMAP_WC.\n\nI tested this on SA8155P with Xen."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T09:31:57.015Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0ee9594c974368a17e85a431e9fe1c14fb65c278"
        },
        {
          "url": "https://git.kernel.org/stable/c/f5a5a5a0e95f36e2792d48e6e4b64e665eb01374"
        },
        {
          "url": "https://git.kernel.org/stable/c/eaff392c1e34fb77cc61505a31b0191e5e46e271"
        },
        {
          "url": "https://git.kernel.org/stable/c/d9d48d70e922b272875cda60d2ada89291c840cf"
        },
        {
          "url": "https://git.kernel.org/stable/c/ef80520be0ff78ae5ed44cb6eee1525e65bebe70"
        },
        {
          "url": "https://git.kernel.org/stable/c/62c2d63605ca25b5db78a347ed303c0a0a77d5b4"
        },
        {
          "url": "https://git.kernel.org/stable/c/f9bb896eab221618927ae6a2f1d566567999839d"
        }
      ],
      "title": "soc: qcom: cmd-db: Map shared memory as WC, not WB",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-46689",
    "datePublished": "2024-09-13T05:29:19.713Z",
    "dateReserved": "2024-09-11T15:12:18.249Z",
    "dateUpdated": "2025-11-03T22:16:27.670Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html\"}, {\"url\": \"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T22:16:27.670Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-46689\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-29T15:07:23.732311Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-29T15:07:27.872Z\"}}], \"cna\": {\"title\": \"soc: qcom: cmd-db: Map shared memory as WC, not WB\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"312416d9171a1460b7ed8d182b5b540c910ce80d\", \"lessThan\": \"0ee9594c974368a17e85a431e9fe1c14fb65c278\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"312416d9171a1460b7ed8d182b5b540c910ce80d\", \"lessThan\": \"f5a5a5a0e95f36e2792d48e6e4b64e665eb01374\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"312416d9171a1460b7ed8d182b5b540c910ce80d\", \"lessThan\": \"eaff392c1e34fb77cc61505a31b0191e5e46e271\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"312416d9171a1460b7ed8d182b5b540c910ce80d\", \"lessThan\": \"d9d48d70e922b272875cda60d2ada89291c840cf\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"312416d9171a1460b7ed8d182b5b540c910ce80d\", \"lessThan\": \"ef80520be0ff78ae5ed44cb6eee1525e65bebe70\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"312416d9171a1460b7ed8d182b5b540c910ce80d\", \"lessThan\": \"62c2d63605ca25b5db78a347ed303c0a0a77d5b4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"312416d9171a1460b7ed8d182b5b540c910ce80d\", \"lessThan\": \"f9bb896eab221618927ae6a2f1d566567999839d\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/soc/qcom/cmd-db.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.18\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.18\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.283\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.225\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.166\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.108\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.49\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.8\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/soc/qcom/cmd-db.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/0ee9594c974368a17e85a431e9fe1c14fb65c278\"}, {\"url\": \"https://git.kernel.org/stable/c/f5a5a5a0e95f36e2792d48e6e4b64e665eb01374\"}, {\"url\": \"https://git.kernel.org/stable/c/eaff392c1e34fb77cc61505a31b0191e5e46e271\"}, {\"url\": \"https://git.kernel.org/stable/c/d9d48d70e922b272875cda60d2ada89291c840cf\"}, {\"url\": \"https://git.kernel.org/stable/c/ef80520be0ff78ae5ed44cb6eee1525e65bebe70\"}, {\"url\": \"https://git.kernel.org/stable/c/62c2d63605ca25b5db78a347ed303c0a0a77d5b4\"}, {\"url\": \"https://git.kernel.org/stable/c/f9bb896eab221618927ae6a2f1d566567999839d\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nsoc: qcom: cmd-db: Map shared memory as WC, not WB\\n\\nLinux does not write into cmd-db region. This region of memory is write\\nprotected by XPU. XPU may sometime falsely detect clean cache eviction\\nas \\\"write\\\" into the write protected region leading to secure interrupt\\nwhich causes an endless loop somewhere in Trust Zone.\\n\\nThe only reason it is working right now is because Qualcomm Hypervisor\\nmaps the same region as Non-Cacheable memory in Stage 2 translation\\ntables. The issue manifests if we want to use another hypervisor (like\\nXen or KVM), which does not know anything about those specific mappings.\\n\\nChanging the mapping of cmd-db memory from MEMREMAP_WB to MEMREMAP_WT/WC\\nremoves dependency on correct mappings in Stage 2 tables. This patch\\nfixes the issue by updating the mapping to MEMREMAP_WC.\\n\\nI tested this on SA8155P with Xen.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.283\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.225\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.166\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.108\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.49\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.10.8\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11\", \"versionStartIncluding\": \"4.18\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T09:31:57.015Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-46689\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-11-03T22:16:27.670Z\", \"dateReserved\": \"2024-09-11T15:12:18.249Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-09-13T05:29:19.713Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…