bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-99301

—unknown

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

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

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

virtio_net: atomically disable rx mode work

virtio-net uses a boolean to gate rx_mode_work during device teardown. The flag is changed under RTNL, but ndo_set_rx_mode checks it under the address-list lock. A callback can therefore pass the check and enqueue work after teardown has flushed it. The work is also enabled before late probe operations that can fail, allowing probe unwind to free the netdev with work still queued.

KASAN reports the worker using a virtqueue that probe unwind already freed:

BUG: KASAN: slab-use-after-free in virtqueue_add_splitkernel log · 14 lines
  BUG: KASAN: slab-use-after-free in virtqueue_add_split
  Workqueue: events virtnet_rx_mode_work
  Call Trace:
   virtqueue_add_split (drivers/virtio/virtio_ring.c:706)
   virtqueue_add_sgs (drivers/virtio/virtio_ring.c:2839)
   virtnet_send_command_reply (drivers/net/virtio_net.c:3565)
   virtnet_rx_mode_work (drivers/net/virtio_net.c:3833)
   process_one_work (kernel/workqueue.c:3322)
   worker_thread (kernel/workqueue.c:3405)
  Freed by task 119:
   kfree (mm/slub.c:6625)
   vp_del_vq.isra.0 (drivers/virtio/virtio_pci_common.c:259)
   vp_del_vqs (drivers/virtio/virtio_pci_common.c:285)
   virtnet_probe (drivers/net/virtio_net.c:7129)

Use the workqueue disable mechanism to atomically reject new queue attempts and drain running work. Keep work disabled until probe succeeds or restore has reattached the netdev, then enable it and replay receive-mode state for a running interface. Disable it before resource teardown in freeze and remove.

Published 2026-11-16NVD

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

The build is affected: drivers/net/virtio_net.c in the 6.18.60 tree still gates rx_mode_work with the plain boolean rx_mode_work_enabled, enables it before register_netdevice() in virtnet_probe(), and none of the 139 applied patches touch the driver. CONFIG_VIRTIO_NET=y, so the code is built into the kernel image.

The driver only binds when a hypervisor presents a virtio-net device, and the faulty window only opens on probe failure, device removal or freeze. Those need a hypervisor-side action (hot-unplug, failing control commands) or a root shell (sysfs unbind, suspend); I found no YANG node, CLI command or finit service that causes them, and network traffic alone cannot. That is case (c), hence NOT_EXPOSED.

The caveat that keeps confidence at medium: README.md lists x86_64 as "VMs and mini PCs, for development or production". On a VM with virtio NICs, virtnet_probe() and virtnet_set_rx_mode() run at every boot with no operator configuration. If you treat VM deployments as shipped product, the affected functions run by default and the verdict would be EXPOSED_BY_DEFAULT, even though the trigger still sits with the hypervisor host.

Evidence 12
  1. `enable_rx_mode_work()` / `disable_rx_mode_work()` still just set the boolean `rx_mode_work_enabled` under RTNL; there is no `disable_work_sync()` / `enable_work()` anywhere in the file, so the fix is absent.

    output/build/linux-6.18.60/drivers/net/virtio_net.c:741-753

  2. `virtnet_set_rx_mode()` checks `vi->rx_mode_work_enabled` without RTNL and then calls `schedule_work()`, which is the check-then-queue race the CVE describes.

    output/build/linux-6.18.60/drivers/net/virtio_net.c:3995-4001

  3. `virtnet_probe()` calls `enable_rx_mode_work()` before `register_netdevice()` and before later steps that can fail (`goto free_failover`, `goto free_unregister_netdev`), matching the probe-unwind use-after-free.

    output/build/linux-6.18.60/drivers/net/virtio_net.c:7106-7162

  4. The freeze and remove paths use `disable_rx_mode_work()` followed by `flush_work()`, the vulnerable teardown pattern.

    output/build/linux-6.18.60/drivers/net/virtio_net.c:5815-5816, 7257-7258

  5. The kernel source is 6.18.60 (VERSION 6, PATCHLEVEL 18, SUBLEVEL 60), matching the SBOM entry.

    output/build/linux-6.18.60/Makefile:2-4

  6. 139 patches applied, all from `patches/linux/6.18.60/`; none has virtio or rx_mode in its name, and that directory contains no virtio patch.

    output/build/linux-6.18.60/.applied_patches_list

  7. `virtio_net.o` is guarded by `CONFIG_VIRTIO_NET`.

    output/build/linux-6.18.60/drivers/net/Makefile:36

  8. `CONFIG_VIRTIO_NET=y` (also `board/x86_64/linux_defconfig:289`), so the driver is built in rather than a module; `output/objects.txt:22627` lists `virtio_net.o`.

    output/build/linux-6.18.60/.config:2143

  9. `CONFIG_SUSPEND=y` and `CONFIG_PM_SLEEP=y`, so the freeze/restore path exists, but `CONFIG_HIBERNATION` is off; triggering suspend needs root access to `/sys/power/state`.

    output/build/linux-6.18.60/.config:517-520

  10. The QEMU run scripts default the NIC model to `virtio-net-pci`; `board/common/image/image-itb-gns3a/generate.sh:25` does the same for the GNS3 appliance. virtio-net is supplied by the emulator, not by product hardware.

    board/common/qemu/itb/Config.in.in:227-232

  11. "No boards yet in tree" for x86_64: no physical x86_64 product board is defined, and `board/common/rootfs/usr/libexec/infix/init.d/25-qemu` describes virtio interfaces as "for virtual test systems".

    board/x86_64/Config.in:3

  12. x86_64 is documented as "VMs and mini PCs, for development or production" and "run the `x86_64` image in any VM", so VM deployments with virtio NICs are a documented use, which is the caveat on the verdict.

    README.md:84-85, 96

Version and patches

The tree is linux 6.18.60 and the vulnerable code is present unmodified.

I could not read the upstream fix commits from this tree (no network access), so the exact affected range and the fixed 6.18.y release are not confirmed. The CVE was published 2026-11-16 with four stable commits, which suggests the fix landed in stable releases newer than 6.18.60.

None of the 139 patches in patches/linux/6.18.60/ touches drivers/net/virtio_net.c, and Buildroot has no IGNORE_CVES entry for it.

Recommendation

Pick up the fix with the next 6.18.y stable bump that contains it, or backport the 6.18.y commit from the CVE references into patches/linux/. No emergency action is needed for hardware targets, which have no virtio-net device.

Because x86_64 VM images are documented for production use, do not record this as not applicable for that target. Record it as affected, with the trigger limited to the hypervisor host or a local root user, and not reachable from the network. Impact if triggered is a kernel use-after-free in a workqueue worker (crash or memory corruption).

Open questions

Which 6.18.y release first contains the fix: check the four git.kernel.org stable commits against the 6.18.y changelog.

Whether your shipped x86_64 deployments are VMs with virtio NICs. If so, decide whether policy treats the hypervisor host as inside or outside the product boundary; that choice moves the verdict between NOT_EXPOSED and EXPOSED_BY_DEFAULT.

My search of src/confd and the finit configuration for suspend or driver-unbind hooks was a keyword grep (sys/power/state, unbind, virtio), not a full audit of the YANG models.

The same driver is enabled in board/aarch64/linux_defconfig, board/arm/linux_defconfig and board/riscv64/linux_defconfig; those builds were not reviewed here.

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