{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-97910", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-09-25T10:18:58.201Z", "datePublished": "2026-09-25T10:22:34.043Z", "dateUpdated": "2026-09-25T14:41:36.317Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-09-25T14:41:36.317Z" }, "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": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH" }, "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." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "sound/soc/sprd/sprd-pcm-compress.c" ], "versions": [ { "version": "cce1396936ef2b347d622b4d49718818eb32029d", "lessThan": "38a9bb5221bcdece5507299f739c6751d8fc16b2", "status": "affected", "versionType": "git" }, { "version": "cce1396936ef2b347d622b4d49718818eb32029d", "lessThan": "ff63b0adc4f6a5b61c8393d204fac44c594c4d39", "status": "affected", "versionType": "git" }, { "version": "cce1396936ef2b347d622b4d49718818eb32029d", "lessThan": "8064b73997f137c00a7e2e38295a763f9423928b", "status": "affected", "versionType": "git" }, { "version": "cce1396936ef2b347d622b4d49718818eb32029d", "lessThan": "7a4ce92d150b9e7ecf1a710a34d8cdeb590d3751", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "sound/soc/sprd/sprd-pcm-compress.c" ], "versions": [ { "version": "5.2", "status": "affected" }, { "version": "0", "lessThan": "5.2", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.111", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.53", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.2.7", "lessThanOrEqual": "7.2.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3-rc3", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.2", "versionEndExcluding": "6.12.111" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.2", "versionEndExcluding": "6.18.53" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.2", "versionEndExcluding": "7.2.7" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.2", "versionEndExcluding": "7.3-rc3" } ] } ] } ], "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" } } } }