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 472882FDC30 for ; Thu, 25 Jun 2026 08:45:33 +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=1782377134; cv=none; b=CPSBWRZc6mwUdWOCtF8BXkHh3NNPJ7z2FSMo3Hludw+HTnu3Z/BKwDiK6v1BEQgACC1WcBSzgMxD0rd8U5FIH80M19+8+BwWwNX4QkjIL+8QRk4FjrncPPDiPtAH3UavbT+FLg8+spcW6yyiYRbJFX6+zFF2D+/4TEf/J3SPkh4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377134; c=relaxed/simple; bh=vB1BTJrD8uoCCMMObXlu06uW+GiQxb24mA+7rSAOovs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=loDL7CIQP+LJb/R4ZoiaJaXhSNbJfa04Xy284DIhUmSDiv/yx5rZwqEHT58bqwUKBWTuby+WBw4KYv3hOVL4+/W6R/YNG7WTn/X54uT3z+H++sDULCGpMLKym4Smq9QEsCuCnnSPrLeeYg0y28DSY7hFrTsCPDrE56DObU2dHJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ezBvFqo3; 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="ezBvFqo3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C2A31F000E9; Thu, 25 Jun 2026 08:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377133; bh=B9InLydQLDIQaiiw3Zk6/qpO7hALsKfJvFp+Lve+EG4=; h=From:To:Cc:Subject:Date:Reply-To; b=ezBvFqo37wJ+XNt9xpiebJjvArgH/v7CUU14ir+1HD1S+uLu4ZXPstM0HJoXPkWHk WpC2rUpOVBf8Wv8wQ+ePPFI1Rrtb3pZm91aTHsQwRs3JS0Js34XLcnfGL71FvPQISt jucDvg/tx/1m4gupYNVmK+aOq/a3PTHxPemXRSis= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53190: drm/virtio: fix dma_fence refcount leak on error in virtio_gpu_dma_fence_wait() Date: Thu, 25 Jun 2026 09:40:38 +0100 Message-ID: <2026062557-CVE-2026-53190-819e@gregkh> X-Mailer: git-send-email 2.54.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=3048; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YBhOUAzQgSgEj+nrAm82ePFpi4QjlIIj4FVwmKqJW/w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L2Mn1F+OTtq2/a/4xMMlLp9WeSfdv5Ih7qA/a7mFx nHL9ztaOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi1+MZFjQ2J1sVWv8KcXng uf9Ue4VK1ZomAYYF5yfbcJj+y9r7qdzz3pI3u3YpxNp4AgA= 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: drm/virtio: fix dma_fence refcount leak on error in virtio_gpu_dma_fence_wait() dma_fence_unwrap_for_each() internally calls dma_fence_unwrap_first() which does cursor->chain = dma_fence_get(head), taking an extra reference. On normal loop completion, dma_fence_unwrap_next() releases this via dma_fence_chain_walk() -> dma_fence_put(). When virtio_gpu_do_fence_wait() fails and the function returns early from inside the loop, the cursor->chain reference is never released. This is the only caller in the entire kernel that does an early return inside dma_fence_unwrap_for_each. Add dma_fence_put(itr.chain) before the early return. The Linux kernel CVE team has assigned CVE-2026-53190 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit eba57fb5498f2858768321e64570caea188455b8 and fixed in 6.6.143 with commit 898bd0ccfed71651b881660c5d20ad73b5203174 Issue introduced in 6.5 with commit eba57fb5498f2858768321e64570caea188455b8 and fixed in 6.12.94 with commit 73524e9f96a278b521f257a78a845c49eb522bc1 Issue introduced in 6.5 with commit eba57fb5498f2858768321e64570caea188455b8 and fixed in 6.18.36 with commit 8348567a6afb24e2c9cafe8a321162d0eebe1411 Issue introduced in 6.5 with commit eba57fb5498f2858768321e64570caea188455b8 and fixed in 7.0.13 with commit c0fffc874c264292e769f26194a2a5e66ce31810 Issue introduced in 6.5 with commit eba57fb5498f2858768321e64570caea188455b8 and fixed in 7.1 with commit 3f26bb732cc136ab20176697c92f32c9c84cb125 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-53190 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: drivers/gpu/drm/virtio/virtgpu_submit.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/898bd0ccfed71651b881660c5d20ad73b5203174 https://git.kernel.org/stable/c/73524e9f96a278b521f257a78a845c49eb522bc1 https://git.kernel.org/stable/c/8348567a6afb24e2c9cafe8a321162d0eebe1411 https://git.kernel.org/stable/c/c0fffc874c264292e769f26194a2a5e66ce31810 https://git.kernel.org/stable/c/3f26bb732cc136ab20176697c92f32c9c84cb125