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 3FB44178383 for ; Tue, 5 Nov 2024 17:12:03 +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=1730826723; cv=none; b=L704jAsmUWL2kQ9Iw2F9izj8raC1ar9FaF2rDBIpGudOeDYSziSStQCh9gmo9ZyWxVV4PdX+aboaIDjxbus9ca1ZUcOPwy2h3GTCIpviEfOTYarWUGrxQTssdMLirBUl3ZQ0u7cE4LByaNqS/asKGHW5r7O0l8jfGhEt+9pShJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826723; c=relaxed/simple; bh=fz01WylSdVWHiiKiMDLlzuYM3XMNcbdwt65sR9poVbo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VsBXbjbuEZzJ18+RZ8yT5bMd37LOVMECYB2bX7PHSgltXVafDdb7dmTNENr6WqL2K+3opIXgYSTd8zlqdaSNjYvV5/aRgaAi4t6ER2iDRHW8nDAW+GdLIbu4u1wj5xfhQjZNlThRRXc6OIrDaOsaolofxySp2mNEWpNu+vqs6Q0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gLNPNG4S; 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="gLNPNG4S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5EC3C4CECF; Tue, 5 Nov 2024 17:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826723; bh=fz01WylSdVWHiiKiMDLlzuYM3XMNcbdwt65sR9poVbo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gLNPNG4Sy8NLd5XZUwwDDrFcWaOIyg1z7HXu+GzK7INGjPyyeSnvhd2QqusanAU48 8ruWGxmF7P6NJznwEJP3Bc6XLC0tEIOtRe1b7uv5FxqhVJfJEIY8L4+j7PxvwvxbsR d5NRtZZ2rATQjy01yiBISjan4My4/2Hxd8ampRC8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50123: bpf: Add the missing BPF_LINK_TYPE invocation for sockmap Date: Tue, 5 Nov 2024 18:11:12 +0100 Message-ID: <2024110556-CVE-2024-50123-5370@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=1954; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fz01WylSdVWHiiKiMDLlzuYM3XMNcbdwt65sR9poVbo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlagQsb7bhdn4TxVgQfMi3yC+quUqvesH/xHK9Lz5oYR fkOyvzuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkcKmWYZ73huH2DRYK9290D Vl+WGk49eS7uHMOCGUadf0VmGZc+uiwgmvShXsupub8NAA== 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: Add the missing BPF_LINK_TYPE invocation for sockmap There is an out-of-bounds read in bpf_link_show_fdinfo() for the sockmap link fd. Fix it by adding the missing BPF_LINK_TYPE invocation for sockmap link Also add comments for bpf_link_type to prevent missing updates in the future. The Linux kernel CVE team has assigned CVE-2024-50123 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 699c23f02c65 and fixed in 6.11.6 with commit 6d79f12c0ce2 Issue introduced in 6.10 with commit 699c23f02c65 and fixed in 6.12-rc5 with commit c2f803052bc7 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-50123 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: include/linux/bpf_types.h include/uapi/linux/bpf.h tools/include/uapi/linux/bpf.h 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/6d79f12c0ce2bc8ff5f109093df1734bd6450615 https://git.kernel.org/stable/c/c2f803052bc7a7feb2e03befccc8e49b6ff1f5f5