CVE-2026-74258: bpf: Guard __get_user acesss with access_ok for uprobe_multi data
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Guard __get_user acesss with access_ok for uprobe_multi data
As reported by sashiko [1] we need to use access_ok to check the user space data bounds before we use __get-user to get it.
[1] https://lore.kernel.org/bpf/[email protected]/
The Linux kernel CVE team has assigned CVE-2026-74258 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit 89ae89f53d201143560f1e9ed4bfa62eee34f88e and fixed in 7.1.5 with commit c6d51ad36490013ee9df94a372d3bf794bd304d1 Issue introduced in 6.6 with commit 89ae89f53d201143560f1e9ed4bfa62eee34f88e and fixed in 7.2-rc1 with commit 4d87a251d45b4a95eb4c0abcfab809c9f231258a
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-74258
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/trace/bpf_trace.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/c6d51ad36490013ee9df94a372d3bf794bd304d1 https://git.kernel.org/stable/c/4d87a251d45b4a95eb4c0abcfab809c9f231258a