{"api_version":"1","generated_at":"2026-12-04T01:35:54+00:00","cve":"CVE-2026-142950","urls":{"html":"https://cve.report/CVE-2026-142950","api":"https://cve.report/api/cve/CVE-2026-142950.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142950","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142950"},"summary":{"title":"nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()\n\nConnecting a controller to a new subsystem deadlocks when\nsysfs_create_link() fails in nvme_init_subsystem(), e.g., on an\nallocation failure.  The error path drops the last subsystem reference\nwith nvme_subsystems_lock held and nvme_destroy_subsystem() takes the\nsame lock again:\n\n  nvme nvme0: failed to create sysfs link from subsystem.\n  ============================================\n  WARNING: possible recursive locking detected\n  ...\n  nvmesubsys/95 is trying to acquire lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_destroy_subsystem+0x1b/0x1e0\n\n  but task is already holding lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_init_identify+0x81e/0x34b0\n  ...\n  Call Trace:\n   __mutex_lock+0x1a2/0x26e0\n   nvme_destroy_subsystem+0x1b/0x1e0\n   nvme_init_identify.cold+0x3bc/0x56f\n   nvme_init_ctrl_finish+0x1bc/0x7a0\n   nvme_loop_configure_admin_queue+0x205/0x2b0\n   nvme_loop_create_ctrl+0x480/0xd10\n   nvmf_dev_write+0x365/0x650\n   vfs_write+0x1e3/0x1250\n   ksys_write+0xfa/0x200\n   do_syscall_64+0xfb/0x590\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  ...\n  INFO: task nvmesubsys:95 blocked for more than 20 seconds.\n  INFO: task nvmesubsys:95 is blocked on a mutex likely owned by task nvmesubsys:95.\n\nEvery later controller setup or removal then waits for the lock too.\nThe nvme_validate_cntlid() error path for an existing subsystem does the\nsame put, and deadlocks the same way if the other references go away in\nbetween.\n\nDrop the lock before the put.  For a new subsystem, take it off the list\nfirst so another controller can't find it in between.  With the fix,\nthe connect fails and the next connect works.\n\nThis bug was identified and confirmed with the help of a deterministic\nhypervisor currently under development.  The C reproducer below however\nhits it within about 30s.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:14","updated_at":"2026-12-03 10:17:14"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/766d91e46033b65931fe1c83c3e4ddf9dee89a5a","name":"https://git.kernel.org/stable/c/766d91e46033b65931fe1c83c3e4ddf9dee89a5a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4ef5a909c2bc166c971d3cc53374367a57e2c6e8","name":"https://git.kernel.org/stable/c/4ef5a909c2bc166c971d3cc53374367a57e2c6e8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eada1e958642a56160d4634516e7fe8410d80757","name":"https://git.kernel.org/stable/c/eada1e958642a56160d4634516e7fe8410d80757","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/80f7f642a7bf38d65030aa0184f7deacfcd58d47","name":"https://git.kernel.org/stable/c/80f7f642a7bf38d65030aa0184f7deacfcd58d47","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ba1213be15c613a1c03db69ea6480ca140a6ca00","name":"https://git.kernel.org/stable/c/ba1213be15c613a1c03db69ea6480ca140a6ca00","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8684fcb836ab3df327b3d59cca8e570aa6bf3e08","name":"https://git.kernel.org/stable/c/8684fcb836ab3df327b3d59cca8e570aa6bf3e08","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142950","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142950","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 32fd90c407680935f84fb3ffc60fb3e020257d38 80f7f642a7bf38d65030aa0184f7deacfcd58d47 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 32fd90c407680935f84fb3ffc60fb3e020257d38 eada1e958642a56160d4634516e7fe8410d80757 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 32fd90c407680935f84fb3ffc60fb3e020257d38 8684fcb836ab3df327b3d59cca8e570aa6bf3e08 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 32fd90c407680935f84fb3ffc60fb3e020257d38 4ef5a909c2bc166c971d3cc53374367a57e2c6e8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 32fd90c407680935f84fb3ffc60fb3e020257d38 766d91e46033b65931fe1c83c3e4ddf9dee89a5a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 32fd90c407680935f84fb3ffc60fb3e020257d38 ba1213be15c613a1c03db69ea6480ca140a6ca00 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.276 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.227 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc4 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"142950","cve":"CVE-2026-142950","epss":"0.002150000","percentile":"0.126240000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/nvme/host/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"80f7f642a7bf38d65030aa0184f7deacfcd58d47","status":"affected","version":"32fd90c407680935f84fb3ffc60fb3e020257d38","versionType":"git"},{"lessThan":"eada1e958642a56160d4634516e7fe8410d80757","status":"affected","version":"32fd90c407680935f84fb3ffc60fb3e020257d38","versionType":"git"},{"lessThan":"8684fcb836ab3df327b3d59cca8e570aa6bf3e08","status":"affected","version":"32fd90c407680935f84fb3ffc60fb3e020257d38","versionType":"git"},{"lessThan":"4ef5a909c2bc166c971d3cc53374367a57e2c6e8","status":"affected","version":"32fd90c407680935f84fb3ffc60fb3e020257d38","versionType":"git"},{"lessThan":"766d91e46033b65931fe1c83c3e4ddf9dee89a5a","status":"affected","version":"32fd90c407680935f84fb3ffc60fb3e020257d38","versionType":"git"},{"lessThan":"ba1213be15c613a1c03db69ea6480ca140a6ca00","status":"affected","version":"32fd90c407680935f84fb3ffc60fb3e020257d38","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/nvme/host/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.2"},{"lessThan":"5.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.276","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.227","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc4","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.276","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.227","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc4","versionStartIncluding":"5.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()\n\nConnecting a controller to a new subsystem deadlocks when\nsysfs_create_link() fails in nvme_init_subsystem(), e.g., on an\nallocation failure.  The error path drops the last subsystem reference\nwith nvme_subsystems_lock held and nvme_destroy_subsystem() takes the\nsame lock again:\n\n  nvme nvme0: failed to create sysfs link from subsystem.\n  ============================================\n  WARNING: possible recursive locking detected\n  ...\n  nvmesubsys/95 is trying to acquire lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_destroy_subsystem+0x1b/0x1e0\n\n  but task is already holding lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_init_identify+0x81e/0x34b0\n  ...\n  Call Trace:\n   __mutex_lock+0x1a2/0x26e0\n   nvme_destroy_subsystem+0x1b/0x1e0\n   nvme_init_identify.cold+0x3bc/0x56f\n   nvme_init_ctrl_finish+0x1bc/0x7a0\n   nvme_loop_configure_admin_queue+0x205/0x2b0\n   nvme_loop_create_ctrl+0x480/0xd10\n   nvmf_dev_write+0x365/0x650\n   vfs_write+0x1e3/0x1250\n   ksys_write+0xfa/0x200\n   do_syscall_64+0xfb/0x590\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  ...\n  INFO: task nvmesubsys:95 blocked for more than 20 seconds.\n  INFO: task nvmesubsys:95 is blocked on a mutex likely owned by task nvmesubsys:95.\n\nEvery later controller setup or removal then waits for the lock too.\nThe nvme_validate_cntlid() error path for an existing subsystem does the\nsame put, and deadlocks the same way if the other references go away in\nbetween.\n\nDrop the lock before the put.  For a new subsystem, take it off the list\nfirst so another controller can't find it in between.  With the fix,\nthe connect fails and the next connect works.\n\nThis bug was identified and confirmed with the help of a deterministic\nhypervisor currently under development.  The C reproducer below however\nhits it within about 30s."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:16:37.048Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/80f7f642a7bf38d65030aa0184f7deacfcd58d47"},{"url":"https://git.kernel.org/stable/c/eada1e958642a56160d4634516e7fe8410d80757"},{"url":"https://git.kernel.org/stable/c/8684fcb836ab3df327b3d59cca8e570aa6bf3e08"},{"url":"https://git.kernel.org/stable/c/4ef5a909c2bc166c971d3cc53374367a57e2c6e8"},{"url":"https://git.kernel.org/stable/c/766d91e46033b65931fe1c83c3e4ddf9dee89a5a"},{"url":"https://git.kernel.org/stable/c/ba1213be15c613a1c03db69ea6480ca140a6ca00"}],"title":"nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142950","datePublished":"2026-12-03T09:16:37.048Z","dateReserved":"2026-12-03T03:10:28.339Z","dateUpdated":"2026-12-03T09:16:37.048Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:14","lastModifiedDate":"2026-12-03 10:17:14","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142950","Ordinal":"1","Title":"nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsyste","CVE":"CVE-2026-142950","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142950","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()\n\nConnecting a controller to a new subsystem deadlocks when\nsysfs_create_link() fails in nvme_init_subsystem(), e.g., on an\nallocation failure.  The error path drops the last subsystem reference\nwith nvme_subsystems_lock held and nvme_destroy_subsystem() takes the\nsame lock again:\n\n  nvme nvme0: failed to create sysfs link from subsystem.\n  ============================================\n  WARNING: possible recursive locking detected\n  ...\n  nvmesubsys/95 is trying to acquire lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_destroy_subsystem+0x1b/0x1e0\n\n  but task is already holding lock:\n  (nvme_subsystems_lock){+.+.}-{4:4}, at: nvme_init_identify+0x81e/0x34b0\n  ...\n  Call Trace:\n   __mutex_lock+0x1a2/0x26e0\n   nvme_destroy_subsystem+0x1b/0x1e0\n   nvme_init_identify.cold+0x3bc/0x56f\n   nvme_init_ctrl_finish+0x1bc/0x7a0\n   nvme_loop_configure_admin_queue+0x205/0x2b0\n   nvme_loop_create_ctrl+0x480/0xd10\n   nvmf_dev_write+0x365/0x650\n   vfs_write+0x1e3/0x1250\n   ksys_write+0xfa/0x200\n   do_syscall_64+0xfb/0x590\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  ...\n  INFO: task nvmesubsys:95 blocked for more than 20 seconds.\n  INFO: task nvmesubsys:95 is blocked on a mutex likely owned by task nvmesubsys:95.\n\nEvery later controller setup or removal then waits for the lock too.\nThe nvme_validate_cntlid() error path for an existing subsystem does the\nsame put, and deadlocks the same way if the other references go away in\nbetween.\n\nDrop the lock before the put.  For a new subsystem, take it off the list\nfirst so another controller can't find it in between.  With the fix,\nthe connect fails and the next connect works.\n\nThis bug was identified and confirmed with the help of a deterministic\nhypervisor currently under development.  The C reproducer below however\nhits it within about 30s.","Type":"Description","Title":"nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsyste"}]}}}