{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139792","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.953Z","datePublished":"2026-11-30T13:38:02.646Z","dateUpdated":"2026-12-01T05:43:26.010Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:26.010Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Prevent O_APPEND open on OSS streams\n\nALSA PCM core accepts to re-use the existing stream when O_APPEND is\npassed, and it's been used for dmix, etc.  However, this mode isn't\nsupposed to be used for OSS: the OSS stream allows re-configuration\nvia its hw_params/hw_refine procedure even while it's being mmapped,\nso it implies the usage of only a single stream.  Because of this\nassumption, the sanity check is skipped for OSS streams, and if user\nmay attach to an existing OSS stream with O_APPEND, it may result in a\nUAF of the mapped pages which could be used as a privilege escalation\nexploit.\n\nFor addressing it, this patch simply prohibits the O_APPEND behavior\non the OSS stream.  O_APPEND is never used for OSS layer itself, so\nthis can't break for the right applications."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The attacker uses local character devices: open /dev/dsp (snd_pcm_oss_open), then open /dev/snd/pcmC*D*p with O_APPEND so snd_pcm_attach_substream() joins the OSS-owned substream, then mmap and SNDRV_PCM_IOCTL_HW_PARAMS on the native fd. No remote protocol carries any input.\nAC:H - Needs snd-pcm-oss loaded (substream->oss.oss is set only by OSS open). CONFIG_SND_PCM_OSS is off by default, and distros that build it as a module don't load it. /dev/dsp exists only after the module registers it and there is no devname alias, so the attacker cannot autoload it. Once it is loaded, the attach/mmap/HW_PARAMS sequence is deterministic.\nPR:L - snd_pcm_oss_open, snd_pcm_open, snd_pcm_attach_substream's O_APPEND branch and snd_pcm_hw_params have no capable() check. Access to /dev/dsp and /dev/snd/pcm* comes from the audio group or the logind uaccess ACL, which an ordinary local user holds.\nUI:N - The attacker opens both nodes, mmaps the data and issues HW_PARAMS on their own; no other user or admin action is needed beyond the module already being loaded.\nS:U - The freed DMA pages and the resulting memory corruption stay within the kernel's own security authority; this is a local privilege escalation, not a VM, IOMMU or sandbox boundary crossing.\nC:H - snd_pcm_hw_params skips the mmap_count check for OSS streams, so a larger buffer makes snd_pcm_lib_malloc_pages free the old one while remap_pfn_range PTEs (dma_direct_mmap, snd_dma_continuous_mmap) still map it. The user can read freed physical pages after the allocator reuses them for other kernel data.\nI:H - The leftover mapping is writable (playback VMAs need VM_WRITE|VM_READ), so the attacker can write into pages the buddy allocator reuses for page tables, slab or creds. That is an arbitrary-write primitive, and the fix says it can be used for privilege escalation.\nA:H - Writing through freed DMA pages that have been reused corrupts kernel memory and page tables, causing oopses or a panic; the attacker can repeat it at will once the stream is attached."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/core/pcm.c","sound/core/pcm_local.h","sound/core/pcm_native.c"],"versions":[{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"906fbf130ae2706df3e05a1211d6bc11591c44db","status":"affected","versionType":"git"},{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"d53ca35ac1074e3c5b6c72b6dd30363507f5f09c","status":"affected","versionType":"git"},{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"b38ad5599d60172c549c85a91b49e13c588844fe","status":"affected","versionType":"git"},{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"0322b67d7718964a524ed76efd7b7488545f4650","status":"affected","versionType":"git"},{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"401f58037219b7c5bfe9829d322ff367e51a64ac","status":"affected","versionType":"git"},{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"e0dbd2608acabeb4a76647423b32f13755875889","status":"affected","versionType":"git"},{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"b15cb2a3c074f6b240fd71d3f27850c4ca9af475","status":"affected","versionType":"git"},{"version":"0df63e44c3e315ec0fe427ae62558231864108bd","lessThan":"9017bc3d13da0ea4e63be618c87143a7b69185e6","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/pcm.c","sound/core/pcm_local.h","sound/core/pcm_native.c"],"versions":[{"version":"2.6.18","status":"affected"},{"version":"0","lessThan":"2.6.18","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","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":"2.6.18","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/906fbf130ae2706df3e05a1211d6bc11591c44db"},{"url":"https://git.kernel.org/stable/c/d53ca35ac1074e3c5b6c72b6dd30363507f5f09c"},{"url":"https://git.kernel.org/stable/c/b38ad5599d60172c549c85a91b49e13c588844fe"},{"url":"https://git.kernel.org/stable/c/0322b67d7718964a524ed76efd7b7488545f4650"},{"url":"https://git.kernel.org/stable/c/401f58037219b7c5bfe9829d322ff367e51a64ac"},{"url":"https://git.kernel.org/stable/c/e0dbd2608acabeb4a76647423b32f13755875889"},{"url":"https://git.kernel.org/stable/c/b15cb2a3c074f6b240fd71d3f27850c4ca9af475"},{"url":"https://git.kernel.org/stable/c/9017bc3d13da0ea4e63be618c87143a7b69185e6"}],"title":"ALSA: pcm: Prevent O_APPEND open on OSS streams","x_generator":{"engine":"bippy-1.2.0"}}}}