GHSA-MCWF-G764-PP76

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

ALSA: pcm: Remove channel-map controls before freeing substreams

A late HDA codec bind on an already registered card builds new PCMs before registering them. add_std_chmaps() publishes generic channel-map controls during this BUILD stage. If an earlier chmap succeeds and a later allocation fails, probe cleanup frees the BUILD PCM while the card's control device remains accessible.

These generic controls are added directly by snd_pcm_add_chmap_ctls(); snd_hda_ctls_clear() only removes codec-tracked mixer controls. BUILD devices also skip dev_disconnect. snd_pcm_free_stream() then frees the substreams before free_chmap() withdraws their generic control:

Late HDA codec bind / rollback Control GET on the live card ------------------------------ ---------------------------- hda_codec_driver_probe() snd_hda_codec_build_pcms() PCM is BUILD snd_hda_codec_build_controls() add_std_chmaps() publish an earlier chmap later allocation: -ENOMEM snd_hda_codec_cleanup_for_unbind() snd_hda_ctls_clear() generic chmap remains codec_release_pcms() snd_device_free() BUILD: skip dev_disconnect snd_pcm_free_stream() kfree(substream) snd_ctl_elem_read() down_read(controls_rwsem) pcm_chmap_ctl_get() walk freed substream free_chmap() snd_ctl_remove() wait for GET up_read(controls_rwsem)

The control read lock cannot protect a substream already freed before control removal starts. The failure above occurs before snd_card_register(), so the PCM has not transitioned out of BUILD.

Move free_chmap() before the substream free loop. Its snd_ctl_remove() withdraws the control and drains readers under controls_rwsem before any substream is released. Normal registered-device disconnect already removes the control, so the later call remains harmless on that path.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139277"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:18:50Z",
    "severity": null
  },
  "details": "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\u0027s 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.",
  "id": "GHSA-mcwf-g764-pp76",
  "modified": "2026-11-30T15:32:25Z",
  "published": "2026-11-30T15:32:25Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139277"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/476a4e4dbd11635a4e00f0c2a9ef2e5a370f3d26"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/736881539d313a92fd5b67cc80ed0e0906d1f9d3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7c445a41b80be76d4474baef3e65ae5c815fae8f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d5dd05c1f72a95d8ab06828d7272a185ad2b9185"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d7245e5c7b6c4419f811494298215b07657e30e2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d80f03e41802c0605be48e6759659e10cf3117bd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/da3978f32236816cdaed20079c9c7d9d088eeed8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/df6fe78536c7ffd33381a789563495f757cd521c"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.