CVE-2026-43121

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]
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

11 Nov 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: io_uring/zcrx: solución para la condición de carrera de user_ref entre las rutas de scrub y refill La función io_zcrx_put_niov_uref() utiliza un patrón no atómico de ’verificar-y-luego-decrementar’ (atomic_read seguido de un atomic_dec separado) para manipular los user_refs. Esto se serializa frente a otros llamadores mediante rq_lock, pero io_zcrx_scrub() modifica el mismo contador con atomic_xchg() SIN mantener rq_lock. En sistemas SMP, existe la siguiente condición de carrera: CPU0 (refill, mantiene rq_lock) CPU1 (scrub, sin rq_lock) put_niov_uref: atomic_read(uref) - 1 // la ventana se abre atomic_xchg(uref, 0) - 1 return_niov_freelist(niov) [PUSH #1] // la ventana se cierra atomic_dec(uref) - se envuelve a -1 devuelve verdadero return_niov(niov) return_niov_freelist(niov) [PUSH #2: DOBLE LIBERACIÓN] El mismo niov se empuja a la freelist dos veces, haciendo que free_count exceda nr_iovs. Los empujes subsiguientes a la freelist luego realizan una escritura fuera de límites (un valor u32) más allá del array de freelist asignado con kvmalloc hacia el objeto slab adyacente. Solucione esto reemplazando la lectura-y-luego-decremento no atómica en io_zcrx_put_niov_uref() con un bucle atomic_try_cmpxchg que prueba y decrementa atómicamente los user_refs. Esto hace que la operación sea segura contra atomic_xchg concurrente de scrub sin requerir que scrub adquiera rq_lock. [pavel: se eliminó una advertencia y un comentario]

12 May 2026, 21:17

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 4.7
CWE CWE-362
First Time Linux linux Kernel
Linux
References () https://git.kernel.org/stable/c/003049b1c4fb8aabb93febb7d1e49004f6ad653b - () https://git.kernel.org/stable/c/003049b1c4fb8aabb93febb7d1e49004f6ad653b - Patch
References () https://git.kernel.org/stable/c/485dc691257b96e6d3bdc25b0eff2daadcc5c46c - () https://git.kernel.org/stable/c/485dc691257b96e6d3bdc25b0eff2daadcc5c46c - Patch
References () https://git.kernel.org/stable/c/a94f096e28bfc7975163a6b80f1c8f323efe317a - () https://git.kernel.org/stable/c/a94f096e28bfc7975163a6b80f1c8f323efe317a - Patch
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

06 May 2026, 12:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-06 12:16

Updated : 2026-11-11 21:10


NVD link : CVE-2026-43121

Mitre link : CVE-2026-43121

CVE.ORG link : CVE-2026-43121


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-362

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')