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 C8BD919923E for ; Tue, 16 Jul 2024 12:28:58 +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=1721132938; cv=none; b=iUj/5X4yAqzkg9McnqyA34NmdwITfRo/MTgFhE61jE0jPMhrsITSFfe8RxF5pppZl4R1iCsAJE4zwRrpiOHT1IX7Ag5c4Grinec3dm6A+i2vDDfZOh5hWbYwdBM/ufJnS0l6Al0u2TOQIbKg9a+w+pNiQPTB9emS5s+RMIL3RFU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721132938; c=relaxed/simple; bh=pwIC56xr02jfiL7MTIGyrTtSZjBqh/vDy4NTLsevnuk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rEWJtBhX7O6Srz6pWziQz0unMh308JdDn9P2uMKG6YKgfmOve1xFs9dJQbjHQ7BR9HufOmEkQngT0eh5IS5ItICUrrQVfuvpjNsijIvwCJdEhMOkQV+Y9kN7UCrZkgcAzsIPYTjYymDQnUt5s67DVok64CmIUAT7Zq7nigT5R1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=njVDe62w; 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="njVDe62w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A9FEC116B1; Tue, 16 Jul 2024 12:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721132938; bh=pwIC56xr02jfiL7MTIGyrTtSZjBqh/vDy4NTLsevnuk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=njVDe62w9wzZlWHMwhNmUmyDQM5nlDQxY5M6uJWwGeVwbM6D1AHxT3NSOwBm2Wlvi 5IEFpKK0ui3pF7b8Fgbv/yeZnv9Ch1JRln8l61jWKUIICnlc45d6bkaxNY1Unmgsfq ZcRWDcmUoiQc1M7ynXiYG0e7pqK5j0l6giG48+0M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48837: usb: gadget: rndis: prevent integer overflow in rndis_set_response() Date: Tue, 16 Jul 2024 14:27:22 +0200 Message-ID: <2024071621-CVE-2022-48837-9325@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=2735; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pwIC56xr02jfiL7MTIGyrTtSZjBqh/vDy4NTLsevnuk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnT0jXj8x7+FNzcUPO66aOD4g0lF4e9M+TKxU/z++gUi 2wuTwjpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn4PGVY0Oytphh7NL56PZvJ 17sf/7SH2CfaMMx393HMuy8WymwXsaXuscSBnbmLq/8CAA== 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: usb: gadget: rndis: prevent integer overflow in rndis_set_response() If "BufOffset" is very large the "BufOffset + 8" operation can have an integer overflow. The Linux kernel CVE team has assigned CVE-2022-48837 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9.302 with commit ff0a90739925 and fixed in 4.9.308 with commit 8b3e4d26bc9c Issue introduced in 4.14.267 with commit 4c22fbcef778 and fixed in 4.14.273 with commit c7953cf03a26 Issue introduced in 4.19.230 with commit db9aaa302629 and fixed in 4.19.236 with commit 138d4f739b35 Issue introduced in 5.4.180 with commit c9e952871ae4 and fixed in 5.4.187 with commit 218293762683 Issue introduced in 5.10.101 with commit fb4ff0f96de3 and fixed in 5.10.108 with commit 28bc0267399f Issue introduced in 5.15.24 with commit 2da3b0ab54fb and fixed in 5.15.31 with commit 56b38e3ca406 Issue introduced in 5.16.10 with commit 2724ebafda0a and fixed in 5.16.17 with commit df7e088d51cd 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-48837 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/usb/gadget/function/rndis.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/8b3e4d26bc9cd0f6373d0095b9ffd99e7da8006b https://git.kernel.org/stable/c/c7953cf03a26876d676145ce5d2ae6d8c9630b90 https://git.kernel.org/stable/c/138d4f739b35dfb40438a0d5d7054965763bfbe7 https://git.kernel.org/stable/c/21829376268397f9fd2c35cfa9135937b6aa3a1e https://git.kernel.org/stable/c/28bc0267399f42f987916a7174e2e32f0833cc65 https://git.kernel.org/stable/c/56b38e3ca4064041d93c1ca18828c8cedad2e16c https://git.kernel.org/stable/c/df7e088d51cdf78b1a0bf1f3d405c2593295c7b0 https://git.kernel.org/stable/c/65f3324f4b6fed78b8761c3b74615ecf0ffa81fa