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 439E6199242 for ; Tue, 16 Jul 2024 11:46:28 +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=1721130389; cv=none; b=GioxSufKSk6Xmb4Ima49n3hpOX5ENY3r6vgmmDTvhbgwFR/yV3uEPvhpfS2+s9uslI3SU55ce7Ld55Cq9EL1IMtQOFKXEFs8kOekr03AERQszWvAgvda4I2NL2KywYAiql+V6bIf9JIzdF0vj28I0nAKQEnx5L+DRRIhAZgaNOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130389; c=relaxed/simple; bh=dYgadvmoX4Y1tlQNdwB2IYxH83vUnCNOdbbkDFuh/1g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y6yzrMJE7cRku3TWoaCoppVSjt8awgk6hL+zL5na/Q0S87AyrgcYdvtCrEK3ChSBVeIGAd324CieXNBifJxC7bCoXuVslo4bR1hvHve2EG6z+04o2GbBFPwt5l8H8l93MzMY4d/wMQItol1Jr8bMTW38zUCco09z9q8hxecbCTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F432tfiD; 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="F432tfiD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D5FDC116B1; Tue, 16 Jul 2024 11:46:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130388; bh=dYgadvmoX4Y1tlQNdwB2IYxH83vUnCNOdbbkDFuh/1g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=F432tfiDc+NH9HBUkKHOHJEHmto/jTwDuakYKKlKPf9NvWMuFDfBnw5Knr/E+ddcG NjyGprP+Poa9T8NCigeTC7VhOsXtRrSa6N43mij9/Qbt38K3Ojv9HkeimNh0DrAWpF fAdeVSoQAhfV/O6mxn2903Tjc0kxuUOK+bRgY6Zo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48805: net: usb: ax88179_178a: Fix out-of-bounds accesses in RX fixup Date: Tue, 16 Jul 2024 13:45:57 +0200 Message-ID: <2024071645-CVE-2022-48805-afec@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=3686; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dYgadvmoX4Y1tlQNdwB2IYxH83vUnCNOdbbkDFuh/1g=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYjPXnLHZEbfJJLeiSuX1YoGsC3fPcE0vlnRwYDaZc IfrS2dkRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEeSLDHP5VOux/Z0aw96rK uCxbOtO/S/xqOcOCzSu5dk0747t59QfBh2f+3zrjWx42DwA= 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: net: usb: ax88179_178a: Fix out-of-bounds accesses in RX fixup ax88179_rx_fixup() contains several out-of-bounds accesses that can be triggered by a malicious (or defective) USB device, in particular: - The metadata array (hdr_off..hdr_off+2*pkt_cnt) can be out of bounds, causing OOB reads and (on big-endian systems) OOB endianness flips. - A packet can overlap the metadata array, causing a later OOB endianness flip to corrupt data used by a cloned SKB that has already been handed off into the network stack. - A packet SKB can be constructed whose tail is far beyond its end, causing out-of-bounds heap data to be considered part of the SKB's data. I have tested that this can be used by a malicious USB device to send a bogus ICMPv6 Echo Request and receive an ICMPv6 Echo Reply in response that contains random kernel heap data. It's probably also possible to get OOB writes from this on a little-endian system somehow - maybe by triggering skb_cow() via IP options processing -, but I haven't tested that. The Linux kernel CVE team has assigned CVE-2022-48805 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 4.9.303 with commit 711b6bf3fb05 Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 4.14.268 with commit 63f0cfb36c1f Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 4.19.231 with commit 1668781ed24d Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 5.4.180 with commit a0fd5492ee76 Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 5.10.101 with commit 758290defe93 Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 5.15.24 with commit ffd0393adcdc Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 5.16.10 with commit 9681823f96a8 Issue introduced in 3.9 with commit e2ca90c276e1 and fixed in 5.17 with commit 57bc3d3ae8c1 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-48805 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/ax88179_178a.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/711b6bf3fb052f0a6b5b3205d50e30c0c2980382 https://git.kernel.org/stable/c/63f0cfb36c1f1964a59ce544156677601e2d8740 https://git.kernel.org/stable/c/1668781ed24da43498799aa4f65714a7de201930 https://git.kernel.org/stable/c/a0fd5492ee769029a636f1fb521716b022b1423d https://git.kernel.org/stable/c/758290defe93a865a2880d10c5d5abd288b64b5d https://git.kernel.org/stable/c/ffd0393adcdcefab7e131488e10dcfde5e02d6eb https://git.kernel.org/stable/c/9681823f96a811268265f35307072ad80713c274 https://git.kernel.org/stable/c/57bc3d3ae8c14df3ceb4e17d26ddf9eeab304581