CVE-2025-68363
bpf: Check skb->transport_header is set in bpf_skb_check_mtu
Check your servers for CVE-2025-68363
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-68363 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
bpf: Check skb->transport_header is set in bpf_skb_check_mtu
The bpf_skb_check_mtu helper needs to use skb->transport_header when the BPF_MTU_CHK_SEGS flag is used:
bpf_skb_check_mtu(skb, ifindex, &mtu_len, 0, BPF_MTU_CHK_SEGS)
The transport_header is not always set. There is a WARN_ON_ONCE report when CONFIG_DEBUG_NET is enabled + skb->gso_size is set + bpf_prog_test_run is used:
WARNING: CPU: 1 PID: 2216 at ./include/linux/skbuff.h:3071 skb_gso_validate_network_len bpf_skb_check_mtu bpf_prog_3920e25740a41171_tc_chk_segs_flag # A test in the next patch bpf_test_run bpf_prog_test_run_skb
For a normal ingress skb (not test_run), skb_reset_transport_header is performed but there is plan to avoid setting it as described in commit 2170a1f09148 ("net: no longer reset transport_header in __netif_receive_skb_core()").
This patch fixes the bpf helper by checking skb_transport_header_was_set(). The check is done just before skb->transport_header is used, to avoid breaking the existing bpf prog. The WARN_ON_ONCE is limited to bpf_prog_test_run, so targeting bpf-next.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 34b2021cc61642d61c3cf943d9e71925b827941b, before b3171a5e4622e915e94599a55f4964078bdec27e affected from 34b2021cc61642d61c3cf943d9e71925b827941b, before 97b876fa88322625228792cf7a5fd77531815a80 affected from 34b2021cc61642d61c3cf943d9e71925b827941b, before 30ce906557a21adef4cba5901c8e995dc18263a9 affected from 34b2021cc61642d61c3cf943d9e71925b827941b, before 1c30e4afc5507f0069cc09bd561e510e4d97fbf7 affected from 34b2021cc61642d61c3cf943d9e71925b827941b, before 942268e2726ac7f16e3ec49dbfbbbe7cf5af9da5 affected from 34b2021cc61642d61c3cf943d9e71925b827941b, before d946f3c98328171fa50ddb908593cf833587f725
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 6.1.160 up to and including 6.1.* unaffected from 6.6.120 up to and including 6.6.* unaffected from 6.12.63 up to and including 6.12.* unaffected from 6.17.13 up to and including 6.17.* unaffected from 6.18.2 up to and including 6.18.* unaffected 6.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-68363 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-68363
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-68363
trivy image --scanners vuln IMAGE | grep CVE-2025-68363
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/b3171a5e4622e915e94599a55f4964078bdec27e git.kernel.org
- https://git.kernel.org/stable/c/97b876fa88322625228792cf7a5fd77531815a80 git.kernel.org
- https://git.kernel.org/stable/c/30ce906557a21adef4cba5901c8e995dc18263a9 git.kernel.org
- https://git.kernel.org/stable/c/1c30e4afc5507f0069cc09bd561e510e4d97fbf7 git.kernel.org
- https://git.kernel.org/stable/c/942268e2726ac7f16e3ec49dbfbbbe7cf5af9da5 git.kernel.org
- https://git.kernel.org/stable/c/d946f3c98328171fa50ddb908593cf833587f725 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2025-68363 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse