CVE-2026-74335

Source
https://cve.org/CVERecord?id=CVE-2026-74335
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74335.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-74335
Downstream
Published
2026-08-15T05:58:27.148Z
Modified
2026-08-16T03:48:34.937427392Z
Summary
bpf: Fix NULL pointer dereference in bpf_task_from_vpid()
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix NULL pointer dereference in bpftaskfrom_vpid()

bpftaskfromvpid() looks up a task in the pid namespace of the current task, via findtaskbyvpid():

findtaskbyvpid(vpid) findtaskbypidns(vpid, taskactivepidns(current)) findpidns(nr, ns) -> idr_find(&ns->idr, nr)

cgroupskb programs run in softirq, which may interrupt a task that is itself in doexit(). Once that task has passed exitnotify() -> releasetask() -> _unhashprocess(), its threadpid is cleared, so taskactivepidns(current) returns NULL and findpidns() dereferences &NULL->idr:

BUG: kernel NULL pointer dereference, address: 0000000000000050 RIP: 0010:idrfind+0x11/0x30 lib/idr.c:176 Call Trace: <IRQ> findpidns kernel/pid.c:370 [inline] findtaskbypidns+0x3b/0xe0 kernel/pid.c:485 bpftaskfromvpid+0x5b/0x200 kernel/bpf/helpers.c:2916 bpfprogrunarraycg+0x17e/0x530 kernel/bpf/cgroup.c:81 __cgroupbpfrunfilterskb+0x12b/0x250 kernel/bpf/cgroup.c:1612 skfiltertrimcap+0x1dc/0x4c0 net/core/filter.c:148 tcpv4rcv+0x18d1/0x2200 net/ipv4/tcpipv4.c:2223 </IRQ> <TASK> doexit+0xa63/0x1270 kernel/exit.c:1010 getsignal+0x141c/0x1530 kernel/signal.c:3037

Bail out when current has no pid namespace.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74335.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
675c3596ff32c040d1dd2e28dd57e83e634b9f60
Fixed
b7474f4432dd9559ada03b01a8cd3472cd02c61d
Fixed
a4c95b6221cb2972a94ed72663c09bd5b0b6dea4
Fixed
50dff00615522f3ec03449680ca23beb4cfc549c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74335.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74335.json"