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 D262E101F2 for ; Tue, 16 Jul 2024 11:45:57 +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=1721130357; cv=none; b=TJ1+K8pY0B7jMVTe3pCdFTWMaUtbtarU3WFhTQibGkCPe6ie3jHjGr+sipfhfesrwjQHVXZtdihTbzKqBLnvlcRCp7Z8LeJnUPFA/MDG/+Qe5NwdowSflFvMLCX0h39b7yrP23ui7N3pc6OFM6acaXOAm7cfG+Za3c9bnu9kcrY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130357; c=relaxed/simple; bh=aCKpd2nn9EBtFt2Yg4/gmWrxtLgCWx6WAUAQiPIelT4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rx4GuE91CWw5ozy2e6a9tJ+GNE3YBKu8EA2L4EUi5mkp1lY0OxaYRD8llNbqYVE+6JTlNNVGtM5JXNNoUrdxZiRhEUjboxdYZYFbci6A6GwKdbwExcxA/sGtIMh6x9eJmD0BspEWcUucVmo5d3pajXJuGsXb9LABdi9HVqOco58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=agqbRM77; 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="agqbRM77" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A378C116B1; Tue, 16 Jul 2024 11:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130357; bh=aCKpd2nn9EBtFt2Yg4/gmWrxtLgCWx6WAUAQiPIelT4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=agqbRM773E29aOMw5dyv3Rx/DY9NdgHqdmU6HNgtRoMO6LawJPgoMmHXVfmo3Axr4 giXpC6P6foyFnUpl1DfrvlWNFoHfbEXndHoigRBbk68y1uIACYWo/BiIUI1NFBM5tb 0etjWK5PBbZKwGKtmQFyuBz73l1UoTqtUdEG5g5o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48787: iwlwifi: fix use-after-free Date: Tue, 16 Jul 2024 13:45:39 +0200 Message-ID: <2024071639-CVE-2022-48787-98e4@gregkh> X-Mailer: git-send-email 2.45.2 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=2858; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aCKpd2nn9EBtFt2Yg4/gmWrxtLgCWx6WAUAQiPIelT4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYlP40/dZeCXuW3RNQ17+0kztpoxklw+6PzbIRGr4K RYc+3OsI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSX8YwPzQ++Fe38eOiGJOM AKVrMSz9ebs9GRbsU7kXO6VErETWoEDqde6qGOfkyv8A X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: iwlwifi: fix use-after-free If no firmware was present at all (or, presumably, all of the firmware files failed to parse), we end up unbinding by calling device_release_driver(), which calls remove(), which then in iwlwifi calls iwl_drv_stop(), freeing the 'drv' struct. However the new code I added will still erroneously access it after it was freed. Set 'failure=false' in this case to avoid the access, all data was already freed anyway. The Linux kernel CVE team has assigned CVE-2022-48787 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14.263 with commit 8e10749fa1a4 and fixed in 4.14.268 with commit d3b98fe36f8a Issue introduced in 4.19.226 with commit 1d7cc54137a4 and fixed in 4.19.231 with commit 7d6475179b85 Issue introduced in 5.4.174 with commit 0446cafa843e and fixed in 5.4.181 with commit 494de920d98f Issue introduced in 5.10.94 with commit febab6b60d61 and fixed in 5.10.102 with commit 008508c16af0 Issue introduced in 5.15.17 with commit e23f075d7798 and fixed in 5.15.25 with commit ddd46059f7d9 Issue introduced in 5.16.3 with commit 6b5ad4bd0d78 and fixed in 5.16.11 with commit 9958b9cbb221 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-2022-48787 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/iwl-drv.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/d3b98fe36f8a06ce654049540773256ab59cb53d https://git.kernel.org/stable/c/7d6475179b85a83186ccce59cdc359d4f07d0bcb https://git.kernel.org/stable/c/494de920d98f125b099f27a2d274850750aff957 https://git.kernel.org/stable/c/008508c16af0087cda0394e1ac6f0493b01b6063 https://git.kernel.org/stable/c/ddd46059f7d99119b62d44c519df7a79f2e6a515 https://git.kernel.org/stable/c/9958b9cbb22145295ee1ffaea0904c383da2c05d https://git.kernel.org/stable/c/bea2662e7818e15d7607d17d57912ac984275d94