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 3D44E31579B for ; Wed, 15 Oct 2025 07:57: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=1760515074; cv=none; b=XJn1BMWlD3AHi8+EACmA5gHkJPiM9+iTpje6EKvrsMuWv5K8CNWjeDRjmTwIouTxouGr494uf9O11jvuMd+Q/+xLR82iuzYC321nd9rjZzE1YorQ9iXXU7hi7GFX8l251jHjT9RRxojnPVB7iD2o+rSHWM0IbBay5W1KezR4KUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760515074; c=relaxed/simple; bh=680PLUWHpjJCnWK3wWCIkBharUkT9IrHEgwn3QHYQD0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HyIfWEgAPbYHTNLQ9Vw9c78ghlQiyE+9IMYi7x8ITuwLoPLSZpbP/LtNIPAs3TT9YV8qy+HIqFyXt7cpWpBgwJnr1EK+wlBkZU9eCFM2kTRRA4EpVm//s+EvZIqAlUkcBpdftXWrV20VhtZPhTtvYOWqVMPQzQEKeRrWUunu94M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vtBMecYI; 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="vtBMecYI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD287C4CEF8; Wed, 15 Oct 2025 07:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760515074; bh=680PLUWHpjJCnWK3wWCIkBharUkT9IrHEgwn3QHYQD0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vtBMecYIQul9lHDeQPFJqolifgZm5NNHPIjuQ87L4+Rg3pv7T5V4s4/JcUcZ6WYrw pKtA06iktLz/QPR541IyXowoVxtywRk+G9sjyHzcj5M0BwBVC2UuSyPP0WDcbzd5c2 RyX6PDLCymHo5DPrMxalmeY1mDovME4v5fW2AHdY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39990: bpf: Check the helper function is valid in get_helper_proto Date: Wed, 15 Oct 2025 09:57:17 +0200 Message-ID: <2025101502-CVE-2025-39990-25bc@gregkh> X-Mailer: git-send-email 2.51.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=2124; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FnbKO+hJADi2My03w5+SduV3Dq0gP3H3XXgcT6hRUtI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnvg891GO5wUtgu0Gdy5cixKWJ339zPtn0v8ezJOTXOb fPmL/Se0BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATUbNjmKd/u+v7owKlsmtN HYLfZ7F+qGd618Aw3/NApYpRZdm0iKyVpz88j7bYuiAqHQA= 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: Check the helper function is valid in get_helper_proto kernel test robot reported verifier bug [1] where the helper func pointer could be NULL due to disabled config option. As Alexei suggested we could check on that in get_helper_proto directly. Marking tail_call helper func with BPF_PTR_POISON, because it is unused by design. [1] https://lore.kernel.org/oe-lkp/202507160818.68358831-lkp@intel.com The Linux kernel CVE team has assigned CVE-2025-39990 to this issue. Affected and fixed versions =========================== Fixed in 6.12.50 with commit 3d429cb1278e995e22995ef117fa96d223a67e93 Fixed in 6.16.10 with commit 6233715b4b714068d6c831d214a4e8792109875a Fixed in 6.17 with commit e4414b01c1cd9887bbde92f946c1ba94e40d6d64 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-2025-39990 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/core.c 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/3d429cb1278e995e22995ef117fa96d223a67e93 https://git.kernel.org/stable/c/6233715b4b714068d6c831d214a4e8792109875a https://git.kernel.org/stable/c/e4414b01c1cd9887bbde92f946c1ba94e40d6d64