{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-100016","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.453Z","datePublished":"2026-11-30T13:23:06.352Z","dateUpdated":"2026-12-01T05:39:35.176Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:39:35.176Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: compress: reject buffer geometry change on gapless next_track\n\nsnd_compr_set_params() is invoked from the gapless next_track\nre-entry path, which calls snd_compr_allocate_buffer() again and lets\nbuffer_size change while total_bytes_available and\ntotal_bytes_transferred still hold values computed for the previous\nbuffer. snd_compr_calc_avail() then derives an avail/count value from\nthose stale counters against the new buffer_size, and\nsnd_compr_write_data() copy_from_user()s that many bytes into the\nnew, potentially smaller buffer, overflowing it with user-controlled\nlength and content.\n\nThe buffer is set up once, with the initial SET_PARAMS, and neither the\ncore nor the DSP expects it to change for a gapless track transition.\nDo not call snd_compr_allocate_buffer() on the next_track path and\nreject a request that changes the buffer geometry, so that the codec\nparameters that the driver receives match the buffer in use."}],"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 geometry comes from the local user's second SNDRV_COMPRESS_SET_PARAMS ioctl after SNDRV_COMPRESS_NEXT_TRACK on /dev/snd/comprCxDy. It reaches snd_compr_set_params() and then snd_compr_allocate_buffer(), and the overflow fires on the next write() of that fd. No remote or physical input is involved.\nAC:L - This assumes a board whose Qualcomm q6asm/q6apm compress DAI accepts SND_COMPR_TRIGGER_NEXT_TRACK (e.g. db845c, rb5, msm8916). On it, the attacker runs SET_PARAMS (large), write, START, SET_METADATA, NEXT_TRACK, then SET_PARAMS (tiny). The stale total_bytes_available/transferred counters exceed the new buffer_size, so the u64 subtraction in snd_compr_calc_avail() wraps. Every step is the attacker's own.\nPR:L - snd_compr_open() and snd_compr_ioctl() have no capable() check. Access is gated only by the comprC*D* node permissions (audio group or the logind uaccess ACL for the seat user). That makes it a low-privileged local user, not root, and user namespaces give no extra reach.\nUI:N - The attacker opens the device, drives the gapless state machine and issues the overflowing write() on their own file descriptor. No other user or administrator has to do anything.\nS:U - The overflow corrupts kernel memory next to the compress DMA buffer in the same kernel that enforces the attacker's privileges. This is conventional local privilege escalation with no VM, TEE or IOMMU boundary crossed.\nC:H - Because avail wraps, q6asm_compr_copy()/q6apm_compr_copy() copy_from_user() the full write() count into prtd->dma_buffer.area with no clamp. That is an out-of-bounds write past the 8 MiB buffer, with length and bytes chosen by the attacker, which can be used to corrupt neighbouring kernel objects and build read primitives.\nI:H - The second copy_from_user() writes count minus copy attacker-chosen bytes from the start of the DMA buffer, so an oversized write() runs linearly past its end. This is an unbounded heap-style overflow usable for control-flow hijack or privilege escalation.\nA:H - Running past the DMA allocation into a vmap guard page, or tripping a hardened-usercopy abort, oopses the kernel. On copy-less drivers each NEXT_TRACK re-entry also leaks the old kmalloc'd buffer that snd_compr_allocate_buffer() replaces."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/core/compress_offload.c"],"versions":[{"version":"9727b490e543de956b8ba356e2d5499097d0b7a2","lessThan":"6233b4879c0a71b00791f57964bc1fd2623309c1","status":"affected","versionType":"git"},{"version":"9727b490e543de956b8ba356e2d5499097d0b7a2","lessThan":"04bb6a7e76313046a3f5bd05862f9ab4ac2b503e","status":"affected","versionType":"git"},{"version":"9727b490e543de956b8ba356e2d5499097d0b7a2","lessThan":"bda1fb7c15d9c7a293cc974d0325125ec577992a","status":"affected","versionType":"git"},{"version":"9727b490e543de956b8ba356e2d5499097d0b7a2","lessThan":"eadf0118ab295a5a2556388f13df6bec1615e556","status":"affected","versionType":"git"},{"version":"9727b490e543de956b8ba356e2d5499097d0b7a2","lessThan":"82da1acad6fd60b6072dd5f3383e6a55efdd2ac7","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/core/compress_offload.c"],"versions":[{"version":"3.9","status":"affected"},{"version":"0","lessThan":"3.9","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","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":"3.9","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/6233b4879c0a71b00791f57964bc1fd2623309c1"},{"url":"https://git.kernel.org/stable/c/04bb6a7e76313046a3f5bd05862f9ab4ac2b503e"},{"url":"https://git.kernel.org/stable/c/bda1fb7c15d9c7a293cc974d0325125ec577992a"},{"url":"https://git.kernel.org/stable/c/eadf0118ab295a5a2556388f13df6bec1615e556"},{"url":"https://git.kernel.org/stable/c/82da1acad6fd60b6072dd5f3383e6a55efdd2ac7"}],"title":"ALSA: compress: reject buffer geometry change on gapless next_track","x_generator":{"engine":"bippy-1.2.0"}}}}