{
  "id": "CVE-2025-21870",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21870",
  "published_at": "2025-03-27T13:38:22.849Z",
  "title": "ASoC: SOF: ipc4-topology: Harden loops for looking up ALH copiers",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc4-topology: Harden loops for looking up ALH copiers\n\nOther, non DAI copier widgets could have the same  stream name (sname) as\nthe ALH copier and in that case the copier-\u003edata is NULL, no alh_data is\nattached, which could lead to NULL pointer dereference.\nWe could check for this NULL pointer in sof_ipc4_prepare_copier_module()\nand avoid the crash, but a similar loop in sof_ipc4_widget_setup_comp_dai()\nwill miscalculate the ALH device count, causing broken audio.\n\nThe correct fix is to harden the matching logic by making sure that the\n1. widget is a DAI widget - so dai = w-\u003eprivate is valid\n2. the dai (and thus the copier) is ALH copier",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= a150345aa758492e05d2934f318ce7c2566b1cfe, \u003c ec8f5a4fe296c311d4b45db7a25a0e9e69802372",
          "\u003e= a150345aa758492e05d2934f318ce7c2566b1cfe, \u003c 6b6b47c1aa717a0ed3400e00a81dfea686a41d7f",
          "\u003e= a150345aa758492e05d2934f318ce7c2566b1cfe, \u003c 87c8768a96092ce75cd47fe076db5080db7ac515",
          "\u003e= a150345aa758492e05d2934f318ce7c2566b1cfe, \u003c 93c6c2e5801aab09ef1ef99f248f3cd323c3f152",
          "\u003e= a150345aa758492e05d2934f318ce7c2566b1cfe, \u003c 6fd60136d256b3b948333ebdb3835f41a95ab7ef"
        ],
        "fixed_in": [
          "ec8f5a4fe296c311d4b45db7a25a0e9e69802372",
          "6b6b47c1aa717a0ed3400e00a81dfea686a41d7f",
          "87c8768a96092ce75cd47fe076db5080db7ac515",
          "93c6c2e5801aab09ef1ef99f248f3cd323c3f152",
          "6fd60136d256b3b948333ebdb3835f41a95ab7ef"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.160",
          "6.12.17",
          "6.13.5",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to ec8f5a4fe296c311d4b45db7a25a0e9e69802372 or 6b6b47c1aa717a0ed3400e00a81dfea686a41d7f or 87c8768a96092ce75cd47fe076db5080db7ac515 or 93c6c2e5801aab09ef1ef99f248f3cd323c3f152 or 6fd60136d256b3b948333ebdb3835f41a95ab7ef or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.17 or 6.13.5 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
