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 D6B9E2C0F79 for ; Sat, 16 Aug 2025 11:22:32 +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=1755343352; cv=none; b=bkeJ2Q/+eMA9QfsP7JZH+CFMgYVWkBIKgcdb9fpSgbAofKB8Ia6M2NJjTkgBpI2FCAdFq4xCNz0hS0NMMNn+rMQ6MbsH0wfFJs7YVMZVO1L6Go6KHtOQFpPVshogMmBxXG6bdXnW3BHg5aUlRd7NTcqQoP+0C7NLAv5yFRM8r+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755343352; c=relaxed/simple; bh=PVH/dX7C9oGyFls+cLX435zv4lrCmN6QG2ngKV1zaNA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WCGsanK+j6sERmDvE3wzR/OkhuF3Ua6iqpjNhgXPL1LjggLXeMC4oo4TSSIzh0Dh5Ynqq8swx9QBVmcClj2vswT1KI/FV2zqRfcXiMdHaRXHs3T3XBUzNdIcop00qHTA4hsLii4Z99h1lyTgmOGJ4+kH6N7VIOzDu3W0MIFXDW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NvugIArf; 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="NvugIArf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8420AC4CEEF; Sat, 16 Aug 2025 11:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755343352; bh=PVH/dX7C9oGyFls+cLX435zv4lrCmN6QG2ngKV1zaNA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NvugIArfenYKcxHCuknIVtrz+i2aGuHpTzWMqUz+YkB8hOv/UTPZWfTP/li6pVkZI Wh0yZWFFz+HfkiUGWmManDQgwXM3pMeQbVEhwoZqOnCDNcWFEwNwrwEkcHji/MsKVE 38GB/hDeiEYv7tEfHiCEi3rOKxa8bnIaPpKLZDBU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38541: wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init() Date: Sat, 16 Aug 2025 13:22:27 +0200 Message-ID: <2025081626-CVE-2025-38541-39ec@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=2234; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R91vzDQhej/1HLVS3DqktHQ+c0Ua8rnk/7eaNSHrtN4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLMj99j8/wPNn0e891vwju295PNs5u36934Hf0Q+99R 330/z936IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJKB5nmF8tHuW5VN/3dI/d gQnX9y25nme4z4BhrmDNa7eUHZO3/pkwNXW1mu99/fu+OgA= 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: wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init() devm_kasprintf() returns NULL on error. Currently, mt7925_thermal_init() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue. The Linux kernel CVE team has assigned CVE-2025-38541 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 396e41a74a88654f23e36c46d2995752c91654a5 and fixed in 6.12.39 with commit 1bbdf4213711bb6dc365e7628430a63dd3280794 Issue introduced in 6.9 with commit 396e41a74a88654f23e36c46d2995752c91654a5 and fixed in 6.15.7 with commit 2e99e9b34ece0b6d3e82cb757e9f60fa414da999 Issue introduced in 6.9 with commit 396e41a74a88654f23e36c46d2995752c91654a5 and fixed in 6.16 with commit 03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602 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-38541 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/net/wireless/mediatek/mt76/mt7925/init.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/1bbdf4213711bb6dc365e7628430a63dd3280794 https://git.kernel.org/stable/c/2e99e9b34ece0b6d3e82cb757e9f60fa414da999 https://git.kernel.org/stable/c/03ee8f73801a8f46d83dfc2bf73fb9ffa5a21602