7.8
HIGH CVSS 3.1
CVE-2026-64575
bpf: tcp: fix double sock release on batch realloc
Description

In the Linux kernel, the following vulnerability has been resolved: bpf: tcp: fix double sock release on batch realloc bpf_iter_tcp_batch() releases the current batch via bpf_iter_tcp_put_batch(), which drops the socket refs and rewrites each slot with the socket cookie, then grows the batch. cur_sk/end_sk are kept for bpf_iter_tcp_resume(), but on realloc failure the function returns ERR_PTR() before resume runs, leaving cur_sk < end_sk over slots that now hold cookies rather than sock pointers. bpf_iter_tcp_seq_stop() then calls bpf_iter_tcp_put_batch() again and dereferences a cookie as a struct sock. Empty the batch on the failure path so stop() does not release it again. The sockets were already freed by the first bpf_iter_tcp_put_batch(), so nothing leaks, and a later read() rescans the bucket from the start instead of skipping it. The sibling GFP_NOWAIT failure path still holds real socket references and is left for stop() to release. BUG: KASAN: null-ptr-deref in __sock_gen_cookie Read of size 8 at addr 0000000000000059 by task exploit ... __sock_gen_cookie (net/core/sock_diag.c:28) bpf_iter_tcp_put_batch (net/ipv4/tcp_ipv4.c:2918) bpf_iter_tcp_seq_stop (net/ipv4/tcp_ipv4.c:3270) bpf_seq_read (kernel/bpf/bpf_iter.c:205) vfs_read (fs/read_write.c:572) ksys_read (fs/read_write.c:716) do_syscall_64 entry_SYSCALL_64_after_hwframe Kernel panic - not syncing: Fatal exception

INFO

Published Date :

Aug. 5, 2026, 8:16 a.m.

Last Modified :

Aug. 19, 2026, 5:20 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-64575 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Address a null-pointer dereference in tcp_ipv4.c by emptying the batch on failure.
  • Apply the kernel patch for the bpf: tcp: fix double sock release.
  • Update the Linux kernel to the latest stable version.
  • Review kernel code for similar batch handling issues.
  • Test the fix thoroughly in a staging environment.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-64575 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-64575 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-64575 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-64575 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 19, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/7a6a6d2a127866935f87b55b557bc89693065462
    Added Reference https://git.kernel.org/stable/c/c842882e4c5d2818b858d6baf3fd10958c93f729
    Added Reference https://git.kernel.org/stable/c/f0c1810320b0dac228103fad7311e89532134d83
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '9f27c4f0ae35b5390ce4f7a54d3501144e41a54d', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '8a726e9585ffe7bfbfad2b5279277a00973970f3', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '980a813452754f8001704744e92f7aa697c53dd3', 'versionType': 'git'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '9794ac757a650dd594391192183c9caf939f8223', 'lessThan': 'c842882e4c5d2818b858d6baf3fd10958c93f729', 'versionType': 'git'}, {'status': 'affected', 'version': '1d7a82c1df5fc397eaca9c6b8c8f61aae9866ad4', 'lessThan': '7a6a6d2a127866935f87b55b557bc89693065462', 'versionType': 'git'}, {'status': 'affected', 'version': '36f955807ee4ede07e9410772f792e4cb4ec807b', 'lessThan': 'f0c1810320b0dac228103fad7311e89532134d83', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '9f27c4f0ae35b5390ce4f7a54d3501144e41a54d', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '8a726e9585ffe7bfbfad2b5279277a00973970f3', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '980a813452754f8001704744e92f7aa697c53dd3', 'versionType': 'git'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 17, 2026

    Action Type Old Value New Value
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '9f27c4f0ae35b5390ce4f7a54d3501144e41a54d', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '8a726e9585ffe7bfbfad2b5279277a00973970f3', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '980a813452754f8001704744e92f7aa697c53dd3', 'versionType': 'git'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc5', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '9f27c4f0ae35b5390ce4f7a54d3501144e41a54d', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '8a726e9585ffe7bfbfad2b5279277a00973970f3', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '980a813452754f8001704744e92f7aa697c53dd3', 'versionType': 'git'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 08, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 05, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '9f27c4f0ae35b5390ce4f7a54d3501144e41a54d', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '8a726e9585ffe7bfbfad2b5279277a00973970f3', 'versionType': 'git'}, {'status': 'affected', 'version': 'cdec67a489d4fdae3e83e04fca0419136a83c4c2', 'lessThan': '980a813452754f8001704744e92f7aa697c53dd3', 'versionType': 'git'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc5', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/ipv4/tcp_ipv4.c'], 'defaultStatus': 'affected'}]
    Added Description In the Linux kernel, the following vulnerability has been resolved: bpf: tcp: fix double sock release on batch realloc bpf_iter_tcp_batch() releases the current batch via bpf_iter_tcp_put_batch(), which drops the socket refs and rewrites each slot with the socket cookie, then grows the batch. cur_sk/end_sk are kept for bpf_iter_tcp_resume(), but on realloc failure the function returns ERR_PTR() before resume runs, leaving cur_sk < end_sk over slots that now hold cookies rather than sock pointers. bpf_iter_tcp_seq_stop() then calls bpf_iter_tcp_put_batch() again and dereferences a cookie as a struct sock. Empty the batch on the failure path so stop() does not release it again. The sockets were already freed by the first bpf_iter_tcp_put_batch(), so nothing leaks, and a later read() rescans the bucket from the start instead of skipping it. The sibling GFP_NOWAIT failure path still holds real socket references and is left for stop() to release. BUG: KASAN: null-ptr-deref in __sock_gen_cookie Read of size 8 at addr 0000000000000059 by task exploit ... __sock_gen_cookie (net/core/sock_diag.c:28) bpf_iter_tcp_put_batch (net/ipv4/tcp_ipv4.c:2918) bpf_iter_tcp_seq_stop (net/ipv4/tcp_ipv4.c:3270) bpf_seq_read (kernel/bpf/bpf_iter.c:205) vfs_read (fs/read_write.c:572) ksys_read (fs/read_write.c:716) do_syscall_64 entry_SYSCALL_64_after_hwframe Kernel panic - not syncing: Fatal exception
    Added Reference https://git.kernel.org/stable/c/8a726e9585ffe7bfbfad2b5279277a00973970f3
    Added Reference https://git.kernel.org/stable/c/980a813452754f8001704744e92f7aa697c53dd3
    Added Reference https://git.kernel.org/stable/c/9f27c4f0ae35b5390ce4f7a54d3501144e41a54d
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.