# CVE-2026-142792: resource: report a devm\_request\_resource() conflict under the lock

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:26.001Z
- **Modified:** 2026-12-03T04:18:12.523Z

## Who should check

- Anyone running Linux \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 132b34e1e7fcc09955bda91ac36e9b6c1126b90c; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 995342b317b1ca8a2b55ef4d7849f6a2ba0200ed; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 4f071697d1b231c1059b771ef61d4335f1d20d6f; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 14ab6a4761d2e4a02cb6859aee19788f38a24056; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< b3d771544f7d77bf191c7cc47c1f3f6feec1e05b; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 6cfde28fca86aedb7084ba3dc669153f32ffda83; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< d2f7bdfdeac8137e942b32e0badc40e181127d7b
- Anyone running Linux 3.18

## Description

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

resource: report a devm\_request\_resource() conflict under the lock

devm\_request\_resource() calls request\_resource\_conflict(), which takes
resource\_lock, tries to insert the new resource and returns a pointer to
the conflicting resource after dropping the lock.  The error message is
then formatted from that pointer: conflict-\>name and the %pR argument
read the name, start, end, flags and desc of a resource that nothing
pins any more.  The owner of the conflicting resource may call
release\_resource() and free it the moment the lock is dropped.

The conflicting resource normally belongs to another device.  With two
devices whose drivers claim overlapping regions (two PCI host bridges
whose "ranges" windows overlap, two instances of a controller on the
same aperture, or a stale claim an administrator is replacing), the
following interleaving reads freed memory:

  CPU 0: driver B probe                  CPU 1: driver A unbind
  devm\_request\_resource(devB, root, resB)
    request\_resource\_conflict()
      write\_lock(&resource\_lock)
      \_\_request\_resource() -\> resA
      write\_unlock(&resource\_lock)
                                         devres\_release\_all(devA)
                                           devm\_resource\_release()
                                             release\_resource(resA)
                                         put\_device() -\> kfree(resA)
    dev\_err(..., resA-\>name, resA)        use after free

Both halves are reachable from userspace on any kernel: a write to the
"unbind" file of the driver that holds the region and a write to the
"bind" file of the driver that wants it.  One in-tree path is
drivers/pci/bus.c devm\_request\_pci\_bus\_resources(), called from host
bridge probe for every bridge window; the windows are the embedded
struct resource of kzalloc'ed resource\_entry objects that
pci\_free\_resource\_list() frees when the other bridge is released.
In the common case the "resource collision" message is garbled; with
the slab object poisoned (CONFIG\_SLUB\_DEBUG) or reused, formatting
conflict-\>name oopses, and KASAN reports a slab-use-after-free read in
devm\_request\_resource().  All of this happens in a probe that is
already failing with -EBUSY.  The window is a few hundred instructions
wide and exists only when two devices actually collide, so the race
has not been observed outside of analysis.

Do the same here: take resource\_lock, insert with \_\_request\_resource()
and print the diagnostic while the lock still keeps the conflicting
resource in the tree, then drop the lock.  The return values and the
devres handling are unchanged.

The change was built for x86\_64 and RISC-V; the resource KUnit tests
pass on both.

Found by formal verification of kernel/resource.c against the kernel
binary.

## Affected and fixed versions

- Linux: \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 132b34e1e7fcc09955bda91ac36e9b6c1126b90c; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 995342b317b1ca8a2b55ef4d7849f6a2ba0200ed; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 4f071697d1b231c1059b771ef61d4335f1d20d6f; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 14ab6a4761d2e4a02cb6859aee19788f38a24056; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< b3d771544f7d77bf191c7cc47c1f3f6feec1e05b; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 6cfde28fca86aedb7084ba3dc669153f32ffda83; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< d2f7bdfdeac8137e942b32e0badc40e181127d7b (cvelist)
- Linux: 3.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142792. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142792.md
Affected: Linux >= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, < 132b34e1e7fcc09955bda91ac36e9b6c1126b90c; >= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, < 3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0; >= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, < 995342b317b1ca8a2b55ef4d7849f6a2ba0200ed; >= 8d38821cbcf51292cd5a234…
Fixed in: Linux 132b34e1e7fcc09955bda91ac36e9b6c1126b90c, Linux 3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0, Linux 995342b317b1ca8a2b55ef4d7849f6a2ba0200ed, Linux 4f071697d1b231c1059b771ef61d4335f1d20d6f, Linux 14ab6a4761d2e4a02cb6859aee19788f38a24056, Linux 6cfde28fca86aedb7084ba3dc669153f32ffda83

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142792 being exploited?

There is no confirmed exploitation: CVE-2026-142792 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142792?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142792?

Linux \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 132b34e1e7fcc09955bda91ac36e9b6c1126b90c; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 995342b317b1ca8a2b55ef4d7849f6a2ba0200ed; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 4f071697d1b231c1059b771ef61d4335f1d20d6f; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 14ab6a4761d2e4a02cb6859aee19788f38a24056; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< b3d771544f7d77bf191c7cc47c1f3f6feec1e05b; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< 6cfde28fca86aedb7084ba3dc669153f32ffda83; \>= 8d38821cbcf51292cd5a23469d03bd38932a3ba9, \< d2f7bdfdeac8137e942b32e0badc40e181127d7b; Linux 3.18.

### Is there a fix for CVE-2026-142792?

Yes. Fixed in Linux 132b34e1e7fcc09955bda91ac36e9b6c1126b90c, Linux 3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0, Linux 995342b317b1ca8a2b55ef4d7849f6a2ba0200ed, Linux 4f071697d1b231c1059b771ef61d4335f1d20d6f, Linux 14ab6a4761d2e4a02cb6859aee19788f38a24056, Linux 6cfde28fca86aedb7084ba3dc669153f32ffda83. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142792?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/132b34e1e7fcc09955bda91ac36e9b6c1126b90c>
- other: <https://git.kernel.org/stable/c/3e8d01c630d3cc781a36cfe29a6c20c0a12bd2d0>
- other: <https://git.kernel.org/stable/c/995342b317b1ca8a2b55ef4d7849f6a2ba0200ed>
- other: <https://git.kernel.org/stable/c/4f071697d1b231c1059b771ef61d4335f1d20d6f>
- other: <https://git.kernel.org/stable/c/14ab6a4761d2e4a02cb6859aee19788f38a24056>
- other: <https://git.kernel.org/stable/c/b3d771544f7d77bf191c7cc47c1f3f6feec1e05b>
- other: <https://git.kernel.org/stable/c/6cfde28fca86aedb7084ba3dc669153f32ffda83>
- other: <https://git.kernel.org/stable/c/d2f7bdfdeac8137e942b32e0badc40e181127d7b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142792>

HTML: <https://flawdb.com/CVE-2026-142792> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142792>
