# CVE-2024-26739: net/sched: act_mirred: don't override retval if we already lost the skb

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-04-03T17:00:24.879Z
- Modified: 2026-08-05T11:26:57.172Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from e5cf1baf92cb785b90390db1c624948e70c8b8bd before 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd; from e5cf1baf92cb785b90390db1c624948e70c8b8bd before 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5; from e5cf1baf92cb785b90390db1c624948e70c8b8bd before e873e8f7d03a2ee5b77fb1a305c782fed98e2754; from e5cf1baf92cb785b90390db1c624948e70c8b8bd before 28cdbbd38a4413b8eff53399b3f872fd4e80db9d; from e5cf1baf92cb785b90390db1c624948e70c8b8bd before f4e294bbdca8ac8757db436fc82214f3882fc7e7; from e5cf1baf92cb785b90390db1c624948e70c8b8bd before 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210; 4.19 (not affected: before 4.19; from 5.10.238 up to 5.10.*; from 5.15.182 up to 5.15.*; from 6.1.136 up to 6.1.*; from 6.6.19 up to 6.6.*; from 6.7.7 up to 6.7.*; from 6.8 up to *)
- debian debian_linux: 11.0
- linux linux_kernel: from 4.19 before 5.10.238; from 5.11 before 5.15.182; from 5.16 before 6.1.136; from 6.2 before 6.6.19; from 6.7 before 6.7.7; 6.8

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd> (patch)
- <https://git.kernel.org/stable/c/9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5> (patch)
- <https://git.kernel.org/stable/c/e873e8f7d03a2ee5b77fb1a305c782fed98e2754> (patch)
- <https://git.kernel.org/stable/c/28cdbbd38a4413b8eff53399b3f872fd4e80db9d> (patch)
- <https://git.kernel.org/stable/c/f4e294bbdca8ac8757db436fc82214f3882fc7e7> (patch)
- <https://git.kernel.org/stable/c/166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2024-26739](https://www.cve.org/CVERecord?id=CVE-2024-26739), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26739](https://nvd.nist.gov/vuln/detail/CVE-2024-26739), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26739 · Whole record: https://cve.day/CVE-2024-26739.json · Rebuilt by cve.day 2026-11-25T22:58:38.677Z
