CVE-2026-74589
bpf, sockmap: Fix sk_redir use-after-free in send verdict
Check your servers for CVE-2026-74589
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-74589 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
bpf, sockmap: Fix sk_redir use-after-free in send verdict
sk_psock_msg_verdict() takes a socket reference for psock->sk_redir. tcp_bpf_send_verdict() copies that pointer while holding the source socket lock, but does not take a reference for the local copy before dropping the lock around tcp_bpf_sendmsg_redir().
When apply_bytes keeps the cached verdict active, another sendmsg() on the same source socket can consume the remaining bytes and release the cached reference while the first thread still holds only the raw local pointer:
CPU 0 CPU 1 sk_redir = psock->sk_redir apply_bytes remains nonzero release_sock(sk) lock_sock(sk) apply_bytes reaches zero psock->sk_redir = NULL release_sock(sk) tcp_bpf_sendmsg_redir(sk_redir) sock_put(sk_redir) tcp_bpf_sendmsg_redir(sk_redir)
The final sock_put() can free sk_redir before CPU 0 dereferences it.
KASAN reported:
BUG: KASAN: slab-use-after-free in tcp_bpf_sendmsg_redir+0xf39/0x1020 Read of size 8 at addr ffff888108537090 by task poc/87 Call Trace: tcp_bpf_sendmsg_redir+0xf39/0x1020 tcp_bpf_sendmsg+0x977/0x1a50 __sys_sendto+0x32c/0x3a0 __x64_sys_sendto+0xdb/0x1b0 Allocated by task 85: sk_prot_alloc+0x56/0x210 sk_clone+0x6f/0x14b0 inet_csk_clone_lock+0x24/0x740 tcp_create_openreq_child+0x25/0x2710 tcp_v4_syn_recv_sock+0x10a/0xe00 Freed by task 0: __kasan_slab_free+0x43/0x70 slab_free_after_rcu_debug+0xa6/0x1e0 rcu_core+0x50a/0x1850 Last potentially related work creation: __sk_destruct+0x3da/0x540 sk_psock_destroy+0x81e/0xab0 process_one_work+0x63a/0x1070
Take a temporary socket reference while the source socket lock still protects psock->sk_redir, and drop it after tcp_bpf_sendmsg_redir() returns. This keeps each unlocked use independent of cached-verdict ownership.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.38% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before 41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before 9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3 affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before 90a19b0894ba79a699b48cf44421b36fbd566e99 affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before d192cff2a37d59206dabe6ec2e60ceac6271f274 affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before 4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before a14e4ef1d90c3418f01b3b6b8fd3a40a0a208a10 affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before 1cec526cf0a2227395f2c2f4b671cb052ff0b00e affected from 604326b41a6fb9b4a78b6179335decee0365cd8c, before a76624733730e541e4955fdecf506af2f6b20558
Other versions: unaffected
|
| Linux |
affected 4.20 unaffected before 4.20 unaffected from 5.10.265 up to and including 5.10.* unaffected from 5.15.216 up to and including 5.15.* unaffected from 6.1.183 up to and including 6.1.* unaffected from 6.6.152 up to and including 6.6.* unaffected from 6.12.104 up to and including 6.12.* unaffected from 6.18.45 up to and including 6.18.* unaffected from 7.1.9 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-74589 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-74589
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-74589
trivy image --scanners vuln IMAGE | grep CVE-2026-74589
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf git.kernel.org
- https://git.kernel.org/stable/c/9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3 git.kernel.org
- https://git.kernel.org/stable/c/90a19b0894ba79a699b48cf44421b36fbd566e99 git.kernel.org
- https://git.kernel.org/stable/c/d192cff2a37d59206dabe6ec2e60ceac6271f274 git.kernel.org
- https://git.kernel.org/stable/c/4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf git.kernel.org
- https://git.kernel.org/stable/c/a14e4ef1d90c3418f01b3b6b8fd3a40a0a208a10 git.kernel.org
- https://git.kernel.org/stable/c/1cec526cf0a2227395f2c2f4b671cb052ff0b00e git.kernel.org
- https://git.kernel.org/stable/c/a76624733730e541e4955fdecf506af2f6b20558 git.kernel.org
Source: the record CVE-2026-74589 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse