CVE-2024-50127 net: sched: fix use-after-free in taprio_change()

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's taprio scheduler allows attackers to potentially execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-50127?

CVE-2024-50127 is a high-severity use after free vulnerability in Linux kernel, published on 5 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2024-50127?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50127?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-50127 being exploited?

There is no known exploitation of CVE-2024-50127 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-52483, AZL-52530, BELL-CVE-2024-50127, DEBIAN-CVE-2024-50127, GHSA-x848-x286-ccwf, UBUNTU-CVE-2024-50127.

Is CVE-2024-50127 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free