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 2C6CC3DB646 for ; Wed, 6 May 2026 11:28:54 +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=1778066935; cv=none; b=XdnCMazbj7Js7gytK5dv9CVgCRXQeZmdRroKxd+1LL2o9tBc6J307H5z+XcZYLdaF9k8csuXOu2Mtmq1jFxiSVprWy9cyEJaqUriN4uT5BODCZtcNMoEeKEJD8mqbWe6IPWVNNqZ1DhZHCXQ4QWyb0Y0bzVtB0nLYxoSoWP23As= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778066935; c=relaxed/simple; bh=EMDkuWSHm3mR8h/WBSP9bw1eNZ1DxINbbdJStVz8DW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Us4w5Op4MpVhEDr53yg6QQVMkPPZ8IHqwCaerEpiqnaUzBMAJxfsboFfrMD0Fkc9Lz3QwK0sivLIjYrZfj6h0mLcMm/BFlnsn7+cxFFQl+rY/PdxpY7uU4iCBM6h1xJvPQbl6nDVMQNcoXWfwdRenGji7pykMOhuRqrZt5Pt+70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VQjhDCk+; 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="VQjhDCk+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39277C2BCB8; Wed, 6 May 2026 11:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778066934; bh=EMDkuWSHm3mR8h/WBSP9bw1eNZ1DxINbbdJStVz8DW0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=VQjhDCk+pc43vrpxMVNtC4q0qrtzl9b15BAmWxLZ2barjqfqQeUGh8ByFBQcnGrpy t1T8o7LuEWwL5W+uXZGsKszJLCTY5W/BeRmZz6SDJdbAzUfH/g3Ih33eoE758QRnWw ZpM/CEvk6qqXPiHnzmeofTtmLLb49qRRzLttKTXg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71272: most: core: fix resource leak in most_register_interface error paths Date: Wed, 6 May 2026 13:27:14 +0200 Message-ID: <2026050617-CVE-2025-71272-85da@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=2563; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3bH3m9AbEUoSTZ/Ojd5FSxKGSKyW9FJC9O1xqSiflzY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/Vaf2V02eq3VWyiFja/4681tNNXJTO7WXtxVY6SUJr jrBtZG3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACai/p5hfkLtDoM5i6Mnz3OY eP7VR9kpPpp7whnmB7jGsn7Mfajk6Wpn0DXBt/JRgMYeAA== 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: core: fix resource leak in most_register_interface error paths The function most_register_interface() did not correctly release resources if it failed early (before registering the device). In these cases, it returned an error code immediately, leaking the memory allocated for the interface. Fix this by initializing the device early via device_initialize() and calling put_device() on all error paths. The most_register_interface() is expected to call put_device() on error which frees the resources allocated in the caller. The put_device() either calls release_mdev() or dim2_release(), depending on the caller. Switch to using device_add() instead of device_register() to handle the split initialization. The Linux kernel CVE team has assigned CVE-2025-71272 to this issue. Affected and fixed versions =========================== Fixed in 6.12.75 with commit a49028a796d7b94f8e3ab9bd34b18f36be235459 Fixed in 6.18.16 with commit af0b99b2214a10554adb5b868240d23af6e64e71 Fixed in 6.19.6 with commit 2f483f3817fb0e4209ac5de928778b1da0cc8574 Fixed in 7.0 with commit 1f4c9d8a1021281750c6cda126d6f8a40cc24e71 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-71272 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/core.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/a49028a796d7b94f8e3ab9bd34b18f36be235459 https://git.kernel.org/stable/c/af0b99b2214a10554adb5b868240d23af6e64e71 https://git.kernel.org/stable/c/2f483f3817fb0e4209ac5de928778b1da0cc8574 https://git.kernel.org/stable/c/1f4c9d8a1021281750c6cda126d6f8a40cc24e71