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 02FEB191484 for ; Tue, 30 Jul 2024 07:52:20 +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=1722325940; cv=none; b=tqyGzopzBJVAAZRaIjqBGQbOSzZ4Ie3FbF+HCLaHgypUb1QDbmzCaZuUTY/qFw3N/1b15m5d0zTXcIpR4RhqSFf7Rl2LXy8TfoHDi37cqw2F16GQRS0FnZavroSCmqyJ4yZOPHwJYmLpXkh+HC1O4LpNKa6mID45HV8Ut1EgBac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325940; c=relaxed/simple; bh=Ln0hHThAebH0mhsXaYoPQOAFb7+0Z/XQV2WULuk9LDk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SM+4qi6+5d91SeQwCjtLRvw7DlPRoMxqKr2KuBVr/kfh8YSwkAzvJkzbQGgNu98dIpBVzC604iNj0uYXhF3Pss2a2Ds5PoIKP/bJqPYvqqadBedaIlUiKKHCIgxVnDcZxMxnw+L4SWGIoivzOd158X389+Yg8iPHrQVtUooUJb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CfMOsmDt; 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="CfMOsmDt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 695D6C32782; Tue, 30 Jul 2024 07:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325939; bh=Ln0hHThAebH0mhsXaYoPQOAFb7+0Z/XQV2WULuk9LDk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CfMOsmDtRSDEanCNEowDGxbXx0ZqacruQZkyCAtTISyCuAh80PrFvRpRdKDzAzR4w wxstc77rARQ+dHQloOK8+2ZzdUe5Fh5rR5sFZKX1m06JsjF4iOeZyorpE9gUoHAPre 10Mr/sOewTsnd1ntWz/ZyBtZjSTjycxpH+uYq2qc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42154: tcp_metrics: validate source addr length Date: Tue, 30 Jul 2024 09:48:12 +0200 Message-ID: <2024073034-CVE-2024-42154-cf82@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=2883; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ln0hHThAebH0mhsXaYoPQOAFb7+0Z/XQV2WULuk9LDk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk3bKyi1sDE1wSxToEy46MW0znVR8t9avbSW/Dw2u 0iRM4+rI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiEMcwz1ZbmGGp8edzrwvs XneH5HAUNYZqM8xTtDmZ4T7hnBin40pTnoQEuXcaTesB 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: tcp_metrics: validate source addr length I don't see anything checking that TCP_METRICS_ATTR_SADDR_IPV4 is at least 4 bytes long, and the policy doesn't have an entry for this attribute at all (neither does it for IPv6 but v6 is manually validated). The Linux kernel CVE team has assigned CVE-2024-42154 to this issue. Affected and fixed versions =========================== Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 4.19.318 with commit 19d997b59fa1 Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 5.4.280 with commit 2a2e79dbe223 Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 5.10.222 with commit cdffc358717e Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 5.15.163 with commit ef7c428b425b Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 6.1.98 with commit 31f03bb04146 Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 6.6.39 with commit 8c2debdd170e Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 6.9.9 with commit 3d550dd54187 Issue introduced in 3.14 with commit 3e7013ddf55a and fixed in 6.10 with commit 66be40e622e1 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-42154 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/ipv4/tcp_metrics.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/19d997b59fa1fd7a02e770ee0881c0652b9c32c9 https://git.kernel.org/stable/c/2a2e79dbe2236a1289412d2044994f7ab419b44c https://git.kernel.org/stable/c/cdffc358717e436bb67122bb82c1a2a26e050f98 https://git.kernel.org/stable/c/ef7c428b425beeb52b894e16f1c4b629d6cebfb6 https://git.kernel.org/stable/c/31f03bb04146c1c6df6c03e9f45401f5f5a985d3 https://git.kernel.org/stable/c/8c2debdd170e395934ac0e039748576dfde14e99 https://git.kernel.org/stable/c/3d550dd5418729a6e77fe7721d27adea7152e321 https://git.kernel.org/stable/c/66be40e622e177316ae81717aa30057ba9e61dff