# CVE-2024-53044: net/sched: sch\_api: fix xa\_insert() error path in tcf\_block\_get\_ext()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.28% (percentile 13, 2026-11-28)
- **Published:** 2024-11-19T17:19:32.095Z
- **Modified:** 2026-08-05T11:43:19.770Z

## Who should check

- Anyone running Linux \>= 94e2557d086ad831027c54bc9c2130d337c72814, \< 8966eb69a143b1c032365fe84f2815f3c46f2590; \>= 94e2557d086ad831027c54bc9c2130d337c72814, \< a13e690191eafc154b3f60afe9ce35aa9b9128b4
- Anyone running Linux 6.8

## Description

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

net/sched: sch\_api: fix xa\_insert() error path in tcf\_block\_get\_ext()

This command:

$ tc qdisc replace dev eth0 ingress\_block 1 egress\_block 1 clsact
Error: block dev insert failed: -EBUSY.

fails because user space requests the same block index to be set for
both ingress and egress.

\[ side note, I don't think it even failed prior to commit 913b47d3424e
  ("net/sched: Introduce tc block netdev tracking infra"), because this
  is a command from an old set of notes of mine which used to work, but
  alas, I did not scientifically bisect this \]

The problem is not that it fails, but rather, that the second time
around, it fails differently (and irrecoverably):

$ tc qdisc replace dev eth0 ingress\_block 1 egress\_block 1 clsact
Error: dsa\_core: Flow block cb is busy.

\[ another note: the extack is added by me for illustration purposes.
  the context of the problem is that clsact\_init() obtains the same
  &q-\>ingress\_block pointer as &q-\>egress\_block, and since we call
  tcf\_block\_get\_ext() on both of them, "dev" will be added to the
  block-\>ports xarray twice, thus failing the operation: once through
  the ingress block pointer, and once again through the egress block
  pointer. the problem itself is that when xa\_insert() fails, we have
  emitted a FLOW\_BLOCK\_BIND command through ndo\_setup\_tc(), but the
  offload never sees a corresponding FLOW\_BLOCK\_UNBIND. \]

Even correcting the bad user input, we still cannot recover:

$ tc qdisc replace dev swp3 ingress\_block 1 egress\_block 2 clsact
Error: dsa\_core: Flow block cb is busy.

Basically the only way to recover is to reboot the system, or unbind and
rebind the net device driver.

To fix the bug, we need to fill the correct error teardown path which
was missed during code movement, and call tcf\_block\_offload\_unbind()
when xa\_insert() fails.

\[ last note, fundamentally I blame the label naming convention in
  tcf\_block\_get\_ext() for the bug. The labels should be named after what
  they do, not after the error path that jumps to them. This way, it is
  obviously wrong that two labels pointing to the same code mean
  something is wrong, and checking the code correctness at the goto site
  is also easier \]

## Affected and fixed versions

- Linux: \>= 94e2557d086ad831027c54bc9c2130d337c72814, \< 8966eb69a143b1c032365fe84f2815f3c46f2590; \>= 94e2557d086ad831027c54bc9c2130d337c72814, \< a13e690191eafc154b3f60afe9ce35aa9b9128b4 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-53044.md
Affected: Linux >= 94e2557d086ad831027c54bc9c2130d337c72814, < 8966eb69a143b1c032365fe84f2815f3c46f2590; >= 94e2557d086ad831027c54bc9c2130d337c72814, < a13e690191eafc154b3f60afe9ce35aa9b9128b4; Linux 6.8
Fixed in: Linux 8966eb69a143b1c032365fe84f2815f3c46f2590

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-53044 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 94e2557d086ad831027c54bc9c2130d337c72814, \< 8966eb69a143b1c032365fe84f2815f3c46f2590; \>= 94e2557d086ad831027c54bc9c2130d337c72814, \< a13e690191eafc154b3f60afe9ce35aa9b9128b4; Linux 6.8.

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

Yes. Fixed in Linux 8966eb69a143b1c032365fe84f2815f3c46f2590. No fix listed yet: follow the vendor advisory.

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

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/8966eb69a143b1c032365fe84f2815f3c46f2590>
- patch: <https://git.kernel.org/stable/c/a13e690191eafc154b3f60afe9ce35aa9b9128b4>

## 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-53044>

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