bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98118

7.1high

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 readahead synchronisation issues by loading all folios upfront

There are some synchronisation issues that derive from the app thread adding more folios to the rolling buffer whilst the collector thread is looking at them or trying to clear them, such as determining the setting of front_folio_order when the next folio hasn't been added yet,

The reason for the rolling buffer approach is that loading the buffer upfront and then dropping all the refs just acquired is quite a slow operation, and loading progressively allows some of the cost to be deferred until after at least some of the I/O is started.

Instead, a better way is to load all the folios into the rolling buffer upfront - and then drop the refs later, once the I/O is in progress. (Even better would be for the refs not to be there at all.)

Fix this by changing the rolling buffer loader to load all the folios selected by the VM for readahead upfront into the folio queue. The folio queue is allocated a batch worth at a time as we don't know how many folios are involved (the readahead_control struct, alas, has a page count, not a folio count).

The folio refs acquired from readahead are then dropped in bulk once the first subrequest is dispatched as it's quite a slow operation. The collector waits for NETFS_RREQ_NEED_PUT_RA_REFS to be cleared so that it doesn't unlock folios before the xarray has been scanned for them.

This simplifies the buffer handling later and isn't noticeably slower as the xarray doesn't need to be modified and the folios are all already pre-locked.

Published 2026-09-25NVD

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
High
Integrity
None
Availability
High
Scope
Unchanged

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

References 2
Review Bv26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-17 · settles 2 of 8

Fable 5.1 · high confidence · 2026-11-05

The fix (NETFS_RREQ_NEED_PUT_RA_REFS / upfront rolling-buffer load) is absent from linux-6.18.60 in this tree and none of the 139 Infix patches touch fs/netfs, so the vulnerable progressive readahead loader is compiled in (CONFIG_NETFS_SUPPORT=y).

The only netfs consumer in this kernel is 9P (CONFIG_9P_FS=y, NET_9P_FD/VIRTIO); NFS, CIFS/SMB, AFS, Ceph and FSCACHE are all disabled.

Nothing in the rootfs, finit, fstab or confd/YANG mounts a 9p filesystem; the only 9p source in the tree is the optional host-share in the developer QEMU run scripts.

Reaching the code requires a root shell to mount -t 9p plus a 9p server (virtio-9p from a hypervisor, or a TCP/fd transport), i.e. stepping outside the product.

Evidence 9
  1. Still uses the pre-fix progressive rolling_buffer_load_from_ra() loop with a local folio_batch - the vulnerable code

    output/build/linux-6.18.60/fs/netfs/buffered_read.c:90-111 (netfs_prepare_read_iterator)

  2. No NETFS_RREQ_NEED_PUT_RA_REFS flag defined; fix not backported

    output/build/linux-6.18.60/include/linux/netfs.h:269-280

  3. No patch touching fs/netfs, 9p, nfs or cifs

    output/build/linux-6.18.60/.applied_patches_list

  4. CONFIG_NETFS_SUPPORT=y, CONFIG_9P_FS=y; CONFIG_NFS_FS/CIFS/AFS/CEPH_FS/FSCACHE not set - 9P is the sole netfs user

    output/build/linux-6.18.60/.config:4144,4242

  5. CONFIG_NET_9P=y, NET_9P_FD=y, NET_9P_VIRTIO=y transports

    output/build/linux-6.18.60/.config:1592-1594

  6. fs/netfs/*.o and fs/9p/*.o were compiled

    output/objects.txt:24402-24418, 24496-24500

  7. 9P enabled deliberately in the Infix defconfig (for QEMU host share)

    board/x86_64/linux_defconfig:251-252,345

  8. No 9p mount anywhere in default services, fstab or YANG/confd-driven configuration (rg for '9p|mount_tag' returns nothing)

    board/common/rootfs/etc/fstab, finit.conf, finit.d/, src/confd

  9. Only 9p provider is the optional -virtfs host share in developer QEMU run scripts; still requires a manual mount inside the guest

    board/common/qemu/itb/run.sh:221-226, board/common/qemu/ddi/run.sh:405-413

Version and patches

Kernel CNA fix commits 8c9b33945712 / fed0b33e6c58 are not present in 6.18.60 (no NETFS_RREQ_NEED_PUT_RA_REFS, old loader in buffered_read.c). No Buildroot IGNORE_CVES entry and no Infix patch addresses it. Match is valid; build is affected.

Recommendation

Document as not exposed on shipped devices; pick up the fix with the next routine stable kernel bump (no urgent backport). If 9p host-share mounts are used in CI/QEMU test setups, be aware of possible readahead races there.

Open questions

None material. Could not inspect the upstream fix diff offline, but the absent flag and unchanged loader loop are sufficient to establish the fix is missing.

Review Av26.10.0aarch64_minimalNot exposedAccepted by a member, 2026-11-17. The vulnerable netfs readahead code is present and compiled: fs/netfs/buffered_read.c in output/build/linux-6.18.60/ still contains the pre-fix progressive rolling_buffer_load_from_ra() loop in netfs_prepare_read_iterator(), and the NETFS_RREQ_NEED_PUT_RA_REFS flag introduced by the fix is absent from the tree; none of the 139 applied patches touch netfs.Open the review →

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