Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 733D43FC5A6 for ; Wed, 27 May 2026 12:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884824; cv=none; b=cReGzMdlZc8mzVgDMWZxGB09IRKkx09jJWp6XGMTPyjyMn9MQQSFUYdNCxU40wzN9eZg+lGqRT0x7GdeIPw38Jh6Ed/L13ZlC3wuSQ3ibbbzPeJmzNQJR0QqR9IhwK8d/p3YMgS6bIiHvkAflnBRp5A1JC8GAPEg+UhGNwpeDTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884824; c=relaxed/simple; bh=OShBKJV8AJULxO9IvAi+ugiolq6h7qhY1U2PYwaMOxQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hxUxRqG44NJEVgdnfcQmso7N66dvnopI+OABQSRczvDTO8ZPnCuGrAQAjqDmie7OtCAzauVMF4IrqldMEjWOSMEZ89nIj/IoNNyfL/8TzI3FWriaG10mMnz70+6OZNLVt39eeDlmfKQ6JFkv9ojwYbYhweP0MISo0AXuH0egqcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wmgRO9Oo; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wmgRO9Oo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B212C1F000E9; Wed, 27 May 2026 12:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884823; bh=MRLCKZWOo1F3LfMKMT/JC10Gfl7ub7hkd/ZKZsfkMIM=; h=From:To:Cc:Subject:Date:Reply-To; b=wmgRO9Oo3qjQFjmHTXpBOqNCfW2UpyvLNJXiP/tQZaRNdSI6Qx0NKgEzQKDrjuUQD qi7zUEva+tbrFD+DCVcEM5rIP2bCajpgT+1H9GZKAyaKLwE78LW5s3hv6SqC8iZexL ed5rQRhwCp4Dst3JYz4yrSssiKDh486pNXx1djw0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45951: bpf: Fix a potential use-after-free of BTF object Date: Wed, 27 May 2026 14:19:53 +0200 Message-ID: <2026052731-CVE-2026-45951-dc78@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=shp/cWWPOevSqVSp0mEWvCjJ2lxbHUYscB1IZyElItg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD8WPZthEXFU+96u4as6W6pYrFy2v+8lv71i2yezKp AnXZz4V6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJhLgyzC88u19jz0SeXUUq DwtFYo1mn7544i7DXBlWGSct9Yj7MUXJQt5XBBbnLJ8UAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: bpf: Fix a potential use-after-free of BTF object Refcounting in the check_pseudo_btf_id() function is incorrect: the __check_pseudo_btf_id() function might get called with a zero refcounted btf. Fix this, and patch related code accordingly. v3: rephrase a comment (AI) v2: fix a refcount leak introduced in v1 (AI) The Linux kernel CVE team has assigned CVE-2026-45951 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 76145f7255326761dafb76721a785799d8a00d5f and fixed in 6.18.14 with commit eac65c272f3b49021a843cba5107d63627395e0e Issue introduced in 6.14 with commit 76145f7255326761dafb76721a785799d8a00d5f and fixed in 6.19.4 with commit 9ff46ffeecdb1802d6e26183177935b948a12e7f Issue introduced in 6.14 with commit 76145f7255326761dafb76721a785799d8a00d5f and fixed in 7.0 with commit ccd2d799ed4467c07f5ee18c2f5c59bcc990822c 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-2026-45951 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/verifier.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/eac65c272f3b49021a843cba5107d63627395e0e https://git.kernel.org/stable/c/9ff46ffeecdb1802d6e26183177935b948a12e7f https://git.kernel.org/stable/c/ccd2d799ed4467c07f5ee18c2f5c59bcc990822c