Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CD20479CD for ; Sat, 4 Oct 2025 07:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759563250; cv=none; b=edQOgkhwRiUaknZ0vReoHIDtFJ/hkSx3uw0hqMLFuEg2jg/WL7Ls1SUboukWfJcNU64toKj16XHGnQX+bAUQ0mNeDxzk1t5ZIHv+H87sEnflN91RsZcNWoykEjq3W6/vM6Qs3zSUmyn3CmHHdxgrGen4VAOx8R0olHsEyUAweGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759563250; c=relaxed/simple; bh=yB+UsMQW7qywZ4UJ93xlGKz2HfnG3OhEHps4Z/Bf040=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ApR360sEEZAx2INwHTQ+2W78IauKOYVVEGO2mBKCkLTwAN4iLkpA1vfm/YgT2AsiKfqCDf81qIUSJLjf7kMfyRrqtBDmzzer3pdpqb1b0jMNWFtyKdcRVCyD5u/Dw+NaEPG0cnYU9Ka44HqYXHO48m7oiPTsi4jPS44IOIvqq5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2EkDuHK7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2EkDuHK7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 551AEC4CEF1; Sat, 4 Oct 2025 07:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759563250; bh=yB+UsMQW7qywZ4UJ93xlGKz2HfnG3OhEHps4Z/Bf040=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2EkDuHK7iabCJXZwI51Y438AlEX6FI4Q0Uur9ZaGl2bozoR84p5uSq5BvmgFcZk7D uNb5k2Zw+KduBJrAzs4gRMuVYQksKJvKVEHim+D9An7L2qdF/iHUdx3VckT+QBs84l xmyuOAP75IG0LaZE5pLwv11Z20wuP6NKyQWKSvXg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39951: um: virtio_uml: Fix use-after-free after put_device in probe Date: Sat, 4 Oct 2025 09:33:35 +0200 Message-ID: <2025100420-CVE-2025-39951-24b1@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2657; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2d/wVFxXaCFcsuUCLxE11C2GsiMwDHRKgCZ28phHzzA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPzh7oj/B+/mgh90f3nZtl+f2UnTwP1aitFvm5fMXO7 +mdFawaHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRCi+GebbJahNdxDIEdc9O U5gVML3BM4q7jWHBFJ87V/V+rfdl4BR/u33Lrxa1rFhRAA== 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: um: virtio_uml: Fix use-after-free after put_device in probe When register_virtio_device() fails in virtio_uml_probe(), the code sets vu_dev->registered = 1 even though the device was not successfully registered. This can lead to use-after-free or other issues. The Linux kernel CVE team has assigned CVE-2025-39951 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 04e5b1fb01834a602acaae2276b67a783a8c6159 and fixed in 6.1.154 with commit aaf900a83508c8cd5cdf765e7749f9076196ec7f Issue introduced in 5.5 with commit 04e5b1fb01834a602acaae2276b67a783a8c6159 and fixed in 6.6.108 with commit 4f364023ddcfe83f7073b973a9cb98584b7f2a46 Issue introduced in 5.5 with commit 04e5b1fb01834a602acaae2276b67a783a8c6159 and fixed in 6.12.49 with commit 00e98b5a69034b251bb36dc6e7123d7648e218e4 Issue introduced in 5.5 with commit 04e5b1fb01834a602acaae2276b67a783a8c6159 and fixed in 6.16.9 with commit c2ff91255e0157b356cff115d8dc3eeb5162edf2 Issue introduced in 5.5 with commit 04e5b1fb01834a602acaae2276b67a783a8c6159 and fixed in 6.17 with commit 7ebf70cf181651fe3f2e44e95e7e5073d594c9c0 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-2025-39951 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: arch/um/drivers/virtio_uml.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/aaf900a83508c8cd5cdf765e7749f9076196ec7f https://git.kernel.org/stable/c/4f364023ddcfe83f7073b973a9cb98584b7f2a46 https://git.kernel.org/stable/c/00e98b5a69034b251bb36dc6e7123d7648e218e4 https://git.kernel.org/stable/c/c2ff91255e0157b356cff115d8dc3eeb5162edf2 https://git.kernel.org/stable/c/7ebf70cf181651fe3f2e44e95e7e5073d594c9c0