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 905E5339852 for ; Tue, 16 Dec 2025 14:32:28 +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=1765895549; cv=none; b=gbqYzcGqUv0j26Hj9BjiHMtN8JouSLRpS4q5CQMvzPoZwu1yRvMv6YhOTEJ1qotLmxs/umAiEEd53NSyWiS9yDdeQdPIBrkf3p415ys6AREEYKYhw6vODt9hH0WYsuqfEiInOxbkFPf/XTyxjOmX4boinQnX368JihXWkxCg1SU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765895549; c=relaxed/simple; bh=7p/ys4/DmXFejV498LiKfMwZ+pmO62YUtj7VeIcYjPI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=db139WGVvCKhQLHBwVnhHLDOwN+gYafxJ67lZhtnpXaVe2asYgMD2bnkkvCkYXbgrkG4QmjkTANDJajmOFvnFdO1SiUto1eltH12G7+QYE6vk/B8wAlQL3nCcSLKb6LjN4JfFqm3kTWlOuOF5gAccAeT3y+FIJ6G2sky/6/HRPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kb80FhDX; 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="kb80FhDX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A269C4CEF1; Tue, 16 Dec 2025 14:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765895548; bh=7p/ys4/DmXFejV498LiKfMwZ+pmO62YUtj7VeIcYjPI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=kb80FhDXoZp3kXMkHZQkRc8TOCy2jlWohsl10FCeDHDnRcewksW60i2ySj0XNXV3u DGWvaEklkvA/FOy5hY/W8wjt8SCiRf1u49gtQNe06jXRbJ5tsyYVNrNL3Ya8mgVGJm EB3AA78Ll7brM2pXr2uh+AVDZ8Zz2eZ5PtbdVqUY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68249: most: usb: hdm_probe: Fix calling put_device() before device initialization Date: Tue, 16 Dec 2025 15:32:25 +0100 Message-ID: <2025121623-CVE-2025-68249-f6bc@gregkh> X-Mailer: git-send-email 2.52.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=3476; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eggvU7PDjGF6KQDFxCLyf+o0oXbY+OhYjVJJoeGQF88=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOueXXps2OObEwd1/T5Mf5vbFyMz9eUFls8e5l4+5Ln Z/eaNz90xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATEVRkWLD49a3Yyuy36cZn tj5tbXM4fOK3SD7DbJYJGyOEpXPWetxjaD5cMe+EtVRDFgA= 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: most: usb: hdm_probe: Fix calling put_device() before device initialization The early error path in hdm_probe() can jump to err_free_mdev before &mdev->dev has been initialized with device_initialize(). Calling put_device(&mdev->dev) there triggers a device core WARN and ends up invoking kref_put(&kobj->kref, kobject_release) on an uninitialized kobject. In this path the private struct was only kmalloc'ed and the intended release is effectively kfree(mdev) anyway, so free it directly instead of calling put_device() on an uninitialized device. This removes the WARNING and fixes the pre-initialization error path. The Linux kernel CVE team has assigned CVE-2025-68249 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d and fixed in 5.10.246 with commit 3509c748e79435d09e730673c8c100b7f0ebc87c Issue introduced in 5.9 with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d and fixed in 5.15.196 with commit ad2be44882716dc3589fbc5572cc13f88ead6b24 Issue introduced in 5.9 with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d and fixed in 6.1.158 with commit c400410fe0580dd6118ae8d60287ac9ce71a65fd Issue introduced in 5.9 with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d and fixed in 6.6.115 with commit 6fb8fbc0aa542af5bf0fed94fa6b0edf18144f95 Issue introduced in 5.9 with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d and fixed in 6.12.56 with commit 7d851f746067b8ee5bac9c262f326ace0a6ea253 Issue introduced in 5.9 with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d and fixed in 6.17.6 with commit 4af0eedbdb4df7936bf43a28e31af232744d2620 Issue introduced in 5.9 with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d and fixed in 6.18 with commit a8cc9e5fcb0e2eef21513a4fec888f5712cb8162 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-68249 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/most/most_usb.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/3509c748e79435d09e730673c8c100b7f0ebc87c https://git.kernel.org/stable/c/ad2be44882716dc3589fbc5572cc13f88ead6b24 https://git.kernel.org/stable/c/c400410fe0580dd6118ae8d60287ac9ce71a65fd https://git.kernel.org/stable/c/6fb8fbc0aa542af5bf0fed94fa6b0edf18144f95 https://git.kernel.org/stable/c/7d851f746067b8ee5bac9c262f326ace0a6ea253 https://git.kernel.org/stable/c/4af0eedbdb4df7936bf43a28e31af232744d2620 https://git.kernel.org/stable/c/a8cc9e5fcb0e2eef21513a4fec888f5712cb8162