CVE-2024-26739

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

State
Published
Severity
7.8 High
Published
Apr 3, 2024
Updated
Aug 5, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e5cf1baf92cb785b90390db1c624948e70c8b8bd to before 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fdAffected
  • e5cf1baf92cb785b90390db1c624948e70c8b8bd to before 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5Affected
  • e5cf1baf92cb785b90390db1c624948e70c8b8bd to before e873e8f7d03a2ee5b77fb1a305c782fed98e2754Affected
  • e5cf1baf92cb785b90390db1c624948e70c8b8bd to before 28cdbbd38a4413b8eff53399b3f872fd4e80db9dAffected
  • e5cf1baf92cb785b90390db1c624948e70c8b8bd to before f4e294bbdca8ac8757db436fc82214f3882fc7e7Affected
  • e5cf1baf92cb785b90390db1c624948e70c8b8bd to before 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210Affected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 5.10.238 through 5.10.*Not affected
  • 5.15.182 through 5.15.*Not affected
  • 6.1.136 through 6.1.*Not affected
  • 6.6.19 through 6.6.*Not affected
  • 6.7.7 through 6.7.*Not affected
  • 6.8 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.