From mboxrd@z Thu Jan 1 00:00:00 1970 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 0F79318E750 for ; Mon, 25 Nov 2024 21:21:44 +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=1732569704; cv=none; b=JQdv6NqHZsNTD0ObFLtg5uXfban25lOYtMDuOWhT4NQ00DrXUbCg3hZmk9Tzk85LTmoGqNRov9z9bxpDYrpUXhLkSGm+4IaCXoGVZDGDEE5lMhFcJZbLOSlrtbrfpU4zjjTyPIKWnPOuRBJ+87yoXHcJhUhC1n6MsAYcGlrbfYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732569704; c=relaxed/simple; bh=9t1wdTrtbc7bdySA3xriKPDWFlm8X7sUSK0ksbfEL+U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qXQbQd8P15AbAn9u04XaSAwt1VH5oveY1fpLuLzr6DdlcxnIWFQcPQks5FajNyocRg9Gd1nayclPizKTgTsubgqqYqtXcFsBxj9zFvE8n2NIXn6cPOL/BFVV2UqYO74uVDS+Gr+Eul7FbnrHTwV90io+owncbsr2kb5KXSDqWFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X+GQziZU; 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="X+GQziZU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1567C4CECE; Mon, 25 Nov 2024 21:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732569703; bh=9t1wdTrtbc7bdySA3xriKPDWFlm8X7sUSK0ksbfEL+U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=X+GQziZUtNtzCXe0IGZSMJ2XWSC3TYyfauVdOcZFfSS1DuTDpQ58kDqIK2iCW/uT2 HuJPpH63FdbkEBY4rHLo4u1p1qDUHdpYTjc/aaOsFnScl5DpPrd9jR1s2yTBH2Dn8+ MX2LRhkP82q2aGWhrZJRbLHVmyYPdx9tBQT8Q0GM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53099: bpf: Check validity of link->type in bpf_link_show_fdinfo() Date: Mon, 25 Nov 2024 22:21:08 +0100 Message-ID: <2024112506-CVE-2024-53099-e454@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=1977; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9t1wdTrtbc7bdySA3xriKPDWFlm8X7sUSK0ksbfEL+U=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkur5xKn66pevZkocTMg/Uxc3fuPWiZFl3DmLr5+b0A5 madO+/PdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE6nkYFkzQaFObsvTc/X37 bx02n/F+j7x+iQzDgmN12oF7lPeetDV4aP2h2cXJR6LzIAA= 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: Check validity of link->type in bpf_link_show_fdinfo() If a newly-added link type doesn't invoke BPF_LINK_TYPE(), accessing bpf_link_type_strs[link->type] may result in an out-of-bounds access. To spot such missed invocations early in the future, checking the validity of link->type in bpf_link_show_fdinfo() and emitting a warning when such invocations are missed. The Linux kernel CVE team has assigned CVE-2024-53099 to this issue. Affected and fixed versions =========================== Fixed in 6.6.62 with commit d5092b0a1aaf Fixed in 6.11.9 with commit b3eb1b6a9f74 Fixed in 6.12 with commit 8421d4c8762b 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-53099 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: kernel/bpf/syscall.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/d5092b0a1aaf35d77ebd8d33384d7930bec5cb5d https://git.kernel.org/stable/c/b3eb1b6a9f745d6941b345f0fae014dc8bb06d36 https://git.kernel.org/stable/c/8421d4c8762bd022cb491f2f0f7019ef51b4f0a7