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 E827528DF07 for ; Thu, 3 Jul 2025 08:38:15 +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=1751531896; cv=none; b=APvoSNSHZQcE5CrpwUqZ5e77c0YCBW7UGvsxISB32VZ6Ck7LL3LYCHye/uLghIE3vHTafh6EHZRrXKjpuUACqY1g56hnhrIMVU9Gn1nT0fq/MmV6WifiVpg0R3dYY7sdIoHL8QWjUu8vZogbksiY1FcUWy2ZudmlkvcbFt8c8gY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531896; c=relaxed/simple; bh=+/DzIyEkhfb/rRxu5yf5tQHx3Yqzu91V3q+RAZlig3Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kishHlhon1Hnue0TwSOdLghnF0dAj5pGmt448sKCm+sfwjKy8vL4p9AS/bZX9MebbggGV8AiOSkABENtQMJzRWBloHsuQZUziM0o6+wuU3vKQID7aI2PAAERZLfH14xGw49gXE7fUEAwxLhAvk+nrHErZLhfVNaa8PD6cZpJGsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RbhhnPbO; 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="RbhhnPbO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5885CC4CEE3; Thu, 3 Jul 2025 08:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531895; bh=+/DzIyEkhfb/rRxu5yf5tQHx3Yqzu91V3q+RAZlig3Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RbhhnPbOT/1JlJpI1mZyPU4tP3fqWbfRYYMxHHRCEB66Rfvt/s1Uj1UodgYtb7172 pJpvLhoKnnQ0YFlPc0ELiJgrDmSQ0MxCfCVcum5Q9H4ZwswAUZBA9jHvITR5A6ZKWz zXz7bzEf13MpqyGm/w6bEit8XF1hxxJcMuGQczIM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38156: wifi: mt76: mt7996: Fix null-ptr-deref in mt7996_mmio_wed_init() Date: Thu, 3 Jul 2025 10:36:12 +0200 Message-ID: <2025070338-CVE-2025-38156-d23e@gregkh> X-Mailer: git-send-email 2.50.0 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=2236; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=auqqYeMKMC/yrYMNWrLu3KcjQmsngItuSsyaTz5Wjt8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDreyre/kagbck5vCGt/1vV4nUvaErZ2GjdB0S8a62 aHzr2h0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwE02YZhn9nLyV70Pyj3Zysej /N26QvdEployLJhg5XqJbwXH9IRDdpKVOsfOpR7vPg4A 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: Fix null-ptr-deref in mt7996_mmio_wed_init() devm_ioremap() returns NULL on error. Currently, mt7996_mmio_wed_init() does not check for this case, which results in a NULL pointer dereference. Prevent null pointer dereference in mt7996_mmio_wed_init() The Linux kernel CVE team has assigned CVE-2025-38156 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 83eafc9251d6d30574b629ac637c56d168fcbdd9 and fixed in 6.12.34 with commit 1072fc0ca1f8d0d5397d24853386876f937b8e63 Issue introduced in 6.8 with commit 83eafc9251d6d30574b629ac637c56d168fcbdd9 and fixed in 6.15.3 with commit af861c6dea2ef06845a5c7672999a06c06099735 Issue introduced in 6.8 with commit 83eafc9251d6d30574b629ac637c56d168fcbdd9 and fixed in 6.16-rc1 with commit 8f30e2b059757d8711a823e4c9c023db62a1d171 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-38156 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/mmio.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/1072fc0ca1f8d0d5397d24853386876f937b8e63 https://git.kernel.org/stable/c/af861c6dea2ef06845a5c7672999a06c06099735 https://git.kernel.org/stable/c/8f30e2b059757d8711a823e4c9c023db62a1d171