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 77ED53B784 for ; Wed, 19 Jun 2024 14:56:04 +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=1718808964; cv=none; b=gpdwZ9O62ksUSkMu6wKcHl0Vii8DT1l6ozyagz82Hq/vDfnWdpGc1DUEyGdYSKHfU+pArfGn29EpT72UiNvpccRIMfkMjLq7ebnxmxUcjGbNQf5eH/rLJb/zkZtaP/wQuW9cRhiC+CWQR34tGUZnJC81+KrW1/cDH+uEDaYYOBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718808964; c=relaxed/simple; bh=+cV84hcBawl5jPFRQ1KS9r09xrYounLpHgajyoVmBQs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dSqm/6ml4Nvv4reCyWpiGXqJc6lZXDTcu8xdJQFsik+Hlkstihggv5uvuglE1ecghNqHE+0EOgK3FEJkXqATbgkIzWhbyuemckYYtkG8TMCIwDOfCZeb66Lw1zlKGF+mwpC5jKBWoomVcymRJ3Z7XT900AvAE3eSU+VMcNdhexE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0g18jcBZ; 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="0g18jcBZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93340C4AF07; Wed, 19 Jun 2024 14:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718808964; bh=+cV84hcBawl5jPFRQ1KS9r09xrYounLpHgajyoVmBQs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0g18jcBZkPUZL/HQ085Jq9gq/v4MJipL7ClbXTMc5sybo0sJCQjak65QVJx1Jlavh MUJ9vTyo2gkozkq7wWuw/083UkF4a7eFFQ7i/UayRRz6uSrZGvjj6ZhMTgiK3ILl46 QCV+vw2UFKcOdAS7etOqTL3VJ1Cfa8pQscW8Z3Dw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47605: vduse: fix memory corruption in vduse_dev_ioctl() Date: Wed, 19 Jun 2024 16:54:44 +0200 Message-ID: <2024061923-CVE-2021-47605-3d20@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=2017; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+cV84hcBawl5jPFRQ1KS9r09xrYounLpHgajyoVmBQs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH+WD/s6t1916vfvFtU71t9Ncb5xbWD2ndaMYp+yD2 5PMJHf96YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJyBQwLNh0/Y3epglcjjJF Urs1H6w4qXdHQZ1hwam7xxOeSRZv8ViS4Cpa1xZ+K698KgA= 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: vduse: fix memory corruption in vduse_dev_ioctl() The "config.offset" comes from the user. There needs to a check to prevent it being out of bounds. The "config.offset" and "dev->config_size" variables are both type u32. So if the offset if out of bounds then the "dev->config_size - config.offset" subtraction results in a very high u32 value. The out of bounds offset can result in memory corruption. The Linux kernel CVE team has assigned CVE-2021-47605 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit c8a6153b6c59 and fixed in 5.15.11 with commit e6c67560b434 Issue introduced in 5.15 with commit c8a6153b6c59 and fixed in 5.16 with commit ff9f9c6e7484 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-47605 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/vdpa/vdpa_user/vduse_dev.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/e6c67560b4341914bec32ec536e931c22062af65 https://git.kernel.org/stable/c/ff9f9c6e74848170fcb45c8403c80d661484c8c9