{"id":"CVE-2026-139283","state":"PUBLISHED","title":"ALSA: oss: Keep emulation modules loaded until object teardown","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: oss: Keep emulation modules loaded until object teardown\n\nOSS proc entries and notifier callbacks can remain in use without an\nopen OSS device file. Normal snd-pcm-oss removal can therefore delete\nan existing PCM's OSS proc entry while late HDA codec binding repeats\nsnd_card_register() on the same live card:\n\n  OSS PCM module unload                 Card registration\n  ---------------------                 -----------------\n  snd_info_free_entry(entry)\n    proc_remove(entry->p)\n    clear entry->p\n                                        snd_info_card_register()\n                                          republish linked entry\n    unlink and free entry\n\nThe new proc node retains a pointer to freed storage. Mixer OSS removal\ncan likewise release an adapter while a card notification still uses it.\n\nHold a snd-pcm-oss module reference for each PCM registered with its\nnotifier and a snd-mixer-oss reference for each card adapter. Release\nthem at final unregister or FREE, after proc and adapter cleanup. Normal\nmodule unload can no longer initiate removal while these objects exist.\n\nTrack PCM OSS registration with a separate bool registered. Unlike\noss.reg, this state also covers unmapped PCMs and remains set across\nDISCONNECT until final unregister. BUILD-state and creation-error cleanup\nmust not drop a reference when registration never acquired one. The PCM\nnotifier's register_mutex serialization keeps the final put ahead of\nnotifier removal and module teardown until dispatch has finished.\n\nFor mixer OSS, serialize callback publication, dispatch and withdrawal\nin the core so module exit waits for callbacks, including one dropping\nthe last reference, to return. Keep card enumeration in the OSS module,\nwith card references released after dispatch drops the mutex. Ignore\nduplicate REGISTER notifications so a delayed registration cannot\nreplace an adapter retained across DISCONNECT and leak its module pin.\n\nPartial HDA codec teardown can still remove an individual PCM while the\ncard remains registered; its object-lifetime handling is separate.","publishedAt":"2026-11-30T13:33:19.309Z","updatedAt":"2026-11-30T13:33:19.309Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"5db63b577bcab14095a49ce3b11d4475efae785d","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"956df0d9a1febeef7f7f6b3cae021a299313a245","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"5d69fbf3d38522b5e4ded8c8c0d889de28c8e74e","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"ee00f1fa2ecfee719f67f6242f9abc3facd4dbb3","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"35ff4b2e9cc375befb27dbde81845c3a81d44463","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"ad4c1ae7aeca54fee1e16c824f364768dd222440","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"59800843436438df4b422d6b4d1999490ca327a6","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"f0780cfa6acf72576464dc3b40431db389f46ee8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/core.h","include/sound/pcm_oss.h","sound/core/init.c","sound/core/oss/mixer_oss.c","sound/core/oss/pcm_oss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/core.h","include/sound/pcm_oss.h","sound/core/init.c","sound/core/oss/mixer_oss.c","sound/core/oss/pcm_oss.c"]}],"references":["https://git.kernel.org/stable/c/5db63b577bcab14095a49ce3b11d4475efae785d","https://git.kernel.org/stable/c/956df0d9a1febeef7f7f6b3cae021a299313a245","https://git.kernel.org/stable/c/5d69fbf3d38522b5e4ded8c8c0d889de28c8e74e","https://git.kernel.org/stable/c/ee00f1fa2ecfee719f67f6242f9abc3facd4dbb3","https://git.kernel.org/stable/c/35ff4b2e9cc375befb27dbde81845c3a81d44463","https://git.kernel.org/stable/c/ad4c1ae7aeca54fee1e16c824f364768dd222440","https://git.kernel.org/stable/c/59800843436438df4b422d6b4d1999490ca327a6","https://git.kernel.org/stable/c/f0780cfa6acf72576464dc3b40431db389f46ee8"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139283.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139283","state":"PUBLISHED","datePublished":"2026-11-30T13:33:19.309Z","dateUpdated":"2026-11-30T13:33:19.309Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.924Z"},"containers":{"cna":{"title":"ALSA: oss: Keep emulation modules loaded until object teardown","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: oss: Keep emulation modules loaded until object teardown\n\nOSS proc entries and notifier callbacks can remain in use without an\nopen OSS device file. Normal snd-pcm-oss removal can therefore delete\nan existing PCM's OSS proc entry while late HDA codec binding repeats\nsnd_card_register() on the same live card:\n\n  OSS PCM module unload                 Card registration\n  ---------------------                 -----------------\n  snd_info_free_entry(entry)\n    proc_remove(entry->p)\n    clear entry->p\n                                        snd_info_card_register()\n                                          republish linked entry\n    unlink and free entry\n\nThe new proc node retains a pointer to freed storage. Mixer OSS removal\ncan likewise release an adapter while a card notification still uses it.\n\nHold a snd-pcm-oss module reference for each PCM registered with its\nnotifier and a snd-mixer-oss reference for each card adapter. Release\nthem at final unregister or FREE, after proc and adapter cleanup. Normal\nmodule unload can no longer initiate removal while these objects exist.\n\nTrack PCM OSS registration with a separate bool registered. Unlike\noss.reg, this state also covers unmapped PCMs and remains set across\nDISCONNECT until final unregister. BUILD-state and creation-error cleanup\nmust not drop a reference when registration never acquired one. The PCM\nnotifier's register_mutex serialization keeps the final put ahead of\nnotifier removal and module teardown until dispatch has finished.\n\nFor mixer OSS, serialize callback publication, dispatch and withdrawal\nin the core so module exit waits for callbacks, including one dropping\nthe last reference, to return. Keep card enumeration in the OSS module,\nwith card references released after dispatch drops the mutex. Ignore\nduplicate REGISTER notifications so a delayed registration cannot\nreplace an adapter retained across DISCONNECT and leak its module pin.\n\nPartial HDA codec teardown can still remove an individual PCM while the\ncard remains registered; its object-lifetime handling is separate."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"5db63b577bcab14095a49ce3b11d4475efae785d","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"956df0d9a1febeef7f7f6b3cae021a299313a245","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"5d69fbf3d38522b5e4ded8c8c0d889de28c8e74e","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"ee00f1fa2ecfee719f67f6242f9abc3facd4dbb3","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"35ff4b2e9cc375befb27dbde81845c3a81d44463","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"ad4c1ae7aeca54fee1e16c824f364768dd222440","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"59800843436438df4b422d6b4d1999490ca327a6","versionType":"git"},{"version":"2471b6c80a70e80de69f5ff4c37187c3912e5874","status":"affected","lessThan":"f0780cfa6acf72576464dc3b40431db389f46ee8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/core.h","include/sound/pcm_oss.h","sound/core/init.c","sound/core/oss/mixer_oss.c","sound/core/oss/pcm_oss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/core.h","include/sound/pcm_oss.h","sound/core/init.c","sound/core/oss/mixer_oss.c","sound/core/oss/pcm_oss.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5db63b577bcab14095a49ce3b11d4475efae785d"},{"url":"https://git.kernel.org/stable/c/956df0d9a1febeef7f7f6b3cae021a299313a245"},{"url":"https://git.kernel.org/stable/c/5d69fbf3d38522b5e4ded8c8c0d889de28c8e74e"},{"url":"https://git.kernel.org/stable/c/ee00f1fa2ecfee719f67f6242f9abc3facd4dbb3"},{"url":"https://git.kernel.org/stable/c/35ff4b2e9cc375befb27dbde81845c3a81d44463"},{"url":"https://git.kernel.org/stable/c/ad4c1ae7aeca54fee1e16c824f364768dd222440"},{"url":"https://git.kernel.org/stable/c/59800843436438df4b422d6b4d1999490ca327a6"},{"url":"https://git.kernel.org/stable/c/f0780cfa6acf72576464dc3b40431db389f46ee8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:19.309Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}