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 15526289E2E for ; Thu, 10 Jul 2025 07:42:39 +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=1752133360; cv=none; b=kE/hCWT1EyIv5RgR4hq4o51mZsXhgMROmxozIGKpQtEuu2dHbL7FdAyq9/i6N5FT76oJlhz9rGRMTHU5TBn0wvzTxvhrYU+tiZU/Qosn3WriRFKGJY5bTFL1UHmLB/tbJiGVur2QbPF3hBab69aGDbnTqfadQktykOSZgRyJoIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133360; c=relaxed/simple; bh=4IQJDpc9wc3NldP96lhlbqTTeeWgtC9PVTtG2dGTVYo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XpMDL05jJU4WaUa+9lqI+QPaY1boY7suqxR7ptIo6x4mBogs7mA1anCwvi90DuGzJBiLNlBVw/+TkVFqPB/6rA/rrRzR16wrN6B33zmhbgqEcrzpKDDPws7Qtak6bgiNaBibEu1DJqbDcCfJH0kTo10GCpVRPleFcoMkX12QjtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=efrINSSC; 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="efrINSSC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B560C4CEE3; Thu, 10 Jul 2025 07:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133359; bh=4IQJDpc9wc3NldP96lhlbqTTeeWgtC9PVTtG2dGTVYo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=efrINSSCEqTASBLm5pGMv+XER2yySnCJTJqJ0EwT8EpsYkS5ya9+RU5dgMR11Oifz kQyAldATURY5ffW7iH3ydKdJicy/d2XRfOCiLlY245k+umowKcuwpVOmIlYGqAKQ0l gNqyuvBkTl/ebt+2B0Ug5n4ds6zUzZE6UYs/EImE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38281: wifi: mt76: mt7996: Add NULL check in mt7996_thermal_init Date: Thu, 10 Jul 2025 09:42:22 +0200 Message-ID: <2025071009-CVE-2025-38281-ec50@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=2004; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vhQdtDIiBg1pslhbZeYsE9p5O2MYAZ6eYaimUDskl+E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eZd2Mx5nPnP8xPvEL/f8fwRPOLTtwm07DZNZJ5TkD YSjomyYOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiO2IY5uetWShm8OTtTY8v rw8X855Z/5Ll1RSG+WlHjX5OfjO74LGIgvOfA7pqMfnPHQA= 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: mt7996: Add NULL check in mt7996_thermal_init devm_kasprintf() can return a NULL pointer on failure,but this returned value in mt7996_thermal_init() is not checked. Add NULL check in mt7996_thermal_init(), to handle kernel NULL pointer dereference error. The Linux kernel CVE team has assigned CVE-2025-38281 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 69d54ce7491d046eaae05de7fb2493319a481991 and fixed in 6.15.3 with commit 8340cb173750c1ea99cd643006b72f8b0e6c21f2 Issue introduced in 6.14 with commit 69d54ce7491d046eaae05de7fb2493319a481991 and fixed in 6.16-rc1 with commit caf4b347c5dc40fdd125793b5e82ba9fc4de5275 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-38281 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/mt7996/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/8340cb173750c1ea99cd643006b72f8b0e6c21f2 https://git.kernel.org/stable/c/caf4b347c5dc40fdd125793b5e82ba9fc4de5275