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 71CD821C16D for ; Wed, 26 Feb 2025 02:27:56 +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=1740536876; cv=none; b=aPtXAenCfKFdbhX9C6G+66nSU67dRpgFTGDw4ljKDMWUTiNnfARzeQ/j9zMKj7z79OGPt0Cq8ysc1AhFjan6tpFU18fVyVE3CL7MFqpnjPiCLCVzmvnRU2jdG/QHOCjHFEyF6OpgW6g6881fOqsBorUEXCeYu7frWnWN5mz8nl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536876; c=relaxed/simple; bh=U22VaP7EVuouXmxASSw7d5ZxQZKTPA03aWs/lhhBdsI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KWBUyHhRhxJqhNIngbpDTDbB3e3GK+5iCM6WOiMmIES6wd5u3XyV5J0zFPXdR1lbpp31sTnvkjaKWyYaZGIUl/MVKphnepsr0C+ZsQLAJuP4ED/ESCi1oyT5v3p263rXx9C49L3polumXfX++kI4Ox5elVy/DNbWHzmy1CHxmIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SpD41F1R; 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="SpD41F1R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4244BC4CEDD; Wed, 26 Feb 2025 02:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536876; bh=U22VaP7EVuouXmxASSw7d5ZxQZKTPA03aWs/lhhBdsI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SpD41F1RxONhOuA9jQoHS1sow2IMBlgYkr3srCB0T/a5LDZpoVKf7uP7x/ke01e1i u2sVttI4UYJUWmzsZ/h6Y+aHJUWxpgZUMYf7hSKyI5U/uZ+YPvNFzKbepBUlczbsYz A7HfMJUet7oJmD+KZ6ag4T4iQiZaFyFO7MUk7o/0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49727: ipv6: Fix signed integer overflow in l2tp_ip6_sendmsg Date: Wed, 26 Feb 2025 03:24:50 +0100 Message-ID: <2025022633-CVE-2022-49727-a010@gregkh> X-Mailer: git-send-email 2.48.1 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=2637; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U22VaP7EVuouXmxASSw7d5ZxQZKTPA03aWs/lhhBdsI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7ql6uK++/uXga3wE9jo7bu42cS2NXzvB8ePqNY89hA 9ZkkyzujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIjckM8yMkOe9VW5lF/nKR vKPw3a606ojEdob5Yelnplos5BfIK1Q9sd/C7bDU78pTAA== 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: ipv6: Fix signed integer overflow in l2tp_ip6_sendmsg When len >= INT_MAX - transhdrlen, ulen = len + transhdrlen will be overflow. To fix, we can follow what udpv6 does and subtract the transhdrlen from the max. The Linux kernel CVE team has assigned CVE-2022-49727 to this issue. Affected and fixed versions =========================== Fixed in 4.9.320 with commit 2cf73c7cb6125083408d77f43d0e84d86aed0000 Fixed in 4.14.285 with commit 0e818d433fc2718fe4da044ffca7431812a7e04e Fixed in 4.19.249 with commit 6c4e3486d21173d60925ef52e512cae727b43d30 Fixed in 5.4.200 with commit 2f42389d270f2304c8855b0b63498a5a4d0c053d Fixed in 5.10.124 with commit b8879ca1fd7348b4d5db7db86dcb97f60c73d751 Fixed in 5.15.49 with commit 27a37755ceb401111ded76810359d3adc4b268a1 Fixed in 5.18.6 with commit 034246122f5c5e2e2a0b9fe04e24517920e9beb1 Fixed in 5.19 with commit f638a84afef3dfe10554c51820c16e39a278c915 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-49727 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/l2tp/l2tp_ip6.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/2cf73c7cb6125083408d77f43d0e84d86aed0000 https://git.kernel.org/stable/c/0e818d433fc2718fe4da044ffca7431812a7e04e https://git.kernel.org/stable/c/6c4e3486d21173d60925ef52e512cae727b43d30 https://git.kernel.org/stable/c/2f42389d270f2304c8855b0b63498a5a4d0c053d https://git.kernel.org/stable/c/b8879ca1fd7348b4d5db7db86dcb97f60c73d751 https://git.kernel.org/stable/c/27a37755ceb401111ded76810359d3adc4b268a1 https://git.kernel.org/stable/c/034246122f5c5e2e2a0b9fe04e24517920e9beb1 https://git.kernel.org/stable/c/f638a84afef3dfe10554c51820c16e39a278c915