VDB

CVE-2026-68284

CVE-2026-68284 PUBLISHED CVSS 7.8 HIGH

bpf, sockmap: Fix cork use-after-free in tcp_bpf_sendmsg()

Reported by linux · Published August 10, 2026

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix cork use-after-free in tcp_bpf_sendmsg() tcp_bpf_sendmsg() keeps msg_tx across sk_stream_wait_memory(), which drops and reacquires the socket lock. Its error path tries to decide whether msg_tx names the local temporary message by comparing it with the current value of psock->cork. This comparison is unsafe when two threads send on the same socket: Thread A Thread B msg_tx = psock->cork sk_msg_alloc() fails sk_stream_wait_memory() releases the socket lock acquires the socket lock completes the cork psock->cork = NULL frees the cork reacquires the socket lock msg_tx != psock->cork sk_msg_free(msg_tx) The stale cork is therefore mistaken for the local temporary message and freed again. KASAN reported: BUG: KASAN: slab-use-after-free in sk_msg_free+0x49/0x50 Read of size 4 at addr ffff88810c908800 by task poc/90 Call Trace: sk_msg_free+0x49/0x50 tcp_bpf_sendmsg+0x14f5/0x1cc0 __sys_sendto+0x32c/0x3a0 __x64_sys_sendto+0xdb/0x1b0 Allocated by task 89: __kasan_kmalloc+0x8f/0xa0 tcp_bpf_sendmsg+0x16b3/0x1cc0 Freed by task 91: __kasan_slab_free+0x43/0x70 kfree+0x131/0x3c0 tcp_bpf_sendmsg+0xec3/0x1cc0 msg_tx can only name the stack-local tmp or the shared cork. Check for tmp directly so a changed psock->cork cannot turn a shared message into an apparent local one.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-modules-extra-commonAmazon Linux1:6.18.44-99.149.amzn2023
kernel6.12-develAmazon Linux1:6.12.103-127.188.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.44-99.149.amzn2023
kernel-headersAmazon Linux1:6.1.186-228.374.amzn2023
perf6.12Amazon Linux1:6.12.103-127.188.amzn2023
LinuxLinuxee762f684eefa59de34d9ed93cab08336e834f47, b2bcbeabfd843d47468fa095b1bd08ddb90cf616, 54be47e7cbb936429c3bbdfc526ea943954aaf80, 4.20, 0688e6fe599d2d39147ae9ece97944c6e1815ebf

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux604326b41a6fb9b4a78b6179335decee0365cd8c, 604326b41a6fb9b4a78b6179335decee0365cd8c, 604326b41a6fb9b4a78b6179335decee0365cd8c
LinuxLinux4.20, 0, 5.10.265
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.12-devel0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel-headers0
amazon:2023perf6.120
LinuxLinux604326b41a6fb9b4a78b6179335decee0365cd8c, 7.2, 7.1.6
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.18-headers0
amazon:2023perf6.180
amazon:2023kernel6.12-tools0
amazon:2023python3-perf6.180
amazon:2023kernel0
amazon:2023kernel6.120
amazon:2023bpftool6.120
amazon:2023kernel-devel0
amazon:2023python3-perf0
linuxlinux_kernel4.20, 4.20, 4.20

…and 18 more

Timeline

  • Aug 10, 2026 CVE Published
  • Aug 11, 2026 Coalition ESS Score
  • Aug 16, 2026 Security Advisory
  • Aug 19, 2026 CVE Updated
  • Aug 24, 2026 EPSS Score (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-68284
vulnetix vdb fixes CVE-2026-68284

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68284/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›