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 A53F1E567 for ; Thu, 1 May 2025 14:12:47 +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=1746108767; cv=none; b=Yb/tnn9e1NhrLTa/jX8weav5ERnlbslTjFGZPBSt8n5vbdyQxU345NdKJqmD0IninmH8ZWCYrHYrQVgcpj+ul0mqkh6SWMRvsqXRa1o9c5gP4N8mMIAxh5CWD+Y+J4IQ782iNOjTnF6Q581ghXCKs20HTS+TmYW92WQ+Yl36lt4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108767; c=relaxed/simple; bh=esv/b+HvSncnsJKkZKxBmVNo9Sb9Iq87yHOP3vsibIA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hlr+7ilFC1fpPfGjUejqvY8qIByQ3+sKJV2Q5ActFEwnLSpSZVb0CumnUaQY/u8A8xwyPWc3rVUBGGeloGrWPvO3O9Bn/2V462XetS3ksY++kmcIQugOw/MD1S/MZ/u+HPXX0k0BdDAAv3wOllpVIdZg/6XA6H10TmLHcg5nnu0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TgzQgwPg; 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="TgzQgwPg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 157B9C4CEE3; Thu, 1 May 2025 14:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108767; bh=esv/b+HvSncnsJKkZKxBmVNo9Sb9Iq87yHOP3vsibIA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TgzQgwPgX1M6AkfucjuBGh62+JnbV/8pz4HinaVYfot0OyMPc+1dxNiCAI/MrBGAP fEDTtw/Uwy2c8B6TpziGx0L5HP1lC/31093Zx7upFnciQDEwzPbad0hfqagQFZub7C k8CLUl/ja0UlmR0n9HhSaGHYvaVo5od3NvjC2jNA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49776: macvlan: enforce a consistent minimal mtu Date: Thu, 1 May 2025 16:09:26 +0200 Message-ID: <2025050117-CVE-2022-49776-6054@gregkh> X-Mailer: git-send-email 2.49.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=3511; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9ZYJAWffoFxlmtbboUiISeIzby6PVpXTenUQ4NLXOtU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDb01SZKr/ReuS11w5Niylg2dtR+YVb8xz4+aVZgTz nosPnxFRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkzRSGOVzBUf8j+Q9+7lsx 5z6jNd9uP6XrcQzzM+vXMr/qijrtvafEzc3cS+3pX/tZAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: macvlan: enforce a consistent minimal mtu macvlan should enforce a minimal mtu of 68, even at link creation. This patch avoids the current behavior (which could lead to crashes in ipv6 stack if the link is brought up) $ ip link add macvlan1 link eno1 mtu 8 type macvlan # This should fail ! $ ip link sh dev macvlan1 5: macvlan1@eno1: mtu 8 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 02:47:6c:24:74:82 brd ff:ff:ff:ff:ff:ff $ ip link set macvlan1 mtu 67 Error: mtu less than device minimum. $ ip link set macvlan1 mtu 68 $ ip link set macvlan1 mtu 8 Error: mtu less than device minimum. The Linux kernel CVE team has assigned CVE-2022-49776 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 91572088e3fdbf4fe31cf397926d8b890fdb3237 and fixed in 4.14.300 with commit d2fee7d121d189c6dc905b727d60e7043a6655bb Issue introduced in 4.10 with commit 91572088e3fdbf4fe31cf397926d8b890fdb3237 and fixed in 4.19.267 with commit 650137a7c0b2892df2e5b0bc112d7b09a78c93c8 Issue introduced in 4.10 with commit 91572088e3fdbf4fe31cf397926d8b890fdb3237 and fixed in 5.4.225 with commit a62aa84fe19eb24d083d600a074c009a0a66d4f3 Issue introduced in 4.10 with commit 91572088e3fdbf4fe31cf397926d8b890fdb3237 and fixed in 5.10.156 with commit e929ec98c0c3b10d9c07f3776df0c1a02d7a763e Issue introduced in 4.10 with commit 91572088e3fdbf4fe31cf397926d8b890fdb3237 and fixed in 5.15.80 with commit e41cbf98df22d08402e65174d147cbb187fe1a33 Issue introduced in 4.10 with commit 91572088e3fdbf4fe31cf397926d8b890fdb3237 and fixed in 6.0.10 with commit 2b055c719d8f94c15ec9b7659978133030c6a353 Issue introduced in 4.10 with commit 91572088e3fdbf4fe31cf397926d8b890fdb3237 and fixed in 6.1 with commit b64085b00044bdf3cd1c9825e9ef5b2e0feae91a 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-49776 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/macvlan.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/d2fee7d121d189c6dc905b727d60e7043a6655bb https://git.kernel.org/stable/c/650137a7c0b2892df2e5b0bc112d7b09a78c93c8 https://git.kernel.org/stable/c/a62aa84fe19eb24d083d600a074c009a0a66d4f3 https://git.kernel.org/stable/c/e929ec98c0c3b10d9c07f3776df0c1a02d7a763e https://git.kernel.org/stable/c/e41cbf98df22d08402e65174d147cbb187fe1a33 https://git.kernel.org/stable/c/2b055c719d8f94c15ec9b7659978133030c6a353 https://git.kernel.org/stable/c/b64085b00044bdf3cd1c9825e9ef5b2e0feae91a