# CVE-2026-90181: ublk: avoid teardown retry loop on xarray allocation failure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-09-17T16:07:05.725Z
- **Modified:** 2026-10-19T09:19:08.123Z

## Who should check

- Anyone running Linux \>= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, \< b9cc6cc74daf6fef533dbe65d8cee779fea69600; \>= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, \< 4fd66a7f829f3f38f92a79081f0f2688aed644f0
- Anyone running Linux 7.1

## Description

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

ublk: avoid teardown retry loop on xarray allocation failure

\_\_ublk\_shmem\_remove\_ranges() removes matching maple tree ranges in
batches, but first stores each range into a temporary xarray so that the
pages can be unpinned after dropping the maple tree lock.

That temporary xarray is filled under the maple tree lock with
xa\_store(..., GFP\_ATOMIC). If the store fails before mas\_erase(), the
current range is left in the tree and the helper returns false. The
outer ublk\_shmem\_remove\_ranges() loop then immediately retries the same
range. While the atomic allocation keeps failing, the teardown path has
no forward progress.

The issue can be reproduced with radix\_tree\_node failslab injection after
a SHMEM\_ZC buffer has already been registered:

  \# Kernel config:
  \#   CONFIG\_BLK\_DEV\_UBLK=y
  \#   CONFIG\_DEBUG\_FS=y
  \#   CONFIG\_FAULT\_INJECTION=y
  \#   CONFIG\_FAULT\_INJECTION\_DEBUG\_FS=y
  \#   CONFIG\_FAILSLAB=y

  echo 10 \> /proc/sys/vm/nr\_hugepages
  mkdir -p /tmp/htlb
  mount -t hugetlbfs none /tmp/htlb
  fallocate -l 4M /tmp/htlb/ublk\_buf

  dev\_id=$(kublk add -t null --shmem\_zc \\
		--htlb /tmp/htlb/ublk\_buf \|
	   awk -F '\[ :\]' '/dev id/ {print $3}')

  echo 1 \> /sys/kernel/slab/radix\_tree\_node/failslab
  echo Y \> /sys/kernel/debug/failslab/cache-filter
  echo Y \> /sys/kernel/debug/failslab/ignore-gfp-wait
  echo 1 \> /sys/kernel/debug/failslab/interval
  echo -1 \> /sys/kernel/debug/failslab/times
  echo 100 \> /sys/kernel/debug/failslab/probability

  kublk del -n "$dev\_id"

On the unfixed kernel the delete command was still running after 3
seconds. Disabling failslab made it return. The fault-injection stack
showed:

  should\_failslab
  kmem\_cache\_alloc\_lru\_noprof
  \_\_xas\_nomem
  \_\_xa\_store
  xa\_store
  \_\_ublk\_shmem\_remove\_ranges
  ublk\_cdev\_rel
  ublk\_ctrl\_del\_dev

Remove the allocation from the teardown loop. Keep the existing batch
limit, but collect {base\_pfn, nr\_pages} pairs in a fixed-size stack array.
Once a matching range is found, the range is erased from the maple tree
before dropping the lock, so each successful scan makes progress without
depending on any GFP\_ATOMIC allocation.

With the same failslab settings, the fixed kernel completed
"kublk del -n $dev\_id" successfully in about 45 ms.

## Affected and fixed versions

- Linux: \>= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, \< b9cc6cc74daf6fef533dbe65d8cee779fea69600; \>= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, \< 4fd66a7f829f3f38f92a79081f0f2688aed644f0 (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 4fd66a7f829f3f38f92a79081f0f2688aed644f0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-90181.md
Affected: Linux >= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, < b9cc6cc74daf6fef533dbe65d8cee779fea69600; >= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, < 4fd66a7f829f3f38f92a79081f0f2688aed644f0; Linux 7.1
Fixed in: Linux 4fd66a7f829f3f38f92a79081f0f2688aed644f0

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-90181 being exploited?

There is no confirmed exploitation: CVE-2026-90181 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, \< b9cc6cc74daf6fef533dbe65d8cee779fea69600; \>= 309e02dccf64e1b7bd2067abedc270e33b0aadf3, \< 4fd66a7f829f3f38f92a79081f0f2688aed644f0; Linux 7.1.

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

Yes. Fixed in Linux 4fd66a7f829f3f38f92a79081f0f2688aed644f0. Upgrade Linux to 4fd66a7f829f3f38f92a79081f0f2688aed644f0 or later.

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

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/b9cc6cc74daf6fef533dbe65d8cee779fea69600>
- other: <https://git.kernel.org/stable/c/4fd66a7f829f3f38f92a79081f0f2688aed644f0>

## 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-90181>

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