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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 22, 2026-12-02)
- **CWE:** CWE-416
- **Published:** 2024-04-03T17:00:24.879Z
- **Modified:** 2026-08-05T11:26:57.172Z

## Who should check

- Anyone running Linux \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< e873e8f7d03a2ee5b77fb1a305c782fed98e2754; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 28cdbbd38a4413b8eff53399b3f872fd4e80db9d; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< f4e294bbdca8ac8757db436fc82214f3882fc7e7; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210
- Anyone running Linux 4.19

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

## Affected and fixed versions

- Linux: \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< e873e8f7d03a2ee5b77fb1a305c782fed98e2754; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 28cdbbd38a4413b8eff53399b3f872fd4e80db9d; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< f4e294bbdca8ac8757db436fc82214f3882fc7e7; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26739. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26739.md
Affected: Linux >= e5cf1baf92cb785b90390db1c624948e70c8b8bd, < 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd; >= e5cf1baf92cb785b90390db1c624948e70c8b8bd, < 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5; >= e5cf1baf92cb785b90390db1c624948e70c8b8bd, < e873e8f7d03a2ee5b77fb1a305c782fed98e2754; >= e5cf1baf92cb785b90390db…
Fixed in: Linux 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd, Linux 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5, Linux 28cdbbd38a4413b8eff53399b3f872fd4e80db9d, Linux 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26739 being exploited?

There is no confirmed exploitation: CVE-2024-26739 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-12-02).

### How serious is CVE-2024-26739?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26739?

Linux \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< e873e8f7d03a2ee5b77fb1a305c782fed98e2754; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 28cdbbd38a4413b8eff53399b3f872fd4e80db9d; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< f4e294bbdca8ac8757db436fc82214f3882fc7e7; \>= e5cf1baf92cb785b90390db1c624948e70c8b8bd, \< 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210; Linux 4.19.

### Is there a fix for CVE-2024-26739?

Yes. Fixed in Linux 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd, Linux 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5, Linux 28cdbbd38a4413b8eff53399b3f872fd4e80db9d, Linux 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210. Upgrade Linux to 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210 or later.

### How do I check if I'm affected by CVE-2024-26739?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26739>

HTML: <https://flawdb.com/CVE-2024-26739> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26739>
