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 19E1615A864 for ; Mon, 29 Jul 2024 14:33:49 +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=1722263629; cv=none; b=gSX1+mQ0UcHvXa2jQydbBZGmtooqt1NSgj5zdLzA9fh9q/ynXnAXjz+rQlNMvv6iq2yrpjETLnrtlqKhYWRcVvujKQSu3tAIaKAdYBL9rscnc2BYgqO0SXgi1hlLFviBlIfS2YO/pGcQ4cx42pF7KTceyIYUNkFiR0udtfpJLXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722263629; c=relaxed/simple; bh=f1H8Wr/ltFJvS1stO4nujVxEy/E51V/vfjTlF+4F8f0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FXGikNgekL6GM1LBUKK7qYGccgtlE1fmKSvJi54BtMuEEHZxPomgUuh2O5q4U0pf0l3nneCwfZ6KW1DiQSTvIPps8d9jIaafGGAowPnJqwdyH02oMVnowyT2OTviJ97oXcbExfXLv0LMNVqHY3H+0B1onErIRonlfkc87/nSC6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bo/qTWMN; 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="bo/qTWMN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92B32C32786; Mon, 29 Jul 2024 14:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722263629; bh=f1H8Wr/ltFJvS1stO4nujVxEy/E51V/vfjTlF+4F8f0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bo/qTWMN6Efur3zclJ7jiVFfA9ENP5wDA7fvPwr0AzMbqMGj6XRI0lSu06wMFbtGV ZO5ljWLIh2VNA55Yynn0SjUhoZVzxERqIHAuAqwLwuPZEf7XCX+Ljb3IkUDDcB4cz/ 2A6dcNk3Cf76KtpuFLtlOnrepL9TRD0v/0F6QumY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41052: vfio/pci: Init the count variable in collecting hot-reset devices Date: Mon, 29 Jul 2024 16:32:47 +0200 Message-ID: <2024072927-CVE-2024-41052-1a10@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=1918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=f1H8Wr/ltFJvS1stO4nujVxEy/E51V/vfjTlF+4F8f0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLl/+p1/hyw4HDqtGFsUI0cWcVk46CdXZtu5Lrogaxx gnhl7d3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwES2FDPMz1VKl1/8Ycr6E6tt T67N6/O3FTp2mmHBtTg1AS2eqSKzK48f0X446fw9vw0dAA== 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: vfio/pci: Init the count variable in collecting hot-reset devices The count variable is used without initialization, it results in mistakes in the device counting and crashes the userspace if the get hot reset info path is triggered. The Linux kernel CVE team has assigned CVE-2024-41052 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.36 with commit 618fbf4c910a and fixed in 6.6.41 with commit f476dffc52ea Issue introduced in 6.9.7 with commit 9313244c26f3 and fixed in 6.9.10 with commit f44136b96522 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-2024-41052 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/vfio/pci/vfio_pci_core.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/f476dffc52ea70745dcabf63288e770e50ac9ab3 https://git.kernel.org/stable/c/f44136b9652291ac1fc39ca67c053ac624d0d11b https://git.kernel.org/stable/c/5a88a3f67e37e39f933b38ebb4985ba5822e9eca