{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "67c618c90679b03ff615a003852ca43752fd3ee4"
            },
            {
              "fixed": "bce4f04edc756f910ce1b87f3a505e6f2aa3da44"
            },
            {
              "fixed": "d8421d0db7572cd4f3a2779584552bfb1575ad43"
            },
            {
              "fixed": "9c4530b09d7a0129557ed01208f1b9360d23fe11"
            },
            {
              "fixed": "d93d8307024eb141c8d1b127c01c6c33f1a2d6c4"
            },
            {
              "fixed": "04d11c4db269e76ded488e650af9b70d523c6cee"
            },
            {
              "fixed": "aa7e5d71f90cb0048c0143ccdb6199acc2a6f66d"
            },
            {
              "fixed": "d4febca239be3c91498762dd0535a87d4af1eabc"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142800.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect\n\nA use-after-free can be triggered via SNDRV_CTL_IOCTL_ELEM_ADD when a\nUSB audio card is disconnected while an ELEM_ADD ioctl is in flight.\n\nThe reproducer parks the ioctl thread inside copy_from_user() using\nuserfaultfd, then tears down the USB device.  Unlike every other\nALSA control _user handler (ELEM_INFO, ELEM_READ, ELEM_WRITE, TLV_*),\nsnd_ctl_elem_add_user() never calls snd_power_ref_and_wait(), so the\nparked thread holds no power reference.  snd_card_disconnect() therefore\ncannot observe it via snd_power_sync_ref() and proceeds unimpeded:\n\n  1. card-\u003eshutdown is set to 1\n  2. device_del(\u0026card-\u003ecard_dev) drops the kobject reference on the\n     parent USB interface device (card-\u003edev = \u0026intf-\u003edev)\n  3. The USB core drops its own reference and calls device_release(),\n     freeing the struct usb_interface, including the embedded struct\n     device that card-\u003edev points to\n\nWhen the userfaultfd is resolved and the thread resumes,\nsnd_ctl_elem_add() acquires controls_rwsem without checking\ncard-\u003eshutdown and calls __snd_ctl_add_replace().  Because the\nreproducer pre-registered the same control, the CTL_ADD_EXCLUSIVE\npath calls dev_err(card-\u003edev, ...) on the freed USB interface:\n\n  KASAN: slab-use-after-free Read in __dev_printk\n\nAdd a card-\u003eshutdown guard immediately after acquiring controls_rwsem\nin snd_ctl_elem_add().  At that point card-\u003eshutdown is guaranteed to\nbe stable: snd_card_disconnect() sets it before freeing the parent\ndevice, and it never transitions back to 0.  A thread that acquired\nthe lock before disconnect sees shutdown=0 and holds the write lock\nthrough the rest of the operation, preventing concurrent disconnect\nfrom proceeding past its own controls_rwsem-less shutdown=1 store\n(which happened earlier, outside the lock) from racing with dev_err().",
  "id": "CVE-2026-142800",
  "modified": "2026-12-03T04:46:09.140614342Z",
  "published": "2026-12-03T03:11:30.459Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/04d11c4db269e76ded488e650af9b70d523c6cee"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/67c618c90679b03ff615a003852ca43752fd3ee4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9c4530b09d7a0129557ed01208f1b9360d23fe11"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/aa7e5d71f90cb0048c0143ccdb6199acc2a6f66d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bce4f04edc756f910ce1b87f3a505e6f2aa3da44"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d4febca239be3c91498762dd0535a87d4af1eabc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d8421d0db7572cd4f3a2779584552bfb1575ad43"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d93d8307024eb141c8d1b127c01c6c33f1a2d6c4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142800.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142800"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect"
}