CVE-2026-97910
📛 CVE Title
ASoC: sprd: validate compress buffer sizes against fixed allocations
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.
Overview
- State
- PUBLISHED
- Assigner (CNA)
- Linux
- CVSS severity
- HIGH
- CVSS score
- 7.8 / 10
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Effective score
- 7.8 / 10 HIGH source: CNA overview
- CWE(s)
- —
- Reserved
- 2026-09-25
- Published
- 2026-09-25 10:22 UTC
- Last updated
- 2026-09-25 14:41 UTC
- Source
- https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/97xxx/CVE-2026-97910.json
- Linked Threat
- CVE-2026-97910 — ASoC: sprd: validate compress buffer sizes against fixed allocations
NVD triage scoring NVD CVE 2.0
Layer NVD adds on top of the CNA's CVE record — published / last-modified timestamps, exploitability / impact subscores, and the FIRST.org EPSS probability that this CVE will be exploited in the wild in the next 30 days.
- NVD published
- 2026-09-25 11:17:17 UTC
- NVD last modified
- 2026-09-25 15:18:02 UTC
- NVD CVSS v3.1
- 7.8 / 10 HIGH source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Exploitability subscore
- 1.8 / 10
- Impact subscore
- 5.9 / 10
NVD / KEV / EPSS data refreshed 2026-09-26 04:27 UTC. Re-run the 🛰 Backfill from NVD button above to refresh.
Affected products (2)
| Vendor | Product | Versions | Platforms |
|---|---|---|---|
| Linux | Linux |
cce1396936ef2b347d622b4d49718818eb32029d (affected),
cce1396936ef2b347d622b4d49718818eb32029d (affected),
cce1396936ef2b347d622b4d49718818eb32029d (affected),
cce1396936ef2b347d622b4d49718818eb32029d (affected)
|
— |
| Linux | Linux |
5.2 (affected),
0 (unaffected),
6.12.111 (unaffected),
6.18.53 (unaffected),
7.2.7 (unaffected),
7.3-rc3 (unaffected)
|
— |
Vendor references (4)
References embedded in the original CVE record by the assigning CNA.
Web references (0)
DuckDuckGo results ranked by threat-intel / vendor advisory domains. Generated by the 🔎 Find references (web) button above — same flow as the Remediations search.
No web references attached yet.
NVD-tagged references (4)
Reference list NVD curates from the CNA record, vendor advisories, and third-party reports. The tag chips below are NVD's analyst-assigned categories.
- https://git.kernel.org/stable/c/38a9bb5221bcdece5507299f739c6751d8fc16b2 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/7a4ce92d150b9e7ecf1a710a34d8cdeb590d3751 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/8064b73997f137c00a7e2e38295a763f9423928b 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- https://git.kernel.org/stable/c/ff63b0adc4f6a5b61c8393d204fac44c594c4d39 416baaa9-dc9f-4396-8d5f-8c081fb06d67
AI Forensic Analysis
Only Available for Registered Users. Sign in to view.
Raw JSON
The full cvelistV5 record. Download as CVE-2026-97910.json.
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"sound/soc/sprd/sprd-pcm-compress.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "38a9bb5221bcdece5507299f739c6751d8fc16b2",
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"versionType": "git"
},
{
"lessThan": "ff63b0adc4f6a5b61c8393d204fac44c594c4d39",
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"versionType": "git"
},
{
"lessThan": "8064b73997f137c00a7e2e38295a763f9423928b",
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"versionType": "git"
},
{
"lessThan": "7a4ce92d150b9e7ecf1a710a34d8cdeb590d3751",
"status": "affected",
"version": "cce1396936ef2b347d622b4d49718818eb32029d",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"sound/soc/sprd/sprd-pcm-compress.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.2"
},
{
"lessThan": "5.2",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"version": "7.2.7",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.3-rc3",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.111",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.53",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2.7",
"versionStartIncluding": "5.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3-rc3",
"versionStartIncluding": "5.2",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: sprd: validate compress buffer sizes against fixed allocations\n\nsprd_platform_compr_open() allocates the stage 0 IRAM buffer (32K data\narea) and the stage 1 DDR buffer (2M data area) with fixed sizes, but\nsprd_platform_compr_copy() derives all copy lengths from the user\ncontrolled runtime->fragment_size and the write() count, never\ncomparing them against the physical buffer sizes. The compress core\nonly checks fragment_size * fragments for an u32 overflow in\nsnd_compress_check_input(), so a local user can configure a logical\nbuffer of up to ~4GB via SNDRV_COMPRESS_SET_PARAMS, far exceeding the\nfixed allocations.\n\nA fragment_size larger than the 32K IRAM data area makes the stage 0\ncopy_from_user() overflow past the IRAM allocation, and a buffer_size\nlarger than the 2M DDR buffer makes the wrapping copy at the end of\nsprd_platform_compr_copy() write fully user controlled data past the\nbuffer. No SNDRV_PCM_TRIGGER_START is needed, a write() in SETUP\nstate reaches the copy callback directly.\n\nReject parameters that do not fit into the fixed buffers in\nset_params(), and fix the advertised max fragment size: 128K never\nfitted into the 32K IRAM buffer. The caps values may have been carried over\nfrom the qdsp6 driver, which allocates its buffers according to the\nadvertised maxima, unlike this driver. With 32K as max fragment size\nthe advertised limits are self-consistent: 32K * 64 = 2M equals the\nDDR buffer size.\n\nDiscovered by Atuin - Automated Vulnerability Discovery Engine."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The bad values come from a local process holding an open /dev/snd/comprCxDy node. It sets fragment_size/fragments with the SNDRV_COMPRESS_SET_PARAMS ioctl and picks the count in write() (snd_compr_write -> sprd_platform_compr_copy). No remote protocol carries this data.\nAC:L - snd_compress_check_input() only checks fragment_size*fragments for u32 overflow, and before the fix sprd_platform_compr_set_params() had no size check at all. The attacker picks fragment_size >32K or a buffer >2M, then write()s in SETUP state, and the overflow happens every time. There is no race and nothing depends on hardware state.\nPR:L - Opening the compress offload node needs only the ordinary device-file access given to audio clients: the audio group on Unisoc Android builds, or the seat user's uaccess ACL on generic Linux. No capability is checked along set_params or write.\nUI:N - The attacker opens the device, sets parameters and writes data entirely on their own. No other user has to do anything.\nS:U - A kernel memory overflow reached from a local process stays inside the kernel's own security authority. No VM, IOMMU or sandbox boundary is crossed.\nC:H - copy_from_user() writes fully controlled data past the 32K IRAM area or the 2M+1K DDR compr_buffer, and the length is also controlled. That corrupts adjacent kernel memory, which is enough to build a read primitive and leak kernel data.\nI:H - In sprd_platform_compr_copy(), both the stage 0 copy (fragment_size - received_stage0 past iram_buffer) and the wrapping DDR copy (data_count - avail_bytes into compr_buffer.area) write attacker data of attacker-chosen length past a fixed allocation. That is an out-of-bounds write that can lead to privilege escalation.\nA:H - Overwriting the DMA link lists, the DSP playinfo area or neighbouring pages with megabytes of attacker data reliably crashes the kernel or the audio DSP. A single write() is enough."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-09-25T14:41:36.317Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/38a9bb5221bcdece5507299f739c6751d8fc16b2"
},
{
"url": "https://git.kernel.org/stable/c/ff63b0adc4f6a5b61c8393d204fac44c594c4d39"
},
{
"url": "https://git.kernel.org/stable/c/8064b73997f137c00a7e2e38295a763f9423928b"
},
{
"url": "https://git.kernel.org/stable/c/7a4ce92d150b9e7ecf1a710a34d8cdeb590d3751"
}
],
"title": "ASoC: sprd: validate compress buffer sizes against fixed allocations",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-97910",
"datePublished": "2026-09-25T10:22:34.043Z",
"dateReserved": "2026-09-25T10:18:58.201Z",
"dateUpdated": "2026-09-25T14:41:36.317Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}