{"id":"CVE-2026-139479","state":"PUBLISHED","title":"ALSA: hda: Fix potential UAF for gating jack","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Fix potential UAF for gating jack\n\nsnd_hda_jack_set_gating_jack() assigns gated and gating variables from\nthe succeeding calls of snd_hda_jack_tbl_get().  This works normally,\nbut the second call might kick off the reallocation of the jack table,\nhence the first pointer might become invalid, which leads to a UAF.\n\nFor avoiding that pitfall, this patch changes the code to two phases:\nthe first to only create two entries, and the second phase to get the\npointers from the table, so that no relocation can happen any longer.","publishedAt":"2026-11-30T13:35:07.956Z","updatedAt":"2026-11-30T13:35:07.956Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"2005252e42823e4a8406536a1d56684d3ad01ce4","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"8bd1b427cdd50ddf20347dd5cd8bd4c17851af05","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"efcf3ea7648f2b2ffc2bdd1fabcc3ef7d5992d38","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"1ccbd9f6eda1884746d205f19477d351fecc8f0f","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"b4455b69ed192d17bf7b2c2fd18f92831760d80a","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"fd8b909039d7646ff63b455deaa35051fb4418ae","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"ef68bd82e1aa9820ade5a897bd78b569483cbfd5","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"27cee4141c8de82cf051104ca830c3a209816033","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/common/jack.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.8","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":["sound/hda/common/jack.c"]}],"references":["https://git.kernel.org/stable/c/2005252e42823e4a8406536a1d56684d3ad01ce4","https://git.kernel.org/stable/c/8bd1b427cdd50ddf20347dd5cd8bd4c17851af05","https://git.kernel.org/stable/c/efcf3ea7648f2b2ffc2bdd1fabcc3ef7d5992d38","https://git.kernel.org/stable/c/1ccbd9f6eda1884746d205f19477d351fecc8f0f","https://git.kernel.org/stable/c/b4455b69ed192d17bf7b2c2fd18f92831760d80a","https://git.kernel.org/stable/c/fd8b909039d7646ff63b455deaa35051fb4418ae","https://git.kernel.org/stable/c/ef68bd82e1aa9820ade5a897bd78b569483cbfd5","https://git.kernel.org/stable/c/27cee4141c8de82cf051104ca830c3a209816033"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139479.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139479","state":"PUBLISHED","datePublished":"2026-11-30T13:35:07.956Z","dateUpdated":"2026-11-30T13:35:07.956Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.936Z"},"containers":{"cna":{"title":"ALSA: hda: Fix potential UAF for gating jack","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Fix potential UAF for gating jack\n\nsnd_hda_jack_set_gating_jack() assigns gated and gating variables from\nthe succeeding calls of snd_hda_jack_tbl_get().  This works normally,\nbut the second call might kick off the reallocation of the jack table,\nhence the first pointer might become invalid, which leads to a UAF.\n\nFor avoiding that pitfall, this patch changes the code to two phases:\nthe first to only create two entries, and the second phase to get the\npointers from the table, so that no relocation can happen any longer."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"2005252e42823e4a8406536a1d56684d3ad01ce4","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"8bd1b427cdd50ddf20347dd5cd8bd4c17851af05","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"efcf3ea7648f2b2ffc2bdd1fabcc3ef7d5992d38","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"1ccbd9f6eda1884746d205f19477d351fecc8f0f","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"b4455b69ed192d17bf7b2c2fd18f92831760d80a","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"fd8b909039d7646ff63b455deaa35051fb4418ae","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"ef68bd82e1aa9820ade5a897bd78b569483cbfd5","versionType":"git"},{"version":"0619ba8c17b121ef0273be181198659b17d84247","status":"affected","lessThan":"27cee4141c8de82cf051104ca830c3a209816033","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/common/jack.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.8","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":["sound/hda/common/jack.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2005252e42823e4a8406536a1d56684d3ad01ce4"},{"url":"https://git.kernel.org/stable/c/8bd1b427cdd50ddf20347dd5cd8bd4c17851af05"},{"url":"https://git.kernel.org/stable/c/efcf3ea7648f2b2ffc2bdd1fabcc3ef7d5992d38"},{"url":"https://git.kernel.org/stable/c/1ccbd9f6eda1884746d205f19477d351fecc8f0f"},{"url":"https://git.kernel.org/stable/c/b4455b69ed192d17bf7b2c2fd18f92831760d80a"},{"url":"https://git.kernel.org/stable/c/fd8b909039d7646ff63b455deaa35051fb4418ae"},{"url":"https://git.kernel.org/stable/c/ef68bd82e1aa9820ade5a897bd78b569483cbfd5"},{"url":"https://git.kernel.org/stable/c/27cee4141c8de82cf051104ca830c3a209816033"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:07.956Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}