{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-26739","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-02-19T14:20:24.166Z","datePublished":"2024-04-03T17:00:24.879Z","dateUpdated":"2026-08-05T11:26:57.172Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T11:26:57.172Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_mirred: don't override retval if we already lost the skb\n\nIf we're redirecting the skb, and haven't called tcf_mirred_forward(),\nyet, we need to tell the core to drop the skb by setting the retcode\nto SHOT. If we have called tcf_mirred_forward(), however, the skb\nis out of our hands and returning SHOT will lead to UaF.\n\nMove the retval override to the error path which actually need it."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable configuration (ingress qdisc + filter with an act_mirred redirect) must be installed locally via rtnetlink, and the attacker drives the trigger by injecting frames locally into that device. Per kernel scoring convention, tc/qdisc netlink-configured paths are Local.\nAC:L - There is no race or memory-layout precondition; the attacker fully controls both the mirred configuration and the drop condition (unhandled ethertype, or a drop filter/saturated qdisc on the target device), so every injected packet deterministically produces the double free.\nPR:L - Configuring the mirred action requires only CAP_NET_ADMIN within a network namespace, which any unprivileged user obtains via `unshare -Urn`; CAP_NET_RAW in that same user namespace supplies the AF_PACKET frame injection.\nUI:N - The attacker sets up the qdisc/filter and sends the packets entirely on their own; no action by any other user or administrator is needed.\nS:U - The corruption is confined to the kernel's own heap and privilege domain; no VM, IOMMU, or other security-authority boundary is crossed.\nC:H - The skb and its data buffer are freed twice, so the same slab object is handed to two owners; this use-after-free lets an attacker read the contents of a kernel object aliased onto the reclaimed skb, giving arbitrary kernel memory disclosure.\nI:H - The same double-free/UAF primitive permits heap spraying of the reclaimed skb with attacker-controlled data, yielding a write primitive over adjacent kernel structures and a path to control-flow hijack and privilege escalation.\nA:H - Even without further exploitation, freeing an already-freed skb corrupts the slab freelist and reliably triggers a kernel oops/panic (or BUG on a debug kernel), and it can be repeated at packet rate."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_mirred.c"],"versions":[{"version":"e5cf1baf92cb785b90390db1c624948e70c8b8bd","lessThan":"0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd","status":"affected","versionType":"git"},{"version":"e5cf1baf92cb785b90390db1c624948e70c8b8bd","lessThan":"9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5","status":"affected","versionType":"git"},{"version":"e5cf1baf92cb785b90390db1c624948e70c8b8bd","lessThan":"e873e8f7d03a2ee5b77fb1a305c782fed98e2754","status":"affected","versionType":"git"},{"version":"e5cf1baf92cb785b90390db1c624948e70c8b8bd","lessThan":"28cdbbd38a4413b8eff53399b3f872fd4e80db9d","status":"affected","versionType":"git"},{"version":"e5cf1baf92cb785b90390db1c624948e70c8b8bd","lessThan":"f4e294bbdca8ac8757db436fc82214f3882fc7e7","status":"affected","versionType":"git"},{"version":"e5cf1baf92cb785b90390db1c624948e70c8b8bd","lessThan":"166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_mirred.c"],"versions":[{"version":"4.19","status":"affected"},{"version":"0","lessThan":"4.19","status":"unaffected","versionType":"semver"},{"version":"5.10.238","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.182","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.136","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.19","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7.7","lessThanOrEqual":"6.7.*","status":"unaffected","versionType":"semver"},{"version":"6.8","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.10.238"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.15.182"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.1.136"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.6.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.7.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.8"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd"},{"url":"https://git.kernel.org/stable/c/9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5"},{"url":"https://git.kernel.org/stable/c/e873e8f7d03a2ee5b77fb1a305c782fed98e2754"},{"url":"https://git.kernel.org/stable/c/28cdbbd38a4413b8eff53399b3f872fd4e80db9d"},{"url":"https://git.kernel.org/stable/c/f4e294bbdca8ac8757db436fc82214f3882fc7e7"},{"url":"https://git.kernel.org/stable/c/166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210"}],"title":"net/sched: act_mirred: don't override retval if we already lost the skb","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/28cdbbd38a4413b8eff53399b3f872fd4e80db9d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/f4e294bbdca8ac8757db436fc82214f3882fc7e7","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"}],"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2025-11-03T19:29:31.734Z"}},{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-26739","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:51:53.930424Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-11T17:33:18.399Z"}}]}}