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 ED2432D2383 for ; Thu, 3 Jul 2025 08:36:29 +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=1751531790; cv=none; b=CrsbWqJ+KO1MnM0SDcXyGaZNX3kdsvzyLI8dykgdytUvcwWKgtsAzWDLScWWaD9BaTTQSPa/0JizH82o/GowP84b+ZuIKvCwlwKun7SOGU3yxm1ukSfrgvrj6zwn65tddKVYwpkdVyqsQH/dTwXoDuE3RRDDLlajLSE5fKEu0BA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531790; c=relaxed/simple; bh=SR+AZpZD02VMQa8ogmCondpFk//aVStYltD8hKLvKho=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JCCTzUfjhQL9BdV2dsvBuEDUxQjuOVgFHo6xQvR/OIGwhcbaMsWCFDmXNGPciZ0pxUPWP/lxy2o4HTRRxZxuijqUQHp4AU20KyNqR3o2HJKayGyy/TQTQyfjylZDQMG9YqBvnLR9Mv4PjMYEz454mkNqqHmrpvTFL01maQnigCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bBx+qnhB; 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="bBx+qnhB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ACC3C4CEE3; Thu, 3 Jul 2025 08:36:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531789; bh=SR+AZpZD02VMQa8ogmCondpFk//aVStYltD8hKLvKho=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bBx+qnhBWoUu7gElPrlfzzI8rUKtYenkZl3/47VuGFVVH+1vVthtd5+I/BqMy91YT wcLK/MO2ezsvTNq4Z8MIy2de0InYRORUQEJxufaXHDrL6rdrBYfufkE5BkYKswCAVM xUNAHSxhyUqC+l+WgUMcOeez5Oux/Ifbhu9eLk08= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38121: wifi: iwlwifi: mld: avoid panic on init failure Date: Thu, 3 Jul 2025 10:35:38 +0200 Message-ID: <2025070327-CVE-2025-38121-5390@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=2301; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sRFGlNaY2N6yYzUZLF4dv4FidzuOn/9EG96/PNOWiOU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDue3aFfdZyg627Nwl3N7V88Ld+189ZyTz25dKKprP 6t0dc2ujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIeA/DPK3VSpYJnK+v3ZjJ 4exoZL7pj7+HFsOCWcqmXpXZPvMKZv04y9los3Kvh9ofAA== 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: iwlwifi: mld: avoid panic on init failure In case of an error during init, in_hw_restart will be set, but it will never get cleared. Instead, we will retry to init again, and then we will act like we are in a restart when we are actually not. This causes (among others) to a NULL pointer dereference when canceling rx_omi::finished_work, that was not even initialized, because we thought that we are in hw_restart. Set in_hw_restart to true only if the fw is running, then we know that FW was loaded successfully and we are not going to the retry loop. The Linux kernel CVE team has assigned CVE-2025-38121 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 7391b2a4f7dbb7be7dd763bc87506c10f570a8d3 and fixed in 6.15.3 with commit a26ec8e16958b6dd37dac9daf5fb6978fe0cb0b8 Issue introduced in 6.14 with commit 7391b2a4f7dbb7be7dd763bc87506c10f570a8d3 and fixed in 6.16-rc1 with commit 960c7e6d388034d219dafffa6da0a5c2ccd5ff30 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-38121 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/intel/iwlwifi/mld/mld.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/a26ec8e16958b6dd37dac9daf5fb6978fe0cb0b8 https://git.kernel.org/stable/c/960c7e6d388034d219dafffa6da0a5c2ccd5ff30