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 DF9CE496D4E for ; Fri, 25 Sep 2026 10:36:32 +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=1790332594; cv=none; b=hVsFQQ+zE4qSod34Yn74jvHq1rBkgnm7AvRKD/O8dcmNjhLhUoev/Cl7/WnuMBLnqKwVXbrI95ExScJXSnw6lEeh34VIzhfCx/2m26YZ7MfV/+h//RTFHnU4fCYDbxZxZeEYUvZgqogs/L/ca/1jTE/OSN1unhlQLpaWN/BO3tI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332594; c=relaxed/simple; bh=S8k/W3DYVvQHhck+f0pPJSZSNrG5Hj/XOBS8ohfuebw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gF69uqCqxXSEYnnaQ3i7BtjVEtBg5IejjVD5/Jt2qWwrxcjHbXaaPBYBgNN1Rs+0j+KUtHJLE197B0rMvFfkNXOhBF4Hn0a56yNyK4Z1KAjeWz3Jm1kRHkwCq+FORj9AWkjJkuBo7gWmHXJ6ZgoppSpQ7wk4ZJFHK0gRHbzaIe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ma++FZWM; 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="ma++FZWM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45A661F000FF; Fri, 25 Sep 2026 10:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332592; bh=z5/KZvW5RaAlaefuUuRIACTv8Wnxj+q0zUbi5q0I7/I=; h=From:To:Cc:Subject:Date:Reply-To; b=ma++FZWMQNqTNqKZUQgY/zAWES5bTtEXFb5uTxUCyzAqfLrEaLVmE1Ij7nNovXUhX Vqlh6dEo8PZrKO+dRZARWJ8eQdnPBVuZe649eCsvE8fty8DlPuYnBNLG96ZvYdRXyA 6oMwys9BL7x9y7S/r3Lu56k7ykGwQ6SUDPexFDqY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98046: bpf: Mark bpf_btf_find_by_name_kind() as sleepable Date: Fri, 25 Sep 2026 12:25:48 +0200 Message-ID: <2026092531-CVE-2026-98046-12f6@gregkh> X-Mailer: git-send-email 2.55.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=2835; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rCDsrIyh2mddSA9fBYg37N7W72tzc35nuXM+sO+gyc0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvNP599TwrUtccm/XbmOFyjV5+nPXqmlvN2Jh8qriO 5c49+/jjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIlyfDgnnvbhQpVn2OPHJg 4zMb2ZsOxbsCtBgWLJH6cCeZ75lEyzteFiumAJGVojWzAQ== 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: Mark bpf_btf_find_by_name_kind() as sleepable When bpf_btf_find_by_name_kind() finds a type in module BTF, it returns a new BTF object fd through __btf_new_fd(). This reaches anon_inode_getfd(), which can sleep while allocating or expanding the current task fd table. The helper prototype does not set might_sleep, so the verifier allows the helper in non-sleepable contexts such as BPF timer callbacks. The fd allocation can then sleep in softirq context and install the fd into the interrupted task. Mark the helper as sleepable. This preserves calls from the main body of a sleepable syscall program while rejecting calls from its non-sleepable regions. The Linux kernel CVE team has assigned CVE-2026-98046 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 3d78417b60fba249cc555468cb72d96f5cde2964 and fixed in 6.12.111 with commit 29e40175617216fbd4544529f6bfb51d1ab95ba1 Issue introduced in 5.14 with commit 3d78417b60fba249cc555468cb72d96f5cde2964 and fixed in 6.18.53 with commit 4d8784226bd3c6a707975081f986078f40456cec Issue introduced in 5.14 with commit 3d78417b60fba249cc555468cb72d96f5cde2964 and fixed in 7.2.7 with commit 17f54a8f2b9714529d56edbbe12d448ccdbbf469 Issue introduced in 5.14 with commit 3d78417b60fba249cc555468cb72d96f5cde2964 and fixed in 7.3-rc2 with commit 620614bf7672130c43b3cff375525a2202f61979 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-98046 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/btf.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/29e40175617216fbd4544529f6bfb51d1ab95ba1 https://git.kernel.org/stable/c/4d8784226bd3c6a707975081f986078f40456cec https://git.kernel.org/stable/c/17f54a8f2b9714529d56edbbe12d448ccdbbf469 https://git.kernel.org/stable/c/620614bf7672130c43b3cff375525a2202f61979