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 6C9051FAC56 for ; Mon, 21 Oct 2024 18:06: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=1729533971; cv=none; b=Now5Wr/g7Z+kSf2/9kGGzGf1VsVSvMA6pbfhP0mEjaGpeBpfo5eMnx5lae1AdbjN+KkjV0+vI9rHc62OK68d2KNZUAcRiQNuxQ/RGLO0da5Ib3ozltu7d4rDagMcgwH184iHFnn/9HJoJ+xlfqnW4jV0pcT+yvBkal77ouMUsFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533971; c=relaxed/simple; bh=25NFK5cK+SriHR9uBjdbzcjdlPMnlCU36PCsjxAh6Rw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YsIomEH8MKbNMDp2QTM5QdILBeT/CsRmod9bddiEVL+35uFb8WEzLDbh4odsXPDJUud6paWnXL7yLpgPlLbCNR7FOjU1OaAKIZujCI4DuFDZhLlyMNoD3W5zH4y0Dg8JYllEM58D1YoYqdqvgwn6mUBPp6jPcP2mVvWcx9rGs6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Hiyobgrc; 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="Hiyobgrc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA178C4CEC3; Mon, 21 Oct 2024 18:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533971; bh=25NFK5cK+SriHR9uBjdbzcjdlPMnlCU36PCsjxAh6Rw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HiyobgrcLjoto+28ejaf9Mnf0djAUpz+WzoFyIhXYH+FsP4muIkr5bkGxUAbKKZHK yoVhvn7mYQ95eaWTF7ENxqtiRdEFi006nGB/nRBsXeG5rge1OdzcHygwD7jnjwDLOX eN9u5DLhTHQz8CfHW/MO1TYJM9bCJsXtAIJs5Q7U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49948: net: add more sanity checks to qdisc_pkt_len_init() Date: Mon, 21 Oct 2024 20:02:36 +0200 Message-ID: <2024102129-CVE-2024-49948-ba28@gregkh> X-Mailer: git-send-email 2.47.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=3085; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=25NFK5cK+SriHR9uBjdbzcjdlPMnlCU36PCsjxAh6Rw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli035+3uL1+FjyWbZE1V+Z+SFTdlk67j7z5K0XW9bhL UvV3Ze86YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJXLrGME+p6oTVQevVzdO6 Q8J49S/pFf9ZZMMwhz/zp8vhDeft2NpP/2lbXvohs+9LCAA= 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: add more sanity checks to qdisc_pkt_len_init() One path takes care of SKB_GSO_DODGY, assuming skb->len is bigger than hdr_len. virtio_net_hdr_to_skb() does not fully dissect TCP headers, it only make sure it is at least 20 bytes. It is possible for an user to provide a malicious 'GSO' packet, total length of 80 bytes. - 20 bytes of IPv4 header - 60 bytes TCP header - a small gso_size like 8 virtio_net_hdr_to_skb() would declare this packet as a normal GSO packet, because it would see 40 bytes of payload, bigger than gso_size. We need to make detect this case to not underflow qdisc_skb_cb(skb)->pkt_len. The Linux kernel CVE team has assigned CVE-2024-49948 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit 1def9238d4aa and fixed in 5.10.227 with commit 566a931a1436 Issue introduced in 3.9 with commit 1def9238d4aa and fixed in 5.15.168 with commit 2415f465730e Issue introduced in 3.9 with commit 1def9238d4aa and fixed in 6.1.113 with commit 27a8fabc54d2 Issue introduced in 3.9 with commit 1def9238d4aa and fixed in 6.6.55 with commit 9b0ee571d20a Issue introduced in 3.9 with commit 1def9238d4aa and fixed in 6.10.14 with commit ff1c3cadcf40 Issue introduced in 3.9 with commit 1def9238d4aa and fixed in 6.11.3 with commit 1eebe602a8d8 Issue introduced in 3.9 with commit 1def9238d4aa and fixed in 6.12-rc2 with commit ab9a9a9e9647 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-2024-49948 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: net/core/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/566a931a1436d0e0ad13708ea55479b95426213c https://git.kernel.org/stable/c/2415f465730e48b6e38da1c7c097317bf5dd2d20 https://git.kernel.org/stable/c/27a8fabc54d2f960d47bdfbebf2bdc6e8a92a4c4 https://git.kernel.org/stable/c/9b0ee571d20a238a22722126abdfde61f1b2bdd0 https://git.kernel.org/stable/c/ff1c3cadcf405ab37dd91418a62a7acecf3bc5e2 https://git.kernel.org/stable/c/1eebe602a8d8264a12e35e39d0645fa88dbbacdd https://git.kernel.org/stable/c/ab9a9a9e9647392a19e7a885b08000e89c86b535