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 B874D28AAEA for ; Thu, 10 Jul 2025 07:44: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=1752133450; cv=none; b=JKDEF1etRcSXyN6DZj8hrRcBF43Mys0TGzqj4FcLzubTZC8KM1Z8FbyDCoj/5YGyS1eqEwlg20woePyMCQlsfIQu09kSJOls9+AOI6Qx4r3uLuQluaJ+E8Api65Tvl7iEe7I2soEt0+5UuNRiziUcyUy+hEW+qp6EHjtws//Cg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133450; c=relaxed/simple; bh=v0GeKTEq4MZC9ETtLDJMlINfAdxHXYcsrrOJF/uFC/k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ex54eUioDnzB8mzpMlZ3hQXlZwRdZq74vRm7rgGiGHK0IR5gnbHUXt7GBmcbUslENn9hiFcPCKOI04jXZJMzkg5qfudyU8iz2q5AG2Or/OvqZMsRiCEsxDcH9W51Mt3S4fkOfQNB2AeqZeqiigJ3EUZhrdoz0SFqmuMUJfZ2ILg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jcZMgmHc; 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="jcZMgmHc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4692BC4CEE3; Thu, 10 Jul 2025 07:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133450; bh=v0GeKTEq4MZC9ETtLDJMlINfAdxHXYcsrrOJF/uFC/k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jcZMgmHcPlsHnSk0PRV72aBCqcyrgZvKE1ACPnNEKwYp+inwX6638PfIQjYjdoL1S YOsC19j7POLWxt3TK82UT98yANlrCddnbwD+GPPOt/FDBJHetm35YH8HklXOZjmvaI hs19hZnbi1ovSBG5imoNQqz3qEUjhlCyYIm4O7eE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38275: phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug Date: Thu, 10 Jul 2025 09:42:16 +0200 Message-ID: <2025071008-CVE-2025-38275-4db0@gregkh> X-Mailer: git-send-email 2.50.1 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=3017; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WlILA801aVSO+XrVDPg3sTEQnwoE3Dk2CJSFSy3F8yY=; b=kA0DAAIRMUfUDdst+ykByyZiAGhvbtGgbcuEayAGvsGuEdF9M3JqZixj9FIQNiUMY3nyuoEnf YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmhvbtEACgkQMUfUDdst+ymQoACeLgqf //r00hg7uyjQ0moONqbzgBQAn0jZKqNHOZg2NFAkiyUmiFE4pkB0 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: phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug The qmp_usb_iomap() helper function currently returns the raw result of devm_ioremap() for non-exclusive mappings. Since devm_ioremap() may return a NULL pointer and the caller only checks error pointers with IS_ERR(), NULL could bypass the check and lead to an invalid dereference. Fix the issue by checking if devm_ioremap() returns NULL. When it does, qmp_usb_iomap() now returns an error pointer via IOMEM_ERR_PTR(-ENOMEM), ensuring safe and consistent error handling. The Linux kernel CVE team has assigned CVE-2025-38275 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd and fixed in 6.1.142 with commit 0b979a409e40457ca1b5cb48755d1f34eee58805 Issue introduced in 6.1 with commit a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd and fixed in 6.6.94 with commit 127dfb4f1c5a2b622039c5d203f321380ea36665 Issue introduced in 6.1 with commit a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd and fixed in 6.12.34 with commit 5072c1749197fc28b27d7efc0d80320d7cac9572 Issue introduced in 6.1 with commit a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd and fixed in 6.15.3 with commit 0c33117f00c8c5363c22676931b22ae5041f7603 Issue introduced in 6.1 with commit a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd and fixed in 6.16-rc1 with commit d14402a38c2d868cacb1facaf9be908ca6558e59 Issue introduced in 5.15.93 with commit 368ea32e0ad0335bdf3180067875a928e35387c6 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-38275 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/phy/qualcomm/phy-qcom-qmp-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/0b979a409e40457ca1b5cb48755d1f34eee58805 https://git.kernel.org/stable/c/127dfb4f1c5a2b622039c5d203f321380ea36665 https://git.kernel.org/stable/c/5072c1749197fc28b27d7efc0d80320d7cac9572 https://git.kernel.org/stable/c/0c33117f00c8c5363c22676931b22ae5041f7603 https://git.kernel.org/stable/c/d14402a38c2d868cacb1facaf9be908ca6558e59