bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-64159

5.5medium

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

netfs: Fix zeropoint update where i_size > remote_i_size

Fix the update of the zero point[*] by netfs_release_folio() when there is uncommitted data in the pagecache beyond the folio being released but the on-server EOF is in this folio (ie. i_size > remote_i_size). The update needs to limit zero_point to remote_i_size, not i_size as i_size is a local phenomenon reflecting updates made locally to the pagecache, not stuff written to the server. remote_i_size tracks the server's i_size.

[*] The zero point is the file position from which we can assume that the

    server will just return zeros, so we can avoid generating reads.

Note that netfs_invalidate_folio() probably doesn't need fixing as zero_point should be updated by setattr after truncation or fallocate.

Found with:

    fsx -q -N 1000000 -p 10000 -o 128000 -l 600000 \
        /xfstest.test/junk --replay-ops=junk.fsxops

using the following as junk.fsxops:

    truncate 0x0 0x1bbae 0x82864
    write 0x3ef2e 0xf9c8 0x1bbae
    write 0x67e05 0xcb5a 0x4e8f6
    mapread 0x57781 0x85b6 0x7495f
    copy_range 0x5d3d 0x10329 0x54fac 0x7495f
    write 0x64710 0x1c2b 0x7495f
    mapread 0x64000 0x1000 0x7495f

on cifs with the default cache option.

It shows read-gaps on folio 0x64 failing with a short read (ie. it hits EOF) if the FMODE_READ check is commented out in netfs_perform_write():

                if (//(file->f_mode & FMODE_READ) ||
                    netfs_is_cache_enabled(ctx)) {

and no fscache. This was initially found with the generic/522 xfstest.

Published 2026-07-19NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged

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

References 4
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-18 · settles 2 of 8

Fable 5.1 · high confidence · 2026-11-05

The upstream fix for CVE-2026-64159 is already present in the kernel source used by this build. The fix commit changes netfs_release_folio() to clamp the zero_point update to ctx->remote_i_size instead of i_size_read(&ctx->inode); fs/netfs/misc.c:306 in output/build/linux-6.18.60 already contains the fixed line end = umin(folio_pos(folio) + folio_size(folio), ctx->remote_i_size);.

No Buildroot/Infix patch touches netfs, so this is a stable backport in 6.18.60 that NVD's version range does not reflect.

Reachability is therefore moot (for the record, netfs is compiled in via CONFIG_NETFS_SUPPORT=y as a dependency of CONFIG_9P_FS=y; CIFS, NFS, AFS, Ceph and FSCACHE are all disabled).

Evidence 4

…/ is output/build/linux-6.18.60/

  1. netfs_release_folio() uses `umin(folio_pos(folio) + folio_size(folio), ctx->remote_i_size)` — the exact post-fix code from the upstream commit (vulnerable code used i_size_read(&ctx->inode)).

    …/fs/netfs/misc.c:306-308

  2. VERSION=6, PATCHLEVEL=18, SUBLEVEL=60 — confirms the source tree is linux 6.18.60 as in the SBOM.

    …/Makefile:2-4

  3. 139 patches applied, none mention netfs or zero_point; the fix comes from the upstream stable tarball, not a local patch.

    …/.applied_patches_list

  4. fs/netfs is compiled only as a dependency of 9P; the CIFS configuration the CVE was found with is not built. Noted for completeness only, since the fix is present.

    …/.config (CONFIG_NETFS_SUPPORT=y, CONFIG_9P_FS=y, CONFIG_CIFS/NFS_FS/AFS_FS/CEPH_FS/FSCACHE not set)

Version and patches

NVD maps the CVE to linux_kernel 6.18.60. The upstream fix (stable refs 4543a4d7…, 5afc2d9b…, 5cd5207d…, f706e388…) replaces the i_size-based clamp in netfs_release_folio() with a remote_i_size-based one; that fixed code is present verbatim in this tree's fs/netfs/misc.c, so 6.18.60 as shipped already carries the stable backport. No Buildroot IGNORE_CVES entry and no local patch is involved.

Recommendation

No action required; document as N/A (fix already present in linux 6.18.60 source, fs/netfs/misc.c:306). Optionally add a Buildroot IGNORE_CVES / triage note so the scanner stops flagging it.

Open questions

None. The only minor caveat is that the fix is identified by matching the code hunk rather than a changelog entry in the tree (kernel tarballs carry no git history), but the hunk match is exact.

Members of Kernel Kit decide. Sign in if you are one.