CVE-2026-64187

Source
https://cve.org/CVERecord?id=CVE-2026-64187
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64187.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64187
Downstream
Published
2026-07-20T16:27:46.653Z
Modified
2026-07-22T05:33:07.269198624Z
Summary
xfs: fail recovery on a committed log item with no regions
Details

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

xfs: fail recovery on a committed log item with no regions

If the first op of a transaction is a bare transaction header (len == sizeof(struct xfstransheader)), xlogrecoveraddtotrans() adds an item but no region, leaving it on ritemq with ricnt == 0 and ri_buf == NULL.

The header can be split across op records, so later ops may still add regions; the item is only invalid if the transaction commits with none. The runtime commit path never emits such a transaction, so this only happens on a crafted log. It came from an AI-assisted code audit of the recovery parser.

xlogrecoverreordertrans() calls ITEMTYPE() on the item, which reads *(unsigned short *)item->ribuf[0].iovbase and faults on the NULL ribuf. Reject it there, before the commit handlers that also read ribuf[0].

KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:xlogrecoverreordertrans (fs/xfs/xfslogrecover.c:1836) xlogrecovercommittrans (fs/xfs/xfslogrecover.c:2043) xlogrecoverprocessdata (fs/xfs/xfslogrecover.c:2501) xlogdorecoverypass (fs/xfs/xfslogrecover.c:3244) xlogrecover (fs/xfs/xfslogrecover.c:3493) xfslogmount (fs/xfs/xfslog.c:618) xfsmountfs (fs/xfs/xfsmount.c:1034) xfsfsfillsuper (fs/xfs/xfssuper.c:1938) vfsgettree (fs/super.c:1695) path_mount (fs/namespace.c:4161) __x64sysmount (fs/namespace.c:4367)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64187.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
89cebc8477290b152618ffa110bbeae340d50900
Fixed
d50b1fd066d66ceb548ba43e332cfe8a47e5e55a
Fixed
d98f22d2e11e0a36493aeb25b2933571ee90d9a4
Fixed
cccbabeb9a18fcb978d76d6047f2b59214aa7749
Fixed
2094dab19d45c487285617b7b68913d0cc0c1211

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64187.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.3.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64187.json"