CVE-2024-26739

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26739
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26739.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-26739
Downstream
Related
Published
2024-04-03T17:00:24.879Z
Modified
2025-11-28T02:35:31.186583Z
Summary
net/sched: act_mirred: don't override retval if we already lost the skb
Details

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 tcfmirredforward(), yet, we need to tell the core to drop the skb by setting the retcode to SHOT. If we have called tcfmirredforward(), 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26739.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e5cf1baf92cb785b90390db1c624948e70c8b8bd
Fixed
0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd
Fixed
9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5
Fixed
e873e8f7d03a2ee5b77fb1a305c782fed98e2754
Fixed
28cdbbd38a4413b8eff53399b3f872fd4e80db9d
Fixed
f4e294bbdca8ac8757db436fc82214f3882fc7e7
Fixed
166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
5.10.238
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.182
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.136
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.19
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.7