# CVE-2026-43121: io\_uring/zcrx: fix user\_ref race between scrub and refill paths

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.11% (percentile 0, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-05-06T11:27:08.216Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Anyone running Linux \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< a94f096e28bfc7975163a6b80f1c8f323efe317a; \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< 485dc691257b96e6d3bdc25b0eff2daadcc5c46c; \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< 003049b1c4fb8aabb93febb7d1e49004f6ad653b
- Anyone running Linux 6.15

## Description

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

io\_uring/zcrx: fix user\_ref race between scrub and refill paths

The io\_zcrx\_put\_niov\_uref() function uses a non-atomic
check-then-decrement pattern (atomic\_read followed by separate
atomic\_dec) to manipulate user\_refs. This is serialized against other
callers by rq\_lock, but io\_zcrx\_scrub() modifies the same counter with
atomic\_xchg() WITHOUT holding rq\_lock.

On SMP systems, the following race exists:

  CPU0 (refill, holds rq\_lock)          CPU1 (scrub, no rq\_lock)
  put\_niov\_uref:
    atomic\_read(uref) - 1
    // window opens
                                        atomic\_xchg(uref, 0) - 1
                                        return\_niov\_freelist(niov) \[PUSH \#1\]
    // window closes
    atomic\_dec(uref) - wraps to -1
    returns true
    return\_niov(niov)
    return\_niov\_freelist(niov)           \[PUSH \#2: DOUBLE-FREE\]

The same niov is pushed to the freelist twice, causing free\_count to
exceed nr\_iovs. Subsequent freelist pushes then perform an out-of-bounds
write (a u32 value) past the kvmalloc'd freelist array into the adjacent
slab object.

Fix this by replacing the non-atomic read-then-dec in
io\_zcrx\_put\_niov\_uref() with an atomic\_try\_cmpxchg loop that atomically
tests and decrements user\_refs. This makes the operation safe against
concurrent atomic\_xchg from scrub without requiring scrub to acquire
rq\_lock.

\[pavel: removed a warning and a comment\]

## Affected and fixed versions

- Linux: \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< a94f096e28bfc7975163a6b80f1c8f323efe317a; \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< 485dc691257b96e6d3bdc25b0eff2daadcc5c46c; \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< 003049b1c4fb8aabb93febb7d1e49004f6ad653b (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 003049b1c4fb8aabb93febb7d1e49004f6ad653b 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-43121. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43121.md
Affected: Linux >= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, < a94f096e28bfc7975163a6b80f1c8f323efe317a; >= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, < 485dc691257b96e6d3bdc25b0eff2daadcc5c46c; >= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, < 003049b1c4fb8aabb93febb7d1e49004f6ad653b; Linux 6.15
Fixed in: Linux 485dc691257b96e6d3bdc25b0eff2daadcc5c46c, Linux 003049b1c4fb8aabb93febb7d1e49004f6ad653b

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

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< a94f096e28bfc7975163a6b80f1c8f323efe317a; \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< 485dc691257b96e6d3bdc25b0eff2daadcc5c46c; \>= 34a3e60821ab9f335a58d43a88cccdbefdebdec3, \< 003049b1c4fb8aabb93febb7d1e49004f6ad653b; Linux 6.15.

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

Yes. Fixed in Linux 485dc691257b96e6d3bdc25b0eff2daadcc5c46c, Linux 003049b1c4fb8aabb93febb7d1e49004f6ad653b. Upgrade Linux to 003049b1c4fb8aabb93febb7d1e49004f6ad653b or later.

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

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

- patch: <https://git.kernel.org/stable/c/a94f096e28bfc7975163a6b80f1c8f323efe317a>
- patch: <https://git.kernel.org/stable/c/485dc691257b96e6d3bdc25b0eff2daadcc5c46c>
- patch: <https://git.kernel.org/stable/c/003049b1c4fb8aabb93febb7d1e49004f6ad653b>

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

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