CVE-2024-26739

net/sched: act_mirred: don't override retval if we already lost the skb

7.8 high EPSS 0.28%

Published 3 Apr 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-26739

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-26739 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/sched: act_mirred: don't override retval if we already lost the skb

If we're redirecting the skb, and haven't called tcf_mirred_forward(), yet, we need to tell the core to drop the skb by setting the retcode to SHOT. If we have called tcf_mirred_forward(), however, the skb is out of our hands and returning SHOT will lead to UaF.

Move the retval override to the error path which actually need it.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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 high, 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 21.7% 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 e5cf1baf92cb785b90390db1c624948e70c8b8bd, before 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd
affected from e5cf1baf92cb785b90390db1c624948e70c8b8bd, before 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5
affected from e5cf1baf92cb785b90390db1c624948e70c8b8bd, before e873e8f7d03a2ee5b77fb1a305c782fed98e2754
affected from e5cf1baf92cb785b90390db1c624948e70c8b8bd, before 28cdbbd38a4413b8eff53399b3f872fd4e80db9d
affected from e5cf1baf92cb785b90390db1c624948e70c8b8bd, before f4e294bbdca8ac8757db436fc82214f3882fc7e7
affected from e5cf1baf92cb785b90390db1c624948e70c8b8bd, before 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210
Other versions: unaffected
Linux
affected 4.19
unaffected before 4.19
unaffected from 5.10.238 up to and including 5.10.*
unaffected from 5.15.182 up to and including 5.15.*
unaffected from 6.1.136 up to and including 6.1.*
unaffected from 6.6.19 up to and including 6.6.*
unaffected from 6.7.7 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-26739 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26739

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

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-26739 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.