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 C974C29CA for ; Wed, 22 May 2024 06:20:28 +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=1716358828; cv=none; b=LWie+N0huEUJkMnJ1a4JhdJadDQn7IM/Rsg3TQo/GXHeS3GraJQfEhkCl7nTMn/is38uwzYEub9eWBXbnWuGRm7CirosZW8k2jtIHlCTDk2u4y0ftpvmjKso03+8mcnALB7tP8A4SHJpYGWLU5vBxpzYs99BBv66EFGPMifPRV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716358828; c=relaxed/simple; bh=yUONg93pHNw8/oZouNpPT3FseJ6aPvdT59mFtluyQsQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I8fa6B9Mg1p9eZrswAY4qpOqfNvSHDOXWAa9ryf5SQoqXLbDJ59GYCPJ6PDHOYyh2w7A9eKB8JLEgzsaxx7FGPXRlbMLQJt9uK14SfAP2wZPTOMiox8rwtRDsCueQ39dtf8CbfYP55ZKeWNRPEn5o3WEy7ah0nes3DreOV9ScZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y3yBsHzC; 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="y3yBsHzC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5400CC2BD11; Wed, 22 May 2024 06:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716358828; bh=yUONg93pHNw8/oZouNpPT3FseJ6aPvdT59mFtluyQsQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y3yBsHzC8FTST9ZflkkH6QJOpPSVt5ggFLhU/JACBS9KSPTRuooJ/a1yKK9b68LYe Vx8Y6Qtr6hkEfr5k2ilgl2LDQVze5UQ3iQIeEpT+A89OJ3jFHOOUhEltv0uAPnZ2Rx juDraQ4HKuegb2YNExk8szBh0IMCMyOhZgLa0Sus= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47453: ice: Avoid crash from unnecessary IDA free Date: Wed, 22 May 2024 08:19:56 +0200 Message-ID: <2024052243-CVE-2021-47453-2f17@gregkh> X-Mailer: git-send-email 2.45.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=2286; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yUONg93pHNw8/oZouNpPT3FseJ6aPvdT59mFtluyQsQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+ffWnV39INamfzRoYk9XfI1L9nE/rrIBW0V2Fisazy QcX8d/riGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn4+DDMT9SM3eV2ru+hyL3b zeov248E3fc+xDBX6HpteccnDosayQVyj/+3B11amzUNAA== 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: ice: Avoid crash from unnecessary IDA free In the remove path, there is an attempt to free the aux_idx IDA whether it was allocated or not. This can potentially cause a crash when unloading the driver on systems that do not initialize support for RDMA. But, this free cannot be gated by the status bit for RDMA, since it is allocated if the driver detects support for RDMA at probe time, but the driver can enter into a state where RDMA is not supported after the IDA has been allocated at probe time and this would lead to a memory leak. Initialize aux_idx to an invalid value and check for a valid value when unloading to determine if an IDA free is necessary. The Linux kernel CVE team has assigned CVE-2021-47453 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit d25a0fc41c1f and fixed in 5.14.15 with commit 777682e59840 Issue introduced in 5.14 with commit d25a0fc41c1f and fixed in 5.15 with commit 73e30a62b19b 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-2021-47453 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/ethernet/intel/ice/ice_main.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/777682e59840e24e6c5672197e6ffbcf4bff823b https://git.kernel.org/stable/c/73e30a62b19b9fbb4e6a3465c59da186630d5f2e