{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139277",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.924Z",
        "datePublished": "2026-11-30T13:33:16.014Z",
        "dateUpdated": "2026-12-03T03:33:05.393Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T03:33:05.393Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Remove channel-map controls before freeing substreams\n\nA late HDA codec bind on an already registered card builds new PCMs\nbefore registering them. add_std_chmaps() publishes generic channel-map\ncontrols during this BUILD stage. If an earlier chmap succeeds and a\nlater allocation fails, probe cleanup frees the BUILD PCM while the\ncard's control device remains accessible.\n\nThese generic controls are added directly by snd_pcm_add_chmap_ctls();\nsnd_hda_ctls_clear() only removes codec-tracked mixer controls. BUILD\ndevices also skip dev_disconnect. snd_pcm_free_stream() then frees the\nsubstreams before free_chmap() withdraws their generic control:\n\n  Late HDA codec bind / rollback        Control GET on the live card\n  ------------------------------       ----------------------------\n  hda_codec_driver_probe()\n    snd_hda_codec_build_pcms()\n      PCM is BUILD\n    snd_hda_codec_build_controls()\n      add_std_chmaps()\n        publish an earlier chmap\n        later allocation: -ENOMEM\n    snd_hda_codec_cleanup_for_unbind()\n      snd_hda_ctls_clear()\n        generic chmap remains\n      codec_release_pcms()\n        snd_device_free()\n          BUILD: skip dev_disconnect\n          snd_pcm_free_stream()\n            kfree(substream)\n                                       snd_ctl_elem_read()\n                                         down_read(controls_rwsem)\n                                         pcm_chmap_ctl_get()\n                                           walk freed substream\n            free_chmap()\n              snd_ctl_remove()\n                wait for GET\n                                         up_read(controls_rwsem)\n\nThe control read lock cannot protect a substream already freed before\ncontrol removal starts. The failure above occurs before\nsnd_card_register(), so the PCM has not transitioned out of BUILD.\n\nMove free_chmap() before the substream free loop. Its snd_ctl_remove()\nwithdraws the control and drains readers under controls_rwsem before any\nsubstream is released. Normal registered-device disconnect already\nremoves the control, so the later call remains harmless on that path."
                }
            ],
            "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"
                    ],
                    "versions": [
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "736881539d313a92fd5b67cc80ed0e0906d1f9d3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "df6fe78536c7ffd33381a789563495f757cd521c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "d7245e5c7b6c4419f811494298215b07657e30e2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "d80f03e41802c0605be48e6759659e10cf3117bd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "7c445a41b80be76d4474baef3e65ae5c815fae8f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "476a4e4dbd11635a4e00f0c2a9ef2e5a370f3d26",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "da3978f32236816cdaed20079c9c7d9d088eeed8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8ff48cb70835f48de5703052760312019afea55",
                            "lessThan": "d5dd05c1f72a95d8ab06828d7272a185ad2b9185",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3c09ac6e799b8661f871ff50be7bf13fdce94180",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "43506e749d3f8d7e012a1bc4cb57b18a03ecfee6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "180cb74b64ec9ef6e5d637a2c1479e3dfb55a1d3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c88e9adfdb62bf9728dd853c5144d7a7bc0d81a9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3.16.39",
                            "lessThan": "3.17",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.1.30",
                            "lessThan": "4.2",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.4.16",
                            "lessThan": "4.5",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.6.5",
                            "lessThan": "4.7",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "sound/core/pcm.c"
                    ],
                    "versions": [
                        {
                            "version": "4.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.7",
                            "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-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": "4.7",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16.39"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.1.30"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4.16"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6.5"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/736881539d313a92fd5b67cc80ed0e0906d1f9d3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/df6fe78536c7ffd33381a789563495f757cd521c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d7245e5c7b6c4419f811494298215b07657e30e2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d80f03e41802c0605be48e6759659e10cf3117bd"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7c445a41b80be76d4474baef3e65ae5c815fae8f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/476a4e4dbd11635a4e00f0c2a9ef2e5a370f3d26"
                },
                {
                    "url": "https://git.kernel.org/stable/c/da3978f32236816cdaed20079c9c7d9d088eeed8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d5dd05c1f72a95d8ab06828d7272a185ad2b9185"
                }
            ],
            "title": "ALSA: pcm: Remove channel-map controls before freeing substreams",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}