CVE-2024-50127
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.33% (higher than 19% of CVEs)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom a3d43c0d56f1b94e74963a2fbadfb70126d92213 before 2f868ce6013548a713c431c679ef73747a66fcf3, from a3d43c0d56f1b94e74963a2fbadfb70126d92213 before 8a283a19026aaae8a773fd8061263cfa315b127f, from a3d43c0d56f1b94e74963a2fbadfb70126d92213 before 999612996df28d81f163dad530d7f8026e03aec6, from a3d43c0d56f1b94e74963a2fbadfb70126d92213 before fe371f084073e8672a2d7d46b335c3c060d1e301, from a3d43c0d56f1b94e74963a2fbadfb70126d92213 before 0d4c0d2844e4eac3aed647f948fd7e60eea56a61, from a3d43c0d56f1b94e74963a2fbadfb70126d92213 before 2240f9376f20f8b6463232b4ca7292569217237f, from a3d43c0d56f1b94e74963a2fbadfb70126d92213 before f504465970aebb2467da548f7c1efbbf36d0f44b, 5.2
Not affected: before 5.2, from 5.4.285 up to 5.4.*, from 5.10.229 up to 5.10.*, from 5.15.170 up to 5.15.*, from 6.1.115 up to 6.1.*, from 6.6.59 up to 6.6.*
CVE List
linux linux_kernelfrom 5.2 before 5.15.170, from 5.16 before 6.1.115, from 6.2 before 6.6.59, from 6.7 before 6.11.6, 6.12NVD

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
CISA-ADP7.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 total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: sched: arreglado use-after-free en taprio_change(). En 'taprio_change()', el puntero 'admin' puede quedar colgando debido al cambio/eliminación de sched causado por 'advance_sched()', y la sección crítica protegida por 'q->current_entry_lock' es demasiado pequeña para evitar tal escenario (que causa el use-after-free detectado por KASAN). Solucione esto al preferir 'rcu_replace_pointer()' sobre 'rcu_assign_pointer()' para actualizar 'admin' inmediatamente antes de un intento de liberación de programación.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50127 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-50127 changed 2026-10-15Public domain