CVE Database›Document archive›CVE-2026-23223

CVE-2026-23223

kernel: xfs: fix UAF in xchk_btree_check_block_owner

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · February 18, 2026

Updated · June 28, 2026

Description

A use-after-free flaw was found in the Linux kernel's XFS filesystem scrub functionality. In xchk_btree_check_block_owner(), the code dereferences bs->cur to check if it aliases with bs->sc->sa.bno_cur or bs->sc->sa.rmap_cur after these cursors may have already been freed. This incorrect temporal ordering was introduced when the xfs_btnum_t type was removed, potentially leading to a use-after-free condition during filesystem consistency checks.

Statement

This flaw occurs in the XFS online filesystem scrub code path, which is typically invoked via the xfs_scrub utility with elevated privileges. The race window is narrow and requires specific scrub operations on XFS filesystems. Systems not using XFS or not running filesystem scrub operations are unaffected.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-366 · Race Condition within a Thread