{"api_version":"1","generated_at":"2026-12-03T04:50:27+00:00","cve":"CVE-2026-142792","urls":{"html":"https://cve.report/CVE-2026-142792","api":"https://cve.report/api/cve/CVE-2026-142792.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142792","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142792"},"summary":{"title":"resource: report a devm_request_resource() conflict under the lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nresource: report a devm_request_resource() conflict under the lock\n\ndevm_request_resource() calls request_resource_conflict(), which takes\nresource_lock, tries to insert the new resource and returns a pointer to\nthe conflicting resource after dropping the lock.  The error message is\nthen formatted from that pointer: conflict->name and the %pR argument\nread the name, start, end, flags and desc of a resource that nothing\npins any more.  The owner of the conflicting resource may call\nrelease_resource() and free it the moment the lock is dropped.\n\nThe conflicting resource normally belongs to another device.  With two\ndevices whose drivers claim overlapping regions (two PCI host bridges\nwhose \"ranges\" windows overlap, two instances of a controller on the\nsame aperture, or a stale claim an administrator is replacing), the\nfollowing interleaving reads freed memory:\n\n  CPU 0: driver B probe                  CPU 1: driver A unbind\n  devm_request_resource(devB, root, resB)\n    request_resource_conflict()\n      write_lock(&resource_lock)\n      __request_resource() -> resA\n      write_unlock(&resource_lock)\n                                         devres_release_all(devA)\n                                           devm_resource_release()\n                                             release_resource(resA)\n                                         put_device() -> kfree(resA)\n    dev_err(..., resA->name, resA)        use after free\n\nBoth halves are reachable from userspace on any kernel: a write to the\n\"unbind\" file of the driver that holds the region and a write to the\n\"bind\" file of the driver that wants it.  One in-tree path is\ndrivers/pci/bus.c devm_request_pci_bus_resources(), called from host\nbridge probe for every bridge window; the windows are the embedded\nstruct resource of kzalloc'ed resource_entry objects that\npci_free_resource_list() frees when the other bridge is released.\nIn the common case the \"resource collision\" message is garbled; with\nthe slab object poisoned (CONFIG_SLUB_DEBUG) or reused, formatting\nconflict->name oopses, and KASAN reports a slab-use-after-free read in\ndevm_request_resource().  All of this happens in a probe that is\nalready failing with -EBUSY.  The window is a few hundred instructions\nwide and exists only when two devices actually collide, so the race\nhas not been observed outside of analysis.\n\nDo the same here: take resource_lock, insert with __request_resource()\nand print the diagnostic while the lock still keeps the conflicting\nresource in the tree, then drop the lock.  The return values and the\ndevres handling are unchanged.\n\nThe change was built for x86_64 and RISC-V; the resource KUnit tests\npass on both.\n\nFound by formal verification of kernel/resource.c against the kernel\nbinary.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:12","updated_at":"2026-12-03 04:18:12"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0","name":"https://git.kernel.org/stable/c/3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/14ab6a4761d2e4a02cb6859aee19788f38a24056","name":"https://git.kernel.org/stable/c/14ab6a4761d2e4a02cb6859aee19788f38a24056","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4f071697d1b231c1059b771ef61d4335f1d20d6f","name":"https://git.kernel.org/stable/c/4f071697d1b231c1059b771ef61d4335f1d20d6f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b3d771544f7d77bf191c7cc47c1f3f6feec1e05b","name":"https://git.kernel.org/stable/c/b3d771544f7d77bf191c7cc47c1f3f6feec1e05b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6cfde28fca86aedb7084ba3dc669153f32ffda83","name":"https://git.kernel.org/stable/c/6cfde28fca86aedb7084ba3dc669153f32ffda83","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d2f7bdfdeac8137e942b32e0badc40e181127d7b","name":"https://git.kernel.org/stable/c/d2f7bdfdeac8137e942b32e0badc40e181127d7b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/132b34e1e7fcc09955bda91ac36e9b6c1126b90c","name":"https://git.kernel.org/stable/c/132b34e1e7fcc09955bda91ac36e9b6c1126b90c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/995342b317b1ca8a2b55ef4d7849f6a2ba0200ed","name":"https://git.kernel.org/stable/c/995342b317b1ca8a2b55ef4d7849f6a2ba0200ed","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142792","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142792","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 132b34e1e7fcc09955bda91ac36e9b6c1126b90c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 995342b317b1ca8a2b55ef4d7849f6a2ba0200ed git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 4f071697d1b231c1059b771ef61d4335f1d20d6f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 14ab6a4761d2e4a02cb6859aee19788f38a24056 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 b3d771544f7d77bf191c7cc47c1f3f6feec1e05b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 6cfde28fca86aedb7084ba3dc669153f32ffda83 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d38821cbcf51292cd5a23469d03bd38932a3ba9 d2f7bdfdeac8137e942b32e0badc40e181127d7b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/resource.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"132b34e1e7fcc09955bda91ac36e9b6c1126b90c","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"},{"lessThan":"3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"},{"lessThan":"995342b317b1ca8a2b55ef4d7849f6a2ba0200ed","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"},{"lessThan":"4f071697d1b231c1059b771ef61d4335f1d20d6f","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"},{"lessThan":"14ab6a4761d2e4a02cb6859aee19788f38a24056","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"},{"lessThan":"b3d771544f7d77bf191c7cc47c1f3f6feec1e05b","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"},{"lessThan":"6cfde28fca86aedb7084ba3dc669153f32ffda83","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"},{"lessThan":"d2f7bdfdeac8137e942b32e0badc40e181127d7b","status":"affected","version":"8d38821cbcf51292cd5a23469d03bd38932a3ba9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/resource.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.18"},{"lessThan":"3.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nresource: report a devm_request_resource() conflict under the lock\n\ndevm_request_resource() calls request_resource_conflict(), which takes\nresource_lock, tries to insert the new resource and returns a pointer to\nthe conflicting resource after dropping the lock.  The error message is\nthen formatted from that pointer: conflict->name and the %pR argument\nread the name, start, end, flags and desc of a resource that nothing\npins any more.  The owner of the conflicting resource may call\nrelease_resource() and free it the moment the lock is dropped.\n\nThe conflicting resource normally belongs to another device.  With two\ndevices whose drivers claim overlapping regions (two PCI host bridges\nwhose \"ranges\" windows overlap, two instances of a controller on the\nsame aperture, or a stale claim an administrator is replacing), the\nfollowing interleaving reads freed memory:\n\n  CPU 0: driver B probe                  CPU 1: driver A unbind\n  devm_request_resource(devB, root, resB)\n    request_resource_conflict()\n      write_lock(&resource_lock)\n      __request_resource() -> resA\n      write_unlock(&resource_lock)\n                                         devres_release_all(devA)\n                                           devm_resource_release()\n                                             release_resource(resA)\n                                         put_device() -> kfree(resA)\n    dev_err(..., resA->name, resA)        use after free\n\nBoth halves are reachable from userspace on any kernel: a write to the\n\"unbind\" file of the driver that holds the region and a write to the\n\"bind\" file of the driver that wants it.  One in-tree path is\ndrivers/pci/bus.c devm_request_pci_bus_resources(), called from host\nbridge probe for every bridge window; the windows are the embedded\nstruct resource of kzalloc'ed resource_entry objects that\npci_free_resource_list() frees when the other bridge is released.\nIn the common case the \"resource collision\" message is garbled; with\nthe slab object poisoned (CONFIG_SLUB_DEBUG) or reused, formatting\nconflict->name oopses, and KASAN reports a slab-use-after-free read in\ndevm_request_resource().  All of this happens in a probe that is\nalready failing with -EBUSY.  The window is a few hundred instructions\nwide and exists only when two devices actually collide, so the race\nhas not been observed outside of analysis.\n\nDo the same here: take resource_lock, insert with __request_resource()\nand print the diagnostic while the lock still keeps the conflicting\nresource in the tree, then drop the lock.  The return values and the\ndevres handling are unchanged.\n\nThe change was built for x86_64 and RISC-V; the resource KUnit tests\npass on both.\n\nFound by formal verification of kernel/resource.c against the kernel\nbinary."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:11:26.001Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/132b34e1e7fcc09955bda91ac36e9b6c1126b90c"},{"url":"https://git.kernel.org/stable/c/3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0"},{"url":"https://git.kernel.org/stable/c/995342b317b1ca8a2b55ef4d7849f6a2ba0200ed"},{"url":"https://git.kernel.org/stable/c/4f071697d1b231c1059b771ef61d4335f1d20d6f"},{"url":"https://git.kernel.org/stable/c/14ab6a4761d2e4a02cb6859aee19788f38a24056"},{"url":"https://git.kernel.org/stable/c/b3d771544f7d77bf191c7cc47c1f3f6feec1e05b"},{"url":"https://git.kernel.org/stable/c/6cfde28fca86aedb7084ba3dc669153f32ffda83"},{"url":"https://git.kernel.org/stable/c/d2f7bdfdeac8137e942b32e0badc40e181127d7b"}],"title":"resource: report a devm_request_resource() conflict under the lock","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142792","datePublished":"2026-12-03T03:11:26.001Z","dateReserved":"2026-12-03T03:10:28.329Z","dateUpdated":"2026-12-03T03:11:26.001Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:12","lastModifiedDate":"2026-12-03 04:18:12","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142792","Ordinal":"1","Title":"resource: report a devm_request_resource() conflict under the lo","CVE":"CVE-2026-142792","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142792","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nresource: report a devm_request_resource() conflict under the lock\n\ndevm_request_resource() calls request_resource_conflict(), which takes\nresource_lock, tries to insert the new resource and returns a pointer to\nthe conflicting resource after dropping the lock.  The error message is\nthen formatted from that pointer: conflict->name and the %pR argument\nread the name, start, end, flags and desc of a resource that nothing\npins any more.  The owner of the conflicting resource may call\nrelease_resource() and free it the moment the lock is dropped.\n\nThe conflicting resource normally belongs to another device.  With two\ndevices whose drivers claim overlapping regions (two PCI host bridges\nwhose \"ranges\" windows overlap, two instances of a controller on the\nsame aperture, or a stale claim an administrator is replacing), the\nfollowing interleaving reads freed memory:\n\n  CPU 0: driver B probe                  CPU 1: driver A unbind\n  devm_request_resource(devB, root, resB)\n    request_resource_conflict()\n      write_lock(&resource_lock)\n      __request_resource() -> resA\n      write_unlock(&resource_lock)\n                                         devres_release_all(devA)\n                                           devm_resource_release()\n                                             release_resource(resA)\n                                         put_device() -> kfree(resA)\n    dev_err(..., resA->name, resA)        use after free\n\nBoth halves are reachable from userspace on any kernel: a write to the\n\"unbind\" file of the driver that holds the region and a write to the\n\"bind\" file of the driver that wants it.  One in-tree path is\ndrivers/pci/bus.c devm_request_pci_bus_resources(), called from host\nbridge probe for every bridge window; the windows are the embedded\nstruct resource of kzalloc'ed resource_entry objects that\npci_free_resource_list() frees when the other bridge is released.\nIn the common case the \"resource collision\" message is garbled; with\nthe slab object poisoned (CONFIG_SLUB_DEBUG) or reused, formatting\nconflict->name oopses, and KASAN reports a slab-use-after-free read in\ndevm_request_resource().  All of this happens in a probe that is\nalready failing with -EBUSY.  The window is a few hundred instructions\nwide and exists only when two devices actually collide, so the race\nhas not been observed outside of analysis.\n\nDo the same here: take resource_lock, insert with __request_resource()\nand print the diagnostic while the lock still keeps the conflicting\nresource in the tree, then drop the lock.  The return values and the\ndevres handling are unchanged.\n\nThe change was built for x86_64 and RISC-V; the resource KUnit tests\npass on both.\n\nFound by formal verification of kernel/resource.c against the kernel\nbinary.","Type":"Description","Title":"resource: report a devm_request_resource() conflict under the lo"}]}}}