# CVE-2026-74589: bpf, sockmap: Fix sk\_redir use-after-free in send verdict

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **Published:** 2026-08-22T15:31:41.177Z
- **Modified:** 2026-10-16T20:17:42.877Z

## Who should check

- Anyone running Linux \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 90a19b0894ba79a699b48cf44421b36fbd566e99; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< d192cff2a37d59206dabe6ec2e60ceac6271f274; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< a14e4ef1d90c3418f01b3b6b8fd3a40a0a208a10; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 1cec526cf0a2227395f2c2f4b671cb052ff0b00e; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< a76624733730e541e4955fdecf506af2f6b20558
- Anyone running Linux 4.20

## 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.

## Affected and fixed versions

- Linux: \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 90a19b0894ba79a699b48cf44421b36fbd566e99; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< d192cff2a37d59206dabe6ec2e60ceac6271f274; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< a14e4ef1d90c3418f01b3b6b8fd3a40a0a208a10; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 1cec526cf0a2227395f2c2f4b671cb052ff0b00e; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< a76624733730e541e4955fdecf506af2f6b20558 (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74589. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74589.md
Affected: Linux >= 604326b41a6fb9b4a78b6179335decee0365cd8c, < 41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf; >= 604326b41a6fb9b4a78b6179335decee0365cd8c, < 9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3; >= 604326b41a6fb9b4a78b6179335decee0365cd8c, < 90a19b0894ba79a699b48cf44421b36fbd566e99; >= 604326b41a6fb9b4a78b617…
Fixed in: Linux 41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf, Linux 9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3, Linux 90a19b0894ba79a699b48cf44421b36fbd566e99, Linux 4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf, Linux 1cec526cf0a2227395f2c2f4b671cb052ff0b00e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74589 being exploited?

There is no confirmed exploitation: CVE-2026-74589 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74589?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-74589?

Linux \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 90a19b0894ba79a699b48cf44421b36fbd566e99; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< d192cff2a37d59206dabe6ec2e60ceac6271f274; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< a14e4ef1d90c3418f01b3b6b8fd3a40a0a208a10; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< 1cec526cf0a2227395f2c2f4b671cb052ff0b00e; \>= 604326b41a6fb9b4a78b6179335decee0365cd8c, \< a76624733730e541e4955fdecf506af2f6b20558; Linux 4.20.

### Is there a fix for CVE-2026-74589?

Yes. Fixed in Linux 41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf, Linux 9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3, Linux 90a19b0894ba79a699b48cf44421b36fbd566e99, Linux 4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf, Linux 1cec526cf0a2227395f2c2f4b671cb052ff0b00e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-74589?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/41b7da0cb72ca5aa1e62b68dab323d0791fc6bdf>
- other: <https://git.kernel.org/stable/c/9b4fbc371a6ecf1b4e43b5a629015cc0830d8de3>
- other: <https://git.kernel.org/stable/c/90a19b0894ba79a699b48cf44421b36fbd566e99>
- other: <https://git.kernel.org/stable/c/d192cff2a37d59206dabe6ec2e60ceac6271f274>
- other: <https://git.kernel.org/stable/c/4c9d9aa809c261dc0490a0e19d675f7e8e4c85bf>
- other: <https://git.kernel.org/stable/c/a14e4ef1d90c3418f01b3b6b8fd3a40a0a208a10>
- other: <https://git.kernel.org/stable/c/1cec526cf0a2227395f2c2f4b671cb052ff0b00e>
- other: <https://git.kernel.org/stable/c/a76624733730e541e4955fdecf506af2f6b20558>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74589>

HTML: <https://flawdb.com/CVE-2026-74589> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74589>
