Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 511DB4AA1CD for ; Thu, 24 Sep 2026 16:09:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266160; cv=none; b=kp0EwDv7nwl80qiDMCKDUmcShW3X60qJyHCFfPfJWjjC98f2fAlTytlKrTbuA1m+VBtBxHB53866TreWxGgsDGHd44X/IVx0tCHuieRB4w7dpap5LwSzrMJvBehNe78mX/g5QBpFamAZUupNyg0HZDYmG4Lx8iS1If8JGfYSzd8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266160; c=relaxed/simple; bh=fxNODgNFUY2JHVeodVBFTldU+JCVdIsTc2E+Ds5hvEQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tvl/h2hE7C2d6otzzK2ruAPHP8tFNS573Z8Rpaiidy3QHlJC9P3xi8j4KVqqMhjWwqtCBX11vsk1O5hKP7iaRFU+H+sKS3Z4kRSQIjHVK2KyGF/aUH3AT4G9ErshkSrJzuW2dkfiqZKsGycTOyClZpePGK7NM89CAuiLo0/f3HU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IrANqpL5; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IrANqpL5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2E061F000FF; Thu, 24 Sep 2026 16:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266157; bh=ouVrofHA1GtIg7IlpAtTn1cKpqxKi0RwhAqd7pcU2vo=; h=From:To:Cc:Subject:Date:Reply-To; b=IrANqpL5uUuzXjR6zjOeRXMCqdW3QjoeHmTzn62Vs68h6WXOgSPOSg8Q/EiA2yFZc S9N/ZfXVqcfixNGPRcStrMy4j6xmvbErxmyXyaJei2EuTsVFuroR+d7vtxzuysTUd0 V1Uhe+S+ZfAPrHsPegH+WVXa56mU3HYl2VRzGKJg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93827: virtio-fs: avoid double-free on failed queue setup Date: Thu, 24 Sep 2026 18:03:03 +0200 Message-ID: <2026092424-CVE-2026-93827-4ee8@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2635; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mb8dCQgX4wczgEZ20UGvNBtmfCVy1ytsQWWtZ3dlmEk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPScEHN2gHdibq81i4/AszntT5qbrZzKnmgq8TSuvu 3aZaRNPRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkWQfDPKMVqhV6iRvv/3R+ q/4u0ZlRo3OlD8OC1s3hz5Y8cXBKexSea93w11dzclY5AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-93827 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit 3fbc5ee776fefbc6ea34d2518f1f5f90aa2e1dad Fixed in 6.18.53 with commit 20ef4739b329bb09cff11dd2458795a50674658e Fixed in 7.2 with commit 6af3330ec5d5fb8c06c04eb520a71cf73ea5a765 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-93827 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/fuse/virtio_fs.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3fbc5ee776fefbc6ea34d2518f1f5f90aa2e1dad https://git.kernel.org/stable/c/20ef4739b329bb09cff11dd2458795a50674658e https://git.kernel.org/stable/c/6af3330ec5d5fb8c06c04eb520a71cf73ea5a765