bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98960

—unknown

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

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.06.18.8
v26.09.06.18.54
v26.10.0latest6.18.60
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalAAwaiting reviewx86_64AAwaiting reviewaarch64_minimalAAwaiting reviewx86_64AAwaiting reviewaarch64_minimalAAwaiting reviewx86_64AAwaiting review

Description · NVD

btrfs: don't stash io_uring encoded data across -EAGAIN

Returning -EAGAIN while leaving btrfs_uring_encoded_data in the cmd PDU leaks if the request is cancelled or the ring exits before reissue. io_uring does not free driver PDU allocations on cleanup.

Write: io_queue_sqe() always issues with IO_URING_F_NONBLOCK first, so return -EAGAIN before allocating and free data on every exit.

Read: free on nowait -EAGAIN too; only -EIOCBQUEUED keeps the allocation for btrfs_uring_read_finished().

Published 2026-10-23NVD

References 2
Review Av26.10.0x86_64Not exposedFable 5.2 · medium confidence · 2026-11-19

The build is affected: fs/btrfs/ioctl.c in the 6.18.60 tree still has the pre-fix logic in both btrfs_uring_encoded_write() and btrfs_uring_encoded_read(), with CONFIG_BTRFS_FS=y and CONFIG_IO_URING=y, and no applied patch touches btrfs.

Btrfs is in use by default (the DDI image mounts /cfg, /var, /root and /home as btrfs subvolumes), but the leaking path only runs when a process holding CAP_SYS_ADMIN submits an io_uring URING_CMD with BTRFS_IOC_ENCODED_READ or BTRFS_IOC_ENCODED_WRITE on a btrfs file. I found nothing in the default services or in confd that does this, and no YANG node or CLI command that turns it on.

Reaching it needs a purpose-built program running as root: a root shell, or a workload inside a container the operator has configured with privileged or an added sys_admin capability and a btrfs-backed volume. It is not reachable from a network interface, and the impact is a kernel memory leak triggered by an already fully privileged process.

Evidence 11
  1. Unfixed write path: `data` is allocated and stored in `bc->data` before the `IO_URING_F_NONBLOCK` check returns `-EAGAIN`, and `kfree(data)` is skipped when `ret == -EAGAIN`.

    output/build/linux-6.18.60/fs/btrfs/ioctl.c:4978-4985,5046-5049,5076-5077 (btrfs_uring_encoded_write)

  2. Unfixed read path: `-EAGAIN` from `btrfs_encoded_read()` jumps to `out_acct`, and `data` is kept for both `-EIOCBQUEUED` and `-EAGAIN`; the fix keeps it only for `-EIOCBQUEUED`.

    output/build/linux-6.18.60/fs/btrfs/ioctl.c:4899-4900,4942-4943 (btrfs_uring_encoded_read)

  3. Both handlers return `-EPERM` unless `capable(CAP_SYS_ADMIN)`, before any allocation, so an unprivileged process cannot reach the leak.

    output/build/linux-6.18.60/fs/btrfs/ioctl.c:4813,4962

  4. `.uring_cmd = btrfs_uring_cmd` is wired into the btrfs file operations, so the entry point exists for any btrfs regular file.

    output/build/linux-6.18.60/fs/btrfs/file.c:3806

  5. `CONFIG_IO_URING=y` and `CONFIG_BTRFS_FS=y` (also `board/x86_64/linux_defconfig:332`).

    output/build/linux-6.18.60/.config:279,4108

  6. `output/build/linux-6.18.60/fs/btrfs/ioctl.o` was built.

    output/objects.txt:24532

  7. No applied patch name mentions btrfs or io_uring, and no file under `patches/linux/6.18.60/` contains `btrfs`.

    output/build/linux-6.18.60/.applied_patches_list

  8. The default storage setup formats the `rw` LV with `mkfs.btrfs` and mounts subvolumes `cfg var root home` as btrfs, so btrfs files exist on a normally provisioned device (`IX_IMAGE_DDI=y` at `output/.config:5284`).

    board/common/image/image-ddi/rootfs/usr/libexec/infix/mnt:91,109,206

  9. `BR2_PACKAGE_LIBURING` is not set; `board/common/rootfs/etc` and `src/confd/src` contain no reference to `io_uring`.

    output/.config:2957

  10. confd passes `--privileged` and `--cap-add` to podman from YANG, the only management-interface route to a `CAP_SYS_ADMIN` workload; it still needs custom code in the container to issue the command.

    src/confd/src/containers.c:137-143

  11. The `privileged` leaf, `capabilities` container, and `mount` / `volume` lists that would give such a container direct access to btrfs-backed files.

    src/confd/yang/confd/infix-containers.yang:288,375,469,560

Version and patches

The tree is 6.18.60 (output/build/linux-6.18.60/Makefile:2-4) and its source matches the vulnerable pattern in the CVE description, so the fix is not backported here. No applied patch addresses it. I could not read the upstream fix commits (4d9c1e0a7fb2, 51562a8cb116) from this tree, so the first fixed stable release is not confirmed; the io_uring encoded read/write code was introduced in 6.13 and 6.15 respectively, so the 6.18 series is in range.

Recommendation

Document as not exposed in the default product and pick up the fix with the next routine 6.18.y stable bump that contains it; no urgent backport is needed.

If privileged containers running untrusted workloads are a supported deployment, treat this as a low-severity local memory-leak denial of service and schedule the bump accordingly.

Open questions

Which 6.18.y release first carries the fix is not determinable from the tree.

I did not confirm whether podman's default seccomp profile blocks io_uring_setup for containers that only add sys_admin without privileged; that would narrow the container route further.

stress-ng, strace and libev sources in output/build reference io_uring; I did not check whether they are installed on the target, and none is started by default as far as I saw.

One combined shell command was denied by the sandbox (it used cd and ../ paths to check the uring_cmd wiring and look for an io_uring_disabled sysctl). I re-ran the wiring and kernel-version checks with in-tree paths, but the io_uring_disabled sysctl search was not repeated, so whether the image restricts io_uring via sysctl is unchecked.

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