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 E5B667F7F6 for ; Wed, 22 May 2024 08:19: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=1716365998; cv=none; b=dOdpvrgeJAdqQmgv2ar3dZijydUd+7osTRs+ONrRhiNnsvE4IoLfFsqVj5FzJa8ye6w3qdgTC9WQQ7Zwy19bRszNtq6vyYALY4ZKWxESPhmpFaceocnZ+Ea5qgGntmjulzMsms2pn4hbRVfC5l4bWOika1T6fOosqQrflZ+syV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716365998; c=relaxed/simple; bh=HjqYXWmcLIyE5PNzGmK6til4As8TflsuB7WrGuUXK5Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MYWaU+Nb5jPhPGH6O3V8Ojcc6zbt3MdmujkvMgtHQJhTmMnZDKTQfjOP3/P+K5Cc2vUEHlB/v/l4h9bI31v6s1aVl/C94BIFVFSe32ir03FeP2csze0egPXrWlSAJY+QbiUETFfvsw3egdNycIoyzNcDKmWcQtaY2Foz8r4a6oM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hL1npK8r; 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="hL1npK8r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6027AC32781; Wed, 22 May 2024 08:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716365997; bh=HjqYXWmcLIyE5PNzGmK6til4As8TflsuB7WrGuUXK5Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hL1npK8rT5phCHOR2GuWo+EFw0OxajIbX/k1w18urGIRNNtN4pN9h8yvu7HLMm1Bb W4PZQL2rp6gI7mvvREltgNNLWsxPxN6diYfmmz34pf7oiHKvRiVgTlKmPL3SxCy51+ vvp5jAMeCiF57jXGMqggkTjD5d2x1FdsY/7opMlI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47485: IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields Date: Wed, 22 May 2024 10:19:45 +0200 Message-ID: <2024052239-CVE-2021-47485-4584@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=2929; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HjqYXWmcLIyE5PNzGmK6til4As8TflsuB7WrGuUXK5Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+q2YLHJ2Q5lo098omFSk9tYiWh1Ou3/z6Y0fQ7Wnii fsXeu9a2BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATmdXFsODKnEWHFgvptG7k O3Gt6LHdjufyC5cyzK/9EmrPzqWxV3T+sx0Trx9XfnBkTzkA 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: IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields Overflowing either addrlimit or bytes_togo can allow userspace to trigger a buffer overflow of kernel memory. Check for overflows in all the places doing math on user controlled buffers. The Linux kernel CVE team has assigned CVE-2021-47485 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 4.4.292 with commit bda41654b6e0 Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 4.9.290 with commit 3f57c3f67fd9 Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 4.14.255 with commit 60833707b968 Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 4.19.216 with commit 73d2892148aa Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 5.4.157 with commit 0f8cdfff0682 Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 5.10.77 with commit c3e17e58f571 Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 5.14.16 with commit 0d4395477741 Issue introduced in 2.6.35 with commit f931551bafe1 and fixed in 5.15 with commit d39bf40e55e6 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-47485 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/infiniband/hw/qib/qib_user_sdma.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/bda41654b6e0c125a624ca35d6d20beb8015b5d0 https://git.kernel.org/stable/c/3f57c3f67fd93b4da86aeffea1ca32c484d054ad https://git.kernel.org/stable/c/60833707b968d5ae02a75edb7886dcd4a957cf0d https://git.kernel.org/stable/c/73d2892148aa4397a885b4f4afcfc5b27a325c42 https://git.kernel.org/stable/c/0f8cdfff06829a0b0348b6debc29ff6a61967724 https://git.kernel.org/stable/c/c3e17e58f571f34c51aeb17274ed02c2ed5cf780 https://git.kernel.org/stable/c/0d4395477741608d123dad51def9fe50b7ebe952 https://git.kernel.org/stable/c/d39bf40e55e666b5905fdbd46a0dced030ce87be