CVE-2024-26739
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.28% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom e5cf1baf92cb785b90390db1c624948e70c8b8bd before 0117fe0a4615a7c8d30d6ebcbf87332fbe63e6fd, from e5cf1baf92cb785b90390db1c624948e70c8b8bd before 9d3ef89b6a5e9f2e940de2cef3d543be0be8dec5, from e5cf1baf92cb785b90390db1c624948e70c8b8bd before e873e8f7d03a2ee5b77fb1a305c782fed98e2754, from e5cf1baf92cb785b90390db1c624948e70c8b8bd before 28cdbbd38a4413b8eff53399b3f872fd4e80db9d, from e5cf1baf92cb785b90390db1c624948e70c8b8bd before f4e294bbdca8ac8757db436fc82214f3882fc7e7, from e5cf1baf92cb785b90390db1c624948e70c8b8bd before 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210, 4.19
Not affected: before 4.19, from 5.10.238 up to 5.10.*, from 5.15.182 up to 5.15.*, from 6.1.136 up to 6.1.*, from 6.6.19 up to 6.6.*, from 6.7.7 up to 6.7.*
CVE List
debian debian_linux11.0NVD
linux linux_kernelfrom 4.19 before 5.10.238, from 5.11 before 5.15.182, from 5.16 before 6.1.136, from 6.2 before 6.6.19, from 6.7 before 6.7.7, 6.8NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/sched: act_mirred: no anula retval si ya perdimos el skb. Si estamos redirigiendo el skb y aún no hemos llamado a tcf_mirred_forward(), necesitamos para decirle al núcleo que suelte el skb configurando el código de retección en SHOT. Sin embargo, si hemos llamado a tcf_mirred_forward(), el skb está fuera de nuestras manos y devolver SHOT conducirá a UaF. Mueva la anulación de recuperación a la ruta de error que realmente la necesita.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26739 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-26739 changed 2026-08-04Public domain