Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74AA2490BFA for ; Fri, 25 Sep 2026 10:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332073; cv=none; b=dQPb2bCtWtTBwPaOs9heAW9QQcasNVuxoiSqNL0v4XnZX8Zpg+Zg0QlT5BZC5S09K55D63nCeWAHc2KGQrO7LMwt/6ZMLrrG9IJ5BjdJkjlZWpeQlvFGfj9i8ir1AZhZ+pL3JzdY2WKFX13Xpx2MXTCXEG31Tfl6PupniOV9tIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332073; c=relaxed/simple; bh=pH/XJPCYXRnMmYDBqIPsrB93lx57iFkNlqqNzLSghcM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nHqmaTGqkzgTs1nKHNPYhanvslUiod6v6Lv0vWmDXKHwOFRYJy4U/ukJJjpOb5XkypOj5F/oH4THHYQQbpk1va/8Yii7FiZbZNNHqOcU4SjAVmEV0LsV+wV8kHo5pkkR0gxnP8UArCbdBofOKz9anwuDCwWcdFaYf4lzgRvB6T0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nm6h7uF1; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nm6h7uF1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 603DC1F000FF; Fri, 25 Sep 2026 10:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332070; bh=c00kDEWJrjT1hy6Hk4cvGoMJ0zbzrlAP0tzy+ywLNgE=; h=From:To:Cc:Subject:Date:Reply-To; b=nm6h7uF187tCO93F+0+edDF9yElW8cTDPJGMU8d/M7QCC+V1Y2I9k9QpR3+ZuJ7YX q9/czWvWChCBxbiOS2hXO3AwTr7XsdAn8N4qJ/zkJXmGp09OlKBeCutZTPQGGKdxdX cm/LzYBrhx97ibiR/gAc4Xc6+6fUhLOuBjlONT/Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97910: ASoC: sprd: validate compress buffer sizes against fixed allocations Date: Fri, 25 Sep 2026 12:23:33 +0200 Message-ID: <2026092506-CVE-2026-97910-3d20@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3698; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Lt5j6CXJ87QdD6f25pRi06fcjwFnaVEzpmZDI0on1V8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvP2qg9LWLJM29H1SmvvWR/hpU/m3xGeee6VqJ8i82 er8zWVGRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk8j2GBTPNlVxeHtj9+UwP f+3UtC3hZ5kd3jAs2P1i6/vg86IHXjlq7F5VILLk45IJlwE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ASoC: sprd: validate compress buffer sizes against fixed allocations sprd_platform_compr_open() allocates the stage 0 IRAM buffer (32K data area) and the stage 1 DDR buffer (2M data area) with fixed sizes, but sprd_platform_compr_copy() derives all copy lengths from the user controlled runtime->fragment_size and the write() count, never comparing them against the physical buffer sizes. The compress core only checks fragment_size * fragments for an u32 overflow in snd_compress_check_input(), so a local user can configure a logical buffer of up to ~4GB via SNDRV_COMPRESS_SET_PARAMS, far exceeding the fixed allocations. A fragment_size larger than the 32K IRAM data area makes the stage 0 copy_from_user() overflow past the IRAM allocation, and a buffer_size larger than the 2M DDR buffer makes the wrapping copy at the end of sprd_platform_compr_copy() write fully user controlled data past the buffer. No SNDRV_PCM_TRIGGER_START is needed, a write() in SETUP state reaches the copy callback directly. Reject parameters that do not fit into the fixed buffers in set_params(), and fix the advertised max fragment size: 128K never fitted into the 32K IRAM buffer. The caps values may have been carried over from the qdsp6 driver, which allocates its buffers according to the advertised maxima, unlike this driver. With 32K as max fragment size the advertised limits are self-consistent: 32K * 64 = 2M equals the DDR buffer size. Discovered by Atuin - Automated Vulnerability Discovery Engine. The Linux kernel CVE team has assigned CVE-2026-97910 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit cce1396936ef2b347d622b4d49718818eb32029d and fixed in 6.12.111 with commit 38a9bb5221bcdece5507299f739c6751d8fc16b2 Issue introduced in 5.2 with commit cce1396936ef2b347d622b4d49718818eb32029d and fixed in 6.18.53 with commit ff63b0adc4f6a5b61c8393d204fac44c594c4d39 Issue introduced in 5.2 with commit cce1396936ef2b347d622b4d49718818eb32029d and fixed in 7.2.7 with commit 8064b73997f137c00a7e2e38295a763f9423928b Issue introduced in 5.2 with commit cce1396936ef2b347d622b4d49718818eb32029d and fixed in 7.3-rc3 with commit 7a4ce92d150b9e7ecf1a710a34d8cdeb590d3751 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97910 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: sound/soc/sprd/sprd-pcm-compress.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/38a9bb5221bcdece5507299f739c6751d8fc16b2 https://git.kernel.org/stable/c/ff63b0adc4f6a5b61c8393d204fac44c594c4d39 https://git.kernel.org/stable/c/8064b73997f137c00a7e2e38295a763f9423928b https://git.kernel.org/stable/c/7a4ce92d150b9e7ecf1a710a34d8cdeb590d3751