CVE-2026-64007
netfilter: synproxy: refresh tcphdr after skb_ensure_writable
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: synproxy: refresh tcphdr after skb_ensure_writable synproxy_tstamp_adjust() rewrites the TCP timestamp option in place and then patches the TCP checksum via inet_proto_csum_replace4() on the caller-supplied tcphdr pointer. Both ipv4_synproxy_hook() and ipv6_synproxy_hook() obtain that pointer with skb_header_pointer() before calling in, so it may either alias skb->head directly or point at the caller's on-stack _tcph buffer. Between obtaining the pointer and using it, the function calls skb_ensure_writable(skb, optend), which on a cloned or non-linear skb invokes pskb_expand_head() and frees the old skb->head. After that point the cached th is stale: caller (ipv[46]_synproxy_hook) th = skb_header_pointer(skb, ..., &_tcph) synproxy_tstamp_adjust(skb, protoff, th, ...) skb_ensure_writable(skb, optend) pskb_expand_head() /* kfree(old skb->head) */ ... inet_proto_csum_replace4(&th->check, ...) /* writes into freed head, or into the caller's stack copy leaving the on-wire checksum stale */ The option bytes are written through skb->data and are fine; only the checksum update goes through th and so lands in the wrong place. The result is either a write into freed slab memory or a packet leaving with a checksum that does not match its payload. Fix by re-deriving th from skb->data + protoff immediately after skb_ensure_writable() succeeds, so the subsequent checksum update targets the linear, writable header.
INFO
Published Date :
July 19, 2026, 4:17 p.m.
Last Modified :
July 30, 2026, 2:51 p.m.
Remotely Exploit :
Yes !
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Re-derive tcphdr from skb->data after skb_ensure_writable.
- Update checksum using the newly derived tcphdr pointer.
- Ensure the patched TCP header is written to the correct memory location.
- Apply kernel updates to fix this memory corruption issue.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64007.
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-64007 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-64007
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-64007 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64007 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
Jul. 20, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 19, 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': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': '9902a1058992de5d95656b64a3bd95c077f7ba2c', 'versionType': 'git'}, {'status': 'affected', 'version': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': 'd3019c61799adc21811af4b521f11f3dc77f8e04', 'versionType': 'git'}, {'status': 'affected', 'version': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': 'dd206819f210522579010d889d45a9530bb494bc', 'versionType': 'git'}, {'status': 'affected', 'version': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': 'af2c22ccb1f621aff487ff47a040e38e058541e7', 'versionType': 'git'}, {'status': 'affected', 'version': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': 'c7f945f7da097245a2f8ed7775ce48421047ee96', 'versionType': 'git'}, {'status': 'affected', 'version': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': 'f0fea2b6d5453a11ad11713bbf37561b9b3a7edf', 'versionType': 'git'}, {'status': 'affected', 'version': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': 'a91887a5b6ee4b98dfbf1db657ed2b879430149e', 'versionType': 'git'}, {'status': 'affected', 'version': '48b1de4c110a7afa4b85862f6c75af817db26fad', 'lessThan': '92170e6afe927ab2792a3f71902845789c8e31b1', 'versionType': 'git'}], 'programFiles': ['net/netfilter/nf_synproxy_core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.12'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.12', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.93', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.35', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.12', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/netfilter/nf_synproxy_core.c'], 'defaultStatus': 'affected'}] Added Description In the Linux kernel, the following vulnerability has been resolved: netfilter: synproxy: refresh tcphdr after skb_ensure_writable synproxy_tstamp_adjust() rewrites the TCP timestamp option in place and then patches the TCP checksum via inet_proto_csum_replace4() on the caller-supplied tcphdr pointer. Both ipv4_synproxy_hook() and ipv6_synproxy_hook() obtain that pointer with skb_header_pointer() before calling in, so it may either alias skb->head directly or point at the caller's on-stack _tcph buffer. Between obtaining the pointer and using it, the function calls skb_ensure_writable(skb, optend), which on a cloned or non-linear skb invokes pskb_expand_head() and frees the old skb->head. After that point the cached th is stale: caller (ipv[46]_synproxy_hook) th = skb_header_pointer(skb, ..., &_tcph) synproxy_tstamp_adjust(skb, protoff, th, ...) skb_ensure_writable(skb, optend) pskb_expand_head() /* kfree(old skb->head) */ ... inet_proto_csum_replace4(&th->check, ...) /* writes into freed head, or into the caller's stack copy leaving the on-wire checksum stale */ The option bytes are written through skb->data and are fine; only the checksum update goes through th and so lands in the wrong place. The result is either a write into freed slab memory or a packet leaving with a checksum that does not match its payload. Fix by re-deriving th from skb->data + protoff immediately after skb_ensure_writable() succeeds, so the subsequent checksum update targets the linear, writable header. Added Reference https://git.kernel.org/stable/c/92170e6afe927ab2792a3f71902845789c8e31b1 Added Reference https://git.kernel.org/stable/c/9902a1058992de5d95656b64a3bd95c077f7ba2c Added Reference https://git.kernel.org/stable/c/a91887a5b6ee4b98dfbf1db657ed2b879430149e Added Reference https://git.kernel.org/stable/c/af2c22ccb1f621aff487ff47a040e38e058541e7 Added Reference https://git.kernel.org/stable/c/c7f945f7da097245a2f8ed7775ce48421047ee96 Added Reference https://git.kernel.org/stable/c/d3019c61799adc21811af4b521f11f3dc77f8e04 Added Reference https://git.kernel.org/stable/c/dd206819f210522579010d889d45a9530bb494bc Added Reference https://git.kernel.org/stable/c/f0fea2b6d5453a11ad11713bbf37561b9b3a7edf