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 96BD5208B8 for ; Thu, 22 Aug 2024 03:34:11 +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=1724297651; cv=none; b=ur+7D2Rm93eaMn+LnkE1Rr84oYyNKE11ceS1qafjmlNlTVKl51xBbYv3H8MagGxG1ub4d7XTHZkbRh2V28m0kscrhpH2ovS1Oh2NE1cYg0xzjl339mjnnY00JDNcQ7XcvJ/GZ+mgzHKQuwqoHeesX0ikwBrGBieXGDwH1wP8fxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724297651; c=relaxed/simple; bh=gzXJ9C3+3K+3CvGEGAtH+YUDmg9y9bIZQ514D59EDSo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S8Mx/zGBbIcfJa5FwX1B2FEJjlGmOWg4Lss+5wzhf2gEWKm8cPfSWcPbuCgH4K0gItdZXOedzWWOVEP1223qIaYza0i2iijy9/CWS5hu4YiIrsFRv8HQOGWC2ikyBlUJw2B3RyRlhUQKeEf+WpSPP1zx/07Om9RURmlmykI0g/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TPhCSDMW; 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="TPhCSDMW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29B43C4AF0C; Thu, 22 Aug 2024 03:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724297651; bh=gzXJ9C3+3K+3CvGEGAtH+YUDmg9y9bIZQ514D59EDSo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TPhCSDMWOFNbKtpf/1WDekr07Nd7/kZSdKyg6UOamBWlv6T6jYFy1XVdUzHdwbJ8S ZJfWPiJWWCMOMW36rSCJS1bzBBC8Rgnqv8oEwXomS7fr77ptmPvv8bfN7knVxvUl6h HdbVeKLhyiEeprw4TnMej+KgUqCQLc/FGavUvb2U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48938: CDC-NCM: avoid overflow in sanity checking Date: Thu, 22 Aug 2024 11:31:39 +0800 Message-ID: <2024082225-CVE-2022-48938-4501@gregkh> X-Mailer: git-send-email 2.46.0 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=2110; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gzXJ9C3+3K+3CvGEGAtH+YUDmg9y9bIZQ514D59EDSo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnHNvKe+XFju6XYRoUORuF7PjNXVT3ddv3fE6miCWzJ7 VZVp/RlO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi6mEMC65xuMybUTLhwasX Jwq8FHnTbv7dYcuw4IJN7MaoJ5eZD3+9YWCxcn92zee5GwE= 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: CDC-NCM: avoid overflow in sanity checking A broken device may give an extreme offset like 0xFFF0 and a reasonable length for a fragment. In the sanity check as formulated now, this will create an integer overflow, defeating the sanity check. Both offset and offset + len need to be checked in such a manner that no overflow can occur. And those quantities should be unsigned. The Linux kernel CVE team has assigned CVE-2022-48938 to this issue. Affected and fixed versions =========================== Fixed in 5.10.103 with commit 69560efa0013 Fixed in 5.15.26 with commit 49909c9f8458 Fixed in 5.16.12 with commit 7b737e47b875 Fixed in 5.17 with commit 8d2b1a1ec9f5 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-48938 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/usb/cdc_ncm.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/69560efa001397ebb8dc1c3e6a3ce00302bb9f7f https://git.kernel.org/stable/c/49909c9f8458cacb5b241106cba65aba5a6d8f4c https://git.kernel.org/stable/c/7b737e47b87589031f0d4657f6d7b0b770474925 https://git.kernel.org/stable/c/8d2b1a1ec9f559d30b724877da4ce592edc41fdc