VDB

CVE-2026-98368

CVE-2026-98368 PUBLISHED CVSS 7.8 HIGH

esp: downgrade zerocopy managed frags before mutating skb frags

Reported by linux · Published October 6, 2026

In the Linux kernel, the following vulnerability has been resolved: esp: downgrade zerocopy managed frags before mutating skb frags On the out-of-place output path (esp->inplace == false) ESP rewrites the skb frag array: esp_output_head() appends a trailer frag and esp_output_tail() replaces the frags with a destination page, both referenced with get_page(). When the skb carries zerocopy managed frags (SKBFL_MANAGED_FRAG_REFS) the payload frags are owned by the ubuf and must not be referenced or unreferenced individually, but ESP mutates the frag array without ever downgrading the skb. This breaks the managed-frag invariant two ways: - esp_ssg_unref() walks the source scatterlist and drops a page reference for every frag, including the ubuf-owned payload frags, pushing their refcount below the GUP pin bias while the pages are still pinned, i.e. a use-after-free of the zerocopy pages; - esp_output_tail() installs its destination page as frag 0 with get_page() but leaves SKBFL_MANAGED_FRAG_REFS set, so skb_release_data() takes the skip_unref branch and never drops that reference, leaking the x->xfrag page at packet rate. Fix this the way every other frag-mutating site does (__ip_append_data(), __ip6_append_data(), tcp_sendmsg_locked()) and call skb_zcopy_downgrade_managed() before ESP touches the frag array: it takes a real reference on each existing frag and clears SKBFL_MANAGED_FRAG_REFS, so the per-frag unref in esp_ssg_unref() and the frag release in skb_release_data() are both balanced and no mixed-ownership frag array is left behind.

EPSS 0.12% · 1.7th percentile

Fixed versions

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

PackageEcosystemFixed in
kernelAmazon Linux1:6.1.189-236.399.amzn2023
python3-perf6.12Amazon Linux1:6.12.113-138.209.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.113-138.209.amzn2023
kernel-toolsAmazon Linux1:6.1.189-236.399.amzn2023
kernel6.12Amazon Linux1:6.12.113-138.209.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.54-121.166.amzn2023
microvm-kernelAmazon Linux1:6.1.189-236.399.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-headersAmazon Linux1:6.18.54-121.166.amzn2023
bpftoolAmazon Linux1:6.1.189-236.399.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.189-236.399.amzn2023
kernel-livepatch-6.1.189-236.399Amazon Linux1:1.0-0.amzn2023

7 more packages have a fixed version. See every fix in Lookup.

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
EPSS Score
0.12%
1.7th percentile

Affected products

VendorProductVersions
LinuxLinux753f1ca4e1e50248a1b760c9774d6d6b354562cc, 753f1ca4e1e50248a1b760c9774d6d6b354562cc, 753f1ca4e1e50248a1b760c9774d6d6b354562cc
LinuxLinux6.0, 0, 6.1.189
amazon:2023kernel0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-tools0
amazon:2023kernel6.120
amazon:2023kernel6.18-tools0
amazon:2023microvm-kernel0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-headers0
amazon:2023bpftool0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.1.189-236.3990
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.12-tools-devel0
amazon:2023perf0
amazon:2023python3-perf6.180
amazon:2023microvm-kernel6.180

…and 19 more

Timeline

  • Oct 6, 2026 EPSS Score (3 in total, the first dated here)
  • Oct 6, 2026 CVE Published
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98368
vulnetix vdb fixes CVE-2026-98368

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-98368/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 ›