CVE-2024-26803

net: veth: clear GRO when clearing XDP even when down

No CVSS score yet EPSS 0.22%

Published 4 Apr 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-26803

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-2024-26803 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:

net: veth: clear GRO when clearing XDP even when down

veth sets NETIF_F_GRO automatically when XDP is enabled, because both features use the same NAPI machinery.

The logic to clear NETIF_F_GRO sits in veth_disable_xdp() which is called both on ndo_stop and when XDP is turned off. To avoid the flag from being cleared when the device is brought down, the clearing is skipped when IFF_UP is not set. Bringing the device down should indeed not modify its features.

Unfortunately, this means that clearing is also skipped when XDP is disabled _while_ the device is down. And there's nothing on the open path to bring the device features back into sync. IOW if user enables XDP, disables it and then brings the device up we'll end up with a stray GRO flag set but no NAPI instances.

We don't depend on the GRO flag on the datapath, so the datapath won't crash. We will crash (or hang), however, next time features are sync'ed (either by user via ethtool or peer changing its config). The GRO flag will go away, and veth will try to disable the NAPIs. But the open path never created them since XDP was off, the GRO flag was a stray. If NAPI was initialized before we'll hang in napi_disable(). If it never was we'll crash trying to stop uninitialized hrtimer.

Move the GRO flag updates to the XDP enable / disable paths, instead of mixing them with the ndo_open / ndo_close paths.

Exploitation

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

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from d3256efd8e8b234a6251e4d4580bd2c3c31fdc4c, before f011c103e654d83dc85f057a7d1bd0960d02831c
affected from d3256efd8e8b234a6251e4d4580bd2c3c31fdc4c, before 7985d73961bbb4e726c1be7b9cd26becc7be8325
affected from d3256efd8e8b234a6251e4d4580bd2c3c31fdc4c, before 16edf51f33f52dff70ed455bc40a6cc443c04664
affected from d3256efd8e8b234a6251e4d4580bd2c3c31fdc4c, before 8f7a3894e58e6f5d5815533cfde60e3838947941
affected from d3256efd8e8b234a6251e4d4580bd2c3c31fdc4c, before fe9f801355f0b47668419f30f1fac1cf4539e736
Other versions: unaffected
Linux
affected 5.13
unaffected before 5.13
unaffected from 5.15.151 up to and including 5.15.*
unaffected from 6.1.81 up to and including 6.1.*
unaffected from 6.6.21 up to and including 6.6.*
unaffected from 6.7.9 up to and including 6.7.*
unaffected 6.8 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-2024-26803 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26803

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-2024-26803
trivy image --scanners vuln IMAGE | grep CVE-2024-26803

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-2024-26803 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.