CVE-2026-63865: bpf: Drop task_to_inode and inet_conn_established from lsm sleepable hooks
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Drop task_to_inode and inet_conn_established from lsm sleepable hooks
bpf_lsm_task_to_inode() is called under rcu_read_lock() and bpf_lsm_inet_conn_established() is called from softirq context, so neither hook can be used by sleepable LSM programs.
The Linux kernel CVE team has assigned CVE-2026-63865 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit 423f16108c9d832bd96059d5c882c8ef6d76eb96 and fixed in 5.15.209 with commit 452a927cddcd67478d030e646f41cb904a93156f Issue introduced in 5.11 with commit 423f16108c9d832bd96059d5c882c8ef6d76eb96 and fixed in 6.1.175 with commit f0fc2a9828171205244a28013f02889f50b71c9f Issue introduced in 5.11 with commit 423f16108c9d832bd96059d5c882c8ef6d76eb96 and fixed in 6.6.141 with commit 26b380a3ca0b605fd8860995ed6a208f276dd316 Issue introduced in 5.11 with commit 423f16108c9d832bd96059d5c882c8ef6d76eb96 and fixed in 6.12.91 with commit 0d918263c9bfc86078edb2e2f7302a0c6ce42b7c Issue introduced in 5.11 with commit 423f16108c9d832bd96059d5c882c8ef6d76eb96 and fixed in 6.18.33 with commit 281f2a214565a5cbf8b7355a65738d80bd19b8c5 Issue introduced in 5.11 with commit 423f16108c9d832bd96059d5c882c8ef6d76eb96 and fixed in 7.0.10 with commit 989f1b93907de1753a814996222da375f07e579b Issue introduced in 5.11 with commit 423f16108c9d832bd96059d5c882c8ef6d76eb96 and fixed in 7.1 with commit beaf0e96b1da74549a6cabd040f9667d83b2e97e
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-63865
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/bpf_lsm.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/452a927cddcd67478d030e646f41cb904a93156f https://git.kernel.org/stable/c/f0fc2a9828171205244a28013f02889f50b71c9f https://git.kernel.org/stable/c/26b380a3ca0b605fd8860995ed6a208f276dd316 https://git.kernel.org/stable/c/0d918263c9bfc86078edb2e2f7302a0c6ce42b7c https://git.kernel.org/stable/c/281f2a214565a5cbf8b7355a65738d80bd19b8c5 https://git.kernel.org/stable/c/989f1b93907de1753a814996222da375f07e579b https://git.kernel.org/stable/c/beaf0e96b1da74549a6cabd040f9667d83b2e97e