{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "bf74ad5bc41727d5f2f1c6bedb2c1fac394de731"
            },
            {
              "fixed": "5ae6b6c587cea50acf1f39a815906422e607eb68"
            },
            {
              "fixed": "cb00e496cda53de377d5dd5fc68210566b9643d5"
            },
            {
              "fixed": "6d2b0763c98c0e09208bb4d75b12de6414b3ba20"
            },
            {
              "fixed": "7bbef48f0b91095be567ea1dda5f9aead1d61a9d"
            },
            {
              "fixed": "d4bded35edf8d9cd5133dd934a71c3268f89f501"
            },
            {
              "fixed": "6ad5071fbef6e65beb33c099e282dc89f0e2f716"
            },
            {
              "fixed": "0f554506a3fc6a21e714adf38cc3eb0ffe1bb452"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.16"
            },
            {
              "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-142805.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndriver core: fix parent lock use-after-free on USB disconnect\n\nUSB interfaces should be probed with their parent USB device lock held\nand the USB bus therefore sets the need_parent_lock bus flag so that\ndriver core takes the parent lock when needed.\n\nDriver core is only guaranteed to hold a reference to the parent device\nduring initial probe however and nothing prevents the device and its\nparent from being deregistered and the parent potentially freed, for\nexample, while iterating over devices in driver_attach() or\nbus_rescan_devices_helper().\n\nSince commit 524134d42231 (\"USB: don't cancel queued resets when\nunbinding drivers\") USB interfaces hold a reference to their parent USB\ndevice, but a parent hub may still go away while probing a USB device\n(e.g. via the drivers_probe sysfs interface). This can lead to a\nuse-after-free when taking the parent device lock before checking the\ndevice-\u003ep-\u003edead flag of the device being probed.\n\nAs only USB interfaces actually need the parent lock, make the\nneed_parent_lock feature even more fine grained by making it a device\ntype rather than bus feature. By requiring that any users also make sure\nthat their devices hold a reference to their parents (like USB does),\ndriver core can lock a device and its parent without first checking if\nthe device has been deregistered.\n\nNote that this will also increase parallelism when using asynchronous\nprobe as USB devices connected to the same hub can now be probed in\nparallel.\n\n[ Fix mention of bus vs. device type in __device_driver_{un}lock().\n  - Danilo ]",
  "id": "CVE-2026-142805",
  "modified": "2026-12-03T04:45:20.273828703Z",
  "published": "2026-12-03T03:11:33.159Z",
  "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/0f554506a3fc6a21e714adf38cc3eb0ffe1bb452"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5ae6b6c587cea50acf1f39a815906422e607eb68"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6ad5071fbef6e65beb33c099e282dc89f0e2f716"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6d2b0763c98c0e09208bb4d75b12de6414b3ba20"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7bbef48f0b91095be567ea1dda5f9aead1d61a9d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cb00e496cda53de377d5dd5fc68210566b9643d5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d4bded35edf8d9cd5133dd934a71c3268f89f501"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142805.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142805"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "driver core: fix parent lock use-after-free on USB disconnect"
}