UBUNTU-CVE-2026-93827: High severity ubuntu/linux vulnerability
In the Linux kernel, the following vulnerability has been resolved: virtio-fs: avoid double-free on failed queue setup virtiofssetupvqs() allocates fs->vqs and fs->mqmap before calling virtiofindvqs(). If virtiofindvqs() fails, the error path frees both pointers and returns an error to virtiofsprobe(). virtiofsprobe() then drops the last kobject reference, and virtiofsktyperelease() frees fs->vqs and fs->mqmap again. This leaves dangling pointers in struct virtiofs and can trigger a double-free during probe failure cleanup. Set fs->vqs and fs->mqmap to NULL immediately after kfree() in the virtiofssetupvqs() error path so that the later kobject release sees an uninitialized state and kfree(NULL) becomes harmless. This can be reproduced when a broken virtio-fs device advertises more request queues than the transport actually provides. In that case virtiofindvqs() fails while setting up the extra queue, and the probe path reaches the double-free cleanup sequence.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Configuration
Set fs->vqs and fs->mq_map to NULL immediately after freeing them with kfree() so later cleanup calls kfree(NULL) and does not double-free the allocations.
Linux kernel virtio-fs fs->vqs and fs->mq_map in virtio_fs_setup_vqs() error path = NULL