Bug 2540396 (CVE-2026-93827) - CVE-2026-93827 kernel: virtio-fs: avoid double-free on failed queue setup
Summary: CVE-2026-93827 kernel: virtio-fs: avoid double-free on failed queue setup
Keywords:
Status: NEW
Alias: CVE-2026-93827
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-24 16:40 UTC by OSIDB Bzimport
Modified: 2026-11-11 11:34 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:93412 0 None None None 2026-11-01 21:40:12 UTC
Red Hat Product Errata RHSA-2026:93413 0 None None None 2026-11-01 21:52:57 UTC
Red Hat Product Errata RHSA-2026:97873 0 None None None 2026-11-10 22:14:46 UTC
Red Hat Product Errata RHSA-2026:98608 0 None None None 2026-11-11 11:34:34 UTC

Description OSIDB Bzimport 2026-09-24 16:40:01 UTC
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.

Comment 5 Jon Orris 2026-11-01 21:40:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:93412 https://access.redhat.com/errata/RHSA-2026:93412

Comment 6 Jon Orris 2026-11-01 21:52:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:93413 https://access.redhat.com/errata/RHSA-2026:93413

Comment 9 errata-xmlrpc 2026-11-10 22:14:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:97873 https://access.redhat.com/errata/RHSA-2026:97873

Comment 10 errata-xmlrpc 2026-11-11 11:34:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:98608 https://access.redhat.com/errata/RHSA-2026:98608


Note You need to log in before you can comment on or make changes to this bug.