# CVE-2024-27010: net/sched: Fix mirred deadlock on device recursion

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-05-01T05:29:23.494Z
- **Modified:** 2026-10-30T13:17:24.673Z

## Who should check

- Anyone running Linux \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 09d2e807aeb8e4f2e5eac4a3064f28dcf19b9c1e; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 524323f52cbfbac4fe3f8a33a8cc405fafba0d33; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< e6b90468da4dae2281a6e381107f411efb48b0ef; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 0f022d32c3eca477fbf79a205243a6123ed0fe11
- Anyone running Linux 4.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/sched: Fix mirred deadlock on device recursion

When the mirred action is used on a classful egress qdisc and a packet is
mirrored or redirected to self we hit a qdisc lock deadlock.
See trace below.

\[..... other info removed for brevity....\]
\[   82.890906\]
\[   82.890906\] ============================================
\[   82.890906\] WARNING: possible recursive locking detected
\[   82.890906\] 6.8.0-05205-g77fadd89fe2d-dirty \#213 Tainted: G        W
\[   82.890906\] --------------------------------------------
\[   82.890906\] ping/418 is trying to acquire lock:
\[   82.890906\] ffff888006994110 (&sch-\>q.lock){+.-.}-{3:3}, at:
\_\_dev\_queue\_xmit+0x1778/0x3550
\[   82.890906\]
\[   82.890906\] but task is already holding lock:
\[   82.890906\] ffff888006994110 (&sch-\>q.lock){+.-.}-{3:3}, at:
\_\_dev\_queue\_xmit+0x1778/0x3550
\[   82.890906\]
\[   82.890906\] other info that might help us debug this:
\[   82.890906\]  Possible unsafe locking scenario:
\[   82.890906\]
\[   82.890906\]        CPU0
\[   82.890906\]        ----
\[   82.890906\]   lock(&sch-\>q.lock);
\[   82.890906\]   lock(&sch-\>q.lock);
\[   82.890906\]
\[   82.890906\]  \*\*\* DEADLOCK \*\*\*
\[   82.890906\]
\[..... other info removed for brevity....\]

Example setup (eth0-\>eth0) to recreate
tc qdisc add dev eth0 root handle 1: htb default 30
tc filter add dev eth0 handle 1: protocol ip prio 2 matchall \\
     action mirred egress redirect dev eth0

Another example(eth0-\>eth1-\>eth0) to recreate
tc qdisc add dev eth0 root handle 1: htb default 30
tc filter add dev eth0 handle 1: protocol ip prio 2 matchall \\
     action mirred egress redirect dev eth1

tc qdisc add dev eth1 root handle 1: htb default 30
tc filter add dev eth1 handle 1: protocol ip prio 2 matchall \\
     action mirred egress redirect dev eth0

We fix this by adding an owner field (CPU id) to struct Qdisc set after
root qdisc is entered. When the softirq enters it a second time, if the
qdisc owner is the same CPU, the packet is dropped to break the loop.

## Affected and fixed versions

- Linux: \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 09d2e807aeb8e4f2e5eac4a3064f28dcf19b9c1e; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 524323f52cbfbac4fe3f8a33a8cc405fafba0d33; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< e6b90468da4dae2281a6e381107f411efb48b0ef; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 0f022d32c3eca477fbf79a205243a6123ed0fe11 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 0f022d32c3eca477fbf79a205243a6123ed0fe11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-27010. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27010.md
Affected: Linux >= e578d9c02587d57bfa7b560767c698a668a468c6, < 09d2e807aeb8e4f2e5eac4a3064f28dcf19b9c1e; >= e578d9c02587d57bfa7b560767c698a668a468c6, < 524323f52cbfbac4fe3f8a33a8cc405fafba0d33; >= e578d9c02587d57bfa7b560767c698a668a468c6, < e6b90468da4dae2281a6e381107f411efb48b0ef; >= e578d9c02587d57bfa7b560…
Fixed in: Linux 09d2e807aeb8e4f2e5eac4a3064f28dcf19b9c1e, Linux 524323f52cbfbac4fe3f8a33a8cc405fafba0d33, Linux 0f022d32c3eca477fbf79a205243a6123ed0fe11

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-27010 being exploited?

There is no confirmed exploitation: CVE-2024-27010 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-27010?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-27010?

Linux \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 09d2e807aeb8e4f2e5eac4a3064f28dcf19b9c1e; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 524323f52cbfbac4fe3f8a33a8cc405fafba0d33; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< e6b90468da4dae2281a6e381107f411efb48b0ef; \>= e578d9c02587d57bfa7b560767c698a668a468c6, \< 0f022d32c3eca477fbf79a205243a6123ed0fe11; Linux 4.2.

### Is there a fix for CVE-2024-27010?

Yes. Fixed in Linux 09d2e807aeb8e4f2e5eac4a3064f28dcf19b9c1e, Linux 524323f52cbfbac4fe3f8a33a8cc405fafba0d33, Linux 0f022d32c3eca477fbf79a205243a6123ed0fe11. Upgrade Linux to 0f022d32c3eca477fbf79a205243a6123ed0fe11 or later.

### How do I check if I'm affected by CVE-2024-27010?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e6b90468da4dae2281a6e381107f411efb48b0ef>
- patch: <https://git.kernel.org/stable/c/0f022d32c3eca477fbf79a205243a6123ed0fe11>
- other: <https://git.kernel.org/stable/c/09d2e807aeb8e4f2e5eac4a3064f28dcf19b9c1e>
- other: <https://git.kernel.org/stable/c/524323f52cbfbac4fe3f8a33a8cc405fafba0d33>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-27010>

HTML: <https://flawdb.com/CVE-2024-27010> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-27010>
