{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2025-37979",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2025-37979"
  ],
  "published": "2025-05-20T16:57:09Z",
  "summary": "ASoC: qcom: Fix sc7280 lpass potential buffer overflow",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: qcom: Fix sc7280 lpass potential buffer overflow\n\nCase values introduced in commit\n5f78e1fb7a3e (\"ASoC: qcom: Add driver support for audioreach solution\")\ncause out of bounds access in arrays of sc7280 driver data (e.g. in case\nof RX_CODEC_DMA_RX_0 in sc7280_snd_hw_params()).\n\nRedefine LPASS_MAX_PORTS to consider the maximum possible port id for\nq6dsp as sc7280 driver utilizes some of those values.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.136",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-37979"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d78888853eb53f47ae16cf3aa5d0444d0331b9f8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a12c14577882b1f2b4cff0f86265682f16e97b0c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c0ce01e0ff8a0d61a7b089ab309cdc12bc527c39"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b807b7c81a6d066757a94af7b8fa5b6a37e4d0b3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a31a4934b31faea76e735bab17e63d02fcd8e029"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T12:19:11Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The out-of-bounds accesses are reached only through ALSA PCM operations (open/close, SNDRV_PCM_IOCTL_HW_PARAMS, prepare/hw_free) on the local sound device node /dev/snd/pcmC*D*. There is no remote or adjacent-network path into the sc7280 machine driver.\nAC:L - On an affected sc7280 board (audioreach/ADSP device tree, where cpu_dai->id is a q6afe port id such as RX_CODEC_DMA_RX_0=113), the index is unconditionally out of the 34-entry arrays, so a single open()/close() or hw_params() deterministically triggers the OOB read, write and kfree() \u2014 no race, no timing, no memory-layout luck required to trigger.\nPR:L - The attacker needs only an unprivileged local account with access to the PCM device node \u2014 membership in the \"audio\" group on Chromebook/embedded systems, or an ordinary audio-capable app on Android. No capability, root, or namespace privilege is checked anywhere along the soc_pcm_open/soc_pcm_hw_params path.\nUI:N - The attacker opens and configures the PCM device directly; no victim must plug in hardware, mount anything, or play audio. The vulnerable callbacks run purely as a result of the attacker's own syscalls.\nS:U - The corruption is confined to kernel heap memory within the same kernel security authority; no hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - sc7280_snd_shutdown() reads a pointer from out of bounds (data->sruntime[113/120]) and hands it to kfree(), and the OOB pointer write can clobber an adjacent heap object; such heap corruption plus an attacker-groomable free is readily leveraged into arbitrary kernel memory disclosure.\nI:H - hw_params() writes a kernel heap pointer, and prepare() writes a byte, hundreds of bytes past the end of the 34-entry arrays inside the devm_kzalloc'd sc7280_snd_data object, and shutdown() frees an out-of-bounds-read pointer \u2014 an out-of-bounds write plus an invalid free, both classic primitives for control-flow hijacking.\nA:H - Corrupting an adjacent slab object and calling kfree() on a pointer read from out of bounds reliably produces slab corruption, BUG_ON/KASAN reports, or a kernel panic, and the sequence can be repeated at will by an unprivileged local user."
    }
  }
}
