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 7991215B0F2 for ; Wed, 18 Sep 2024 07:17:54 +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=1726643874; cv=none; b=R8ES52/6qv5TQm8JYGZ+FXqqKK3NtXtEqgdCZ4BF4imqDL5KoCWquxMJ+70UaIupI+CzY7mfsZg1pCLNBfQvMqBCCiUHOtFKi7flxn0t17OSPVVf/AWLre2ciVSbXT0wGmiZT33iMQCYV+yz5TwlckDaMlT/VR/eoNCR52jXKmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643874; c=relaxed/simple; bh=yjTsrdeM2sxU41TR4VD8jKZZrqaZznfGi1QNXS/7n4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=djEUkcY9Yu7TZ4ZOTqSK594g7zx1clIoSUNR7klt2pjYPHrny9uQf9oT2KQ86BePevIuE824HYyq+hq5rd3HBwkSt2ndloEqWPgbhLb/dpXK9xYPn5OdFGpJEhX6ScZ3CSMroL41UaH+fScKROzQ0QB8acXC51zdywwPbMqhMu4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j11ueQSb; 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="j11ueQSb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6213C4CECD; Wed, 18 Sep 2024 07:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643874; bh=yjTsrdeM2sxU41TR4VD8jKZZrqaZznfGi1QNXS/7n4c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j11ueQSbRQykBUeMqlwjl5VyPXmjPbT9EaPnNEoOCSv3pL3S/bAuWOZujdU9Kaznu lcr1y3QNPEJwddtRq06qUChQO/OGN0ujHO8sgAhqguPgl5Lk/XSLrd7yvsxkz+4Zhu bW0naM9+LCZYbgMtxvakZH/koqork+cJoGiyvo0U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46754: bpf: Remove tst_run from lwt_seg6local_prog_ops. Date: Wed, 18 Sep 2024 09:16:49 +0200 Message-ID: <2024091840-CVE-2024-46754-7f04@gregkh> X-Mailer: git-send-email 2.46.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=2160; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yjTsrdeM2sxU41TR4VD8jKZZrqaZznfGi1QNXS/7n4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6iLev4o9IPbhrVhVavQW3Xcefs3zDdz6Vr7/w1DiP 0dw+96mjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIxiCG+T6nu5b9aTg4af7s 4P2Py7avmvuJK49hwRo1z7Wbfoh/Zheddsgz8YPHivVeKwA= 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: bpf: Remove tst_run from lwt_seg6local_prog_ops. The syzbot reported that the lwt_seg6 related BPF ops can be invoked via bpf_test_run() without without entering input_action_end_bpf() first. Martin KaFai Lau said that self test for BPF_PROG_TYPE_LWT_SEG6LOCAL probably didn't work since it was introduced in commit 04d4b274e2a ("ipv6: sr: Add seg6local action End.BPF"). The reason is that the per-CPU variable seg6_bpf_srh_states::srh is never assigned in the self test case but each BPF function expects it. Remove test_run for BPF_PROG_TYPE_LWT_SEG6LOCAL. The Linux kernel CVE team has assigned CVE-2024-46754 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 004d4b274e2a and fixed in 6.10.10 with commit 9cd15511de7c Issue introduced in 4.18 with commit 004d4b274e2a and fixed in 6.11 with commit c13fda93aca1 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-46754 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/filter.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/9cd15511de7c619bbd0f54bb3f28e6e720ded5d6 https://git.kernel.org/stable/c/c13fda93aca118b8e5cd202e339046728ee7dddb