CVE-2022-49340

ip_gre: test csum_start instead of transport header

7.1 high EPSS 0.28%

Published 26 Feb 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-49340

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-2022-49340 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

ip_gre: test csum_start instead of transport header

GRE with TUNNEL_CSUM will apply local checksum offload on CHECKSUM_PARTIAL packets.

ipgre_xmit must validate csum_start after an optional skb_pull, else lco_csum may trigger an overflow. The original check was

if (csum && skb_checksum_start(skb) < skb->data) return -EINVAL;

This had false positives when skb_checksum_start is undefined: when ip_summed is not CHECKSUM_PARTIAL. A discussed refinement was straightforward

if (csum && skb->ip_summed == CHECKSUM_PARTIAL && skb_checksum_start(skb) < skb->data) return -EINVAL;

But was eventually revised more thoroughly: - restrict the check to the only branch where needed, in an uncommon GRE path that uses header_ops and calls skb_pull. - test skb_transport_header, which is set along with csum_start in skb_partial_csum_set in the normal header_ops datapath.

Turns out skbs can arrive in this branch without the transport header set, e.g., through BPF redirection.

Revise the check back to check csum_start directly, and only if CHECKSUM_PARTIAL. Do leave the check in the updated location. Check field regardless of whether TUNNEL_CSUM is configured.

Severity (CVSS)

7.1 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 774430026bd9a472d08c5d3c33351a782315771a, before 7596bd7920985f7fc8579a92e48bc53ce4475b21
affected from 3d32ce5472bb2ca720bef84089b85f76a705fd1a, before 3d08bc3a5d9b2106f5c8bcf1adb73147824aa006
affected from 87b34cd6485192777f632f92d592f2a71d8801a6, before fbeb8dfa8b87ef259eef0c89e39b53962a3cf604
affected from 8a0ed250f911da31a2aef52101bc707846a800ff, before e6b6f98fc7605c06c0a3baa70f62c534d7b4ce58
affected from 8a0ed250f911da31a2aef52101bc707846a800ff, before 0c92d813c7c9ca2212ecd879232e7d87362fce98
affected from 8a0ed250f911da31a2aef52101bc707846a800ff, before 0ffa268724656633af5f37a38c212326d98ebe8c
affected from 8a0ed250f911da31a2aef52101bc707846a800ff, before 8d21e9963bec1aad2280cdd034c8993033ef2948
affected 4bf5d5224ffca069df4501ba5fcc6ded9c002ead
affected from 4.19.207, before 4.19.247
affected from 5.4.148, before 5.4.198
affected from 5.10.68, before 5.10.122
affected from 5.14.7, before 5.15
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 4.19.247 up to and including 4.19.*
unaffected from 5.4.198 up to and including 5.4.*
unaffected from 5.10.122 up to and including 5.10.*
unaffected from 5.15.47 up to and including 5.15.*
unaffected from 5.17.15 up to and including 5.17.*
unaffected from 5.18.4 up to and including 5.18.*
unaffected 5.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-2022-49340 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49340

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-2022-49340
trivy image --scanners vuln IMAGE | grep CVE-2022-49340

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

Source: the record CVE-2022-49340 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.