Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-93827

Опубликовано: 24 сент. 2026
Источник: redhat
CVSS3: 6.5
EPSS Низкий

Описание

In the Linux kernel, the following vulnerability has been resolved: virtio-fs: avoid double-free on failed queue setup virtio_fs_setup_vqs() allocates fs->vqs and fs->mq_map before calling virtio_find_vqs(). If virtio_find_vqs() fails, the error path frees both pointers and returns an error to virtio_fs_probe(). virtio_fs_probe() then drops the last kobject reference, and virtio_fs_ktype_release() frees fs->vqs and fs->mq_map again. This leaves dangling pointers in struct virtio_fs and can trigger a double-free during probe failure cleanup. Set fs->vqs and fs->mq_map to NULL immediately after kfree() in the virtio_fs_setup_vqs() 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 virtio_find_vqs() fails while setting up the extra queue, and the probe path reaches the double-free cleanup sequence.

A flaw was found in the Linux kernel's virtio-fs file system driver. When queue initialization fails—such as when a device advertises more request queues than supported—the driver fails to clear memory pointers after releasing them, resulting in a double-free condition during error cleanup. An attacker capable of presenting a malformed virtio-fs device can exploit this flaw to cause memory corruption, leading to a system crash and Denial of Service (DoS).

Отчет

A double free in the virtio fs probe failure path occurs because virtio_fs_setup_vqs frees fs vqs and fs mq_map after virtio_find_vqs fails but leaves the pointers non NULL. Later probe cleanup drops the final kobject reference and virtio_fs_ktype_release frees the same allocations again, creating a kernel memory corruption condition. A malicious or malformed virtio fs device can trigger the failure by advertising more request queues than the transport provides. The attack vector is adjacent AV:A because the attacker must control a virtio device or virtual machine device configuration and it is not a network protocol attack. For the CVSS the PR:N because no guest user account or local code execution is required when an attacker controls the presented virtio device. Impact is at least guest kernel denial of service and may include confidentiality and integrity impact through double free based memory corruption.

Меры по смягчению последствий

To mitigate this vulnerability, prevent the virtiofs kernel module from loading on the system if virtio-fs shared filesystems are not required.

  1. Add a configuration rule to disable autoloading of the module:

echo "install virtiofs /bin/true" > /etc/modprobe.d/disable-virtiofs.conf

  1. If the module is currently loaded, unload it:

modprobe -r virtiofs

Warning: If virtiofs is in active use by mounted filesystems, unloading the module will fail. A system reboot may be required to completely unload the driver and ensure configuration changes take effect. Caveats: Disabling the virtiofs module prevents the guest system from mounting filesystems shared via virtio-fs from the hypervisor.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected
Red Hat Enterprise Linux 10kernelFixedRHSA-2026:9341301.11.2026
Red Hat Enterprise Linux 10kernelFixedRHSA-2026:9860811.11.2026
Red Hat Enterprise Linux 9kernelFixedRHSA-2026:9341201.11.2026
Red Hat Enterprise Linux 9kernelFixedRHSA-2026:9787311.11.2026

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-416
https://bugzilla.redhat.com/show_bug.cgi?id=2540396kernel: virtio-fs: avoid double-free on failed queue setup

EPSS

Процентиль: 5%
0.00194
Низкий

6.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 8.4
ubuntu
2 месяца назад

In the Linux kernel, the following vulnerability has been resolved: virtio-fs: avoid double-free on failed queue setup virtio_fs_setup_vqs() allocates fs->vqs and fs->mq_map before calling virtio_find_vqs(). If virtio_find_vqs() fails, the error path frees both pointers and returns an error to virtio_fs_probe(). virtio_fs_probe() then drops the last kobject reference, and virtio_fs_ktype_release() frees fs->vqs and fs->mq_map again. This leaves dangling pointers in struct virtio_fs and can trigger a double-free during probe failure cleanup. Set fs->vqs and fs->mq_map to NULL immediately after kfree() in the virtio_fs_setup_vqs() 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 virtio_find_vqs() fails while setting up the extra queue, and the probe path reaches the double-free cleanup sequence.

CVSS3: 8.4
nvd
2 месяца назад

In the Linux kernel, the following vulnerability has been resolved: virtio-fs: avoid double-free on failed queue setup virtio_fs_setup_vqs() allocates fs->vqs and fs->mq_map before calling virtio_find_vqs(). If virtio_find_vqs() fails, the error path frees both pointers and returns an error to virtio_fs_probe(). virtio_fs_probe() then drops the last kobject reference, and virtio_fs_ktype_release() frees fs->vqs and fs->mq_map again. This leaves dangling pointers in struct virtio_fs and can trigger a double-free during probe failure cleanup. Set fs->vqs and fs->mq_map to NULL immediately after kfree() in the virtio_fs_setup_vqs() 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 virtio_find_vqs() fails while setting up the extra queue, and the probe path reaches the double-free cleanup sequen

CVSS3: 8.4
msrc
12 дней назад

virtio-fs: avoid double-free on failed queue setup

CVSS3: 8.4
debian
2 месяца назад

In the Linux kernel, the following vulnerability has been resolved: v ...

CVSS3: 8.4
github
2 месяца назад

In the Linux kernel, the following vulnerability has been resolved: virtio-fs: avoid double-free on failed queue setup virtio_fs_setup_vqs() allocates fs->vqs and fs->mq_map before calling virtio_find_vqs(). If virtio_find_vqs() fails, the error path frees both pointers and returns an error to virtio_fs_probe(). virtio_fs_probe() then drops the last kobject reference, and virtio_fs_ktype_release() frees fs->vqs and fs->mq_map again. This leaves dangling pointers in struct virtio_fs and can trigger a double-free during probe failure cleanup. Set fs->vqs and fs->mq_map to NULL immediately after kfree() in the virtio_fs_setup_vqs() 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 virtio_find_vqs() fails while setting up the extra queue, and the probe path reaches the double-free cleanup seq...

EPSS

Процентиль: 5%
0.00194
Низкий

6.5 Medium

CVSS3