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

CVE-2024-26739
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.28 % · percentile 20 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e5cf1baf92cb785b90390db1c624948e70c8b8bd < 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd ; affected e5cf1baf92cb785b90390db1c624948e70c8b8bd < 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5 ; affected e5cf1baf92cb785b90390db1c624948e70c8b8bd < e873e8f7d03a2ee5b77fb1a305c782fed98e2754 ; affected e5cf1baf92cb785b90390db1c624948e70c8b8bd < 28cdbbd38a4413b8eff53399b3f872fd4e80db9d ; affected e5cf1baf92cb785b90390db1c624948e70c8b8bd < f4e294bbdca8ac8757db436fc82214f3882fc7e7 ; affected e5cf1baf92cb785b90390db1c624948e70c8b8bd < 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210
Linux · Linuxaffected 4.19 ; unaffected 0 < 4.19 ; unaffected 5.10.238 ≤ 5.10.* ; unaffected 5.15.182 ≤ 5.15.* ; unaffected 6.1.136 ≤ 6.1.* ; unaffected 6.6.19 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD