ASoC: sprd: validate compress buffer sizes against fixed allocations
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.
CVE-2026-97910
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-97910
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "2fada8276117215407afd1f59de5d2fe22aff01f",
"versionType": "git"
},
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "ad796a1bc1875da2ebb616ea9bc1f2994273fd02",
"versionType": "git"
},
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "2e27144ba4b98bb3eb14aaccd4b088e2e69844e3",
"versionType": "git"
},
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "1467e3989c6edf79d3898c78aa47027f31ee5acb",
"versionType": "git"
},
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "38a9bb5221bcdece5507299f739c6751d8fc16b2",
"versionType": "git"
},
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "ff63b0adc4f6a5b61c8393d204fac44c594c4d39",
"versionType": "git"
},
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "8064b73997f137c00a7e2e38295a763f9423928b",
"versionType": "git"
},
{
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"lessThan": "7a4ce92d150b9e7ecf1a710a34d8cdeb590d3751",
"versionType": "git"
}
],
"programFiles": [
"sound/soc/sprd/sprd-pcm-compress.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.2"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.2",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.271",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.222",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.189",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.158",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.7",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"sound/soc/sprd/sprd-pcm-compress.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-97910
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #38065 · Revision 1
- Added to Heist Feed
- Publisher date