{"api_version":"1","generated_at":"2026-12-01T13:51:14+00:00","cve":"CVE-2026-139329","urls":{"html":"https://cve.report/CVE-2026-139329","api":"https://cve.report/api/cve/CVE-2026-139329.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139329","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139329"},"summary":{"title":"ALSA: jack: Protect the index scan against control removal","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: jack: Protect the index scan against control removal\n\nA control found during a jack-name index scan must remain alive until\nsnd_ctl_find_id() finishes comparing its ID and count. However,\nget_available_index() calls it without holding card->controls_rwsem.\nWith CONFIG_SND_CTL_FAST_LOOKUP enabled, the lookup loads a raw control\npointer from ctl_hash and dereferences it in elem_id_matches() without\nany lock that excludes removal.\n\nThis can happen when a jack is created while a different jack owner on\nthe same card removes an existing control with the same name and index.\nFor example, probe and unbind of different HDA codecs can reach these\npaths on a shared card if their generated jack names match.\nThe codec device locks do not serialize operations on different\ncodecs. The unbind path can free the control during the index scan:\n\n  Codec A: probe                  Codec B: unbind\n  --------------                  ---------------\n  get_available_index()\n    snd_ctl_find_id()\n      kctl = xa_load(...)\n                                  hda_codec_driver_remove()\n                                    snd_hda_codec_cleanup_for_unbind()\n                                      snd_hda_jack_tbl_clear()\n                                        snd_device_free()\n                                          __snd_device_free()\n                                            snd_jack_dev_free()\n                                              snd_ctl_remove()\n                                                snd_ctl_remove_locked()\n                                                  __snd_ctl_remove()\n                                                    snd_ctl_free_one()\n                                                      kfree(kctl)\n      elem_id_matches(kctl, ...)\n        read freed id/count -> UAF\n\nHold controls_rwsem for read across the index scan so removal cannot\nfree a control until the lookup has finished using it. Release the lock\nwhen get_available_index() returns, before the caller adds the new\ncontrol under the write lock.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:57","updated_at":"2026-11-30 14:18:57"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/400874c97fbf537f6a58b5bb72ef3f78e2e2db52","name":"https://git.kernel.org/stable/c/400874c97fbf537f6a58b5bb72ef3f78e2e2db52","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7d329eff434a7f55cb34fbda52d0295123783e78","name":"https://git.kernel.org/stable/c/7d329eff434a7f55cb34fbda52d0295123783e78","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ba8c3d5fc27ac3f86962641dd3b6600906234bab","name":"https://git.kernel.org/stable/c/ba8c3d5fc27ac3f86962641dd3b6600906234bab","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8c0f05570df41f7fe7cb8b9485647eaee8274343","name":"https://git.kernel.org/stable/c/8c0f05570df41f7fe7cb8b9485647eaee8274343","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139329","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139329","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 38ea4c3dc306edf6f4e483e8ad9cb8d33943afde 7d329eff434a7f55cb34fbda52d0295123783e78 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 38ea4c3dc306edf6f4e483e8ad9cb8d33943afde 400874c97fbf537f6a58b5bb72ef3f78e2e2db52 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 38ea4c3dc306edf6f4e483e8ad9cb8d33943afde 8c0f05570df41f7fe7cb8b9485647eaee8274343 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 38ea4c3dc306edf6f4e483e8ad9cb8d33943afde ba8c3d5fc27ac3f86962641dd3b6600906234bab git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["sound/core/ctljack.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7d329eff434a7f55cb34fbda52d0295123783e78","status":"affected","version":"38ea4c3dc306edf6f4e483e8ad9cb8d33943afde","versionType":"git"},{"lessThan":"400874c97fbf537f6a58b5bb72ef3f78e2e2db52","status":"affected","version":"38ea4c3dc306edf6f4e483e8ad9cb8d33943afde","versionType":"git"},{"lessThan":"8c0f05570df41f7fe7cb8b9485647eaee8274343","status":"affected","version":"38ea4c3dc306edf6f4e483e8ad9cb8d33943afde","versionType":"git"},{"lessThan":"ba8c3d5fc27ac3f86962641dd3b6600906234bab","status":"affected","version":"38ea4c3dc306edf6f4e483e8ad9cb8d33943afde","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["sound/core/ctljack.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.12"},{"lessThan":"6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: jack: Protect the index scan against control removal\n\nA control found during a jack-name index scan must remain alive until\nsnd_ctl_find_id() finishes comparing its ID and count. However,\nget_available_index() calls it without holding card->controls_rwsem.\nWith CONFIG_SND_CTL_FAST_LOOKUP enabled, the lookup loads a raw control\npointer from ctl_hash and dereferences it in elem_id_matches() without\nany lock that excludes removal.\n\nThis can happen when a jack is created while a different jack owner on\nthe same card removes an existing control with the same name and index.\nFor example, probe and unbind of different HDA codecs can reach these\npaths on a shared card if their generated jack names match.\nThe codec device locks do not serialize operations on different\ncodecs. The unbind path can free the control during the index scan:\n\n  Codec A: probe                  Codec B: unbind\n  --------------                  ---------------\n  get_available_index()\n    snd_ctl_find_id()\n      kctl = xa_load(...)\n                                  hda_codec_driver_remove()\n                                    snd_hda_codec_cleanup_for_unbind()\n                                      snd_hda_jack_tbl_clear()\n                                        snd_device_free()\n                                          __snd_device_free()\n                                            snd_jack_dev_free()\n                                              snd_ctl_remove()\n                                                snd_ctl_remove_locked()\n                                                  __snd_ctl_remove()\n                                                    snd_ctl_free_one()\n                                                      kfree(kctl)\n      elem_id_matches(kctl, ...)\n        read freed id/count -> UAF\n\nHold controls_rwsem for read across the index scan so removal cannot\nfree a control until the lookup has finished using it. Release the lock\nwhen get_available_index() returns, before the caller adds the new\ncontrol under the write lock."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:45.362Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/7d329eff434a7f55cb34fbda52d0295123783e78"},{"url":"https://git.kernel.org/stable/c/400874c97fbf537f6a58b5bb72ef3f78e2e2db52"},{"url":"https://git.kernel.org/stable/c/8c0f05570df41f7fe7cb8b9485647eaee8274343"},{"url":"https://git.kernel.org/stable/c/ba8c3d5fc27ac3f86962641dd3b6600906234bab"}],"title":"ALSA: jack: Protect the index scan against control removal","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139329","datePublished":"2026-11-30T13:33:45.362Z","dateReserved":"2026-11-30T13:22:15.927Z","dateUpdated":"2026-11-30T13:33:45.362Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:57","lastModifiedDate":"2026-11-30 14:18:57","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139329","Ordinal":"1","Title":"ALSA: jack: Protect the index scan against control removal","CVE":"CVE-2026-139329","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139329","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: jack: Protect the index scan against control removal\n\nA control found during a jack-name index scan must remain alive until\nsnd_ctl_find_id() finishes comparing its ID and count. However,\nget_available_index() calls it without holding card->controls_rwsem.\nWith CONFIG_SND_CTL_FAST_LOOKUP enabled, the lookup loads a raw control\npointer from ctl_hash and dereferences it in elem_id_matches() without\nany lock that excludes removal.\n\nThis can happen when a jack is created while a different jack owner on\nthe same card removes an existing control with the same name and index.\nFor example, probe and unbind of different HDA codecs can reach these\npaths on a shared card if their generated jack names match.\nThe codec device locks do not serialize operations on different\ncodecs. The unbind path can free the control during the index scan:\n\n  Codec A: probe                  Codec B: unbind\n  --------------                  ---------------\n  get_available_index()\n    snd_ctl_find_id()\n      kctl = xa_load(...)\n                                  hda_codec_driver_remove()\n                                    snd_hda_codec_cleanup_for_unbind()\n                                      snd_hda_jack_tbl_clear()\n                                        snd_device_free()\n                                          __snd_device_free()\n                                            snd_jack_dev_free()\n                                              snd_ctl_remove()\n                                                snd_ctl_remove_locked()\n                                                  __snd_ctl_remove()\n                                                    snd_ctl_free_one()\n                                                      kfree(kctl)\n      elem_id_matches(kctl, ...)\n        read freed id/count -> UAF\n\nHold controls_rwsem for read across the index scan so removal cannot\nfree a control until the lookup has finished using it. Release the lock\nwhen get_available_index() returns, before the caller adds the new\ncontrol under the write lock.","Type":"Description","Title":"ALSA: jack: Protect the index scan against control removal"}]}}}