CVE-2026-53011: net/sched: taprio: fix use-after-free in advance_sched() on schedule switch
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/sched: taprio: fix use-after-free in advance_sched() on schedule switch
In advance_sched(), when should_change_schedules() returns true, switch_schedules() is called to promote the admin schedule to oper. switch_schedules() queues the old oper schedule for RCU freeing via call_rcu(), but 'next' still points into an entry of the old oper schedule. The subsequent 'next->end_time = end_time' and rcu_assign_pointer(q->current_entry, next) are use-after-free.
Fix this by selecting 'next' from the new oper schedule immediately after switch_schedules(), and using its pre-calculated end_time. setup_first_end_time() sets the first entry's end_time to base_time + interval when the schedule is installed, so the value is already correct.
The deleted 'end_time = sched_base_time(admin)' assignment was also harmful independently: it would overwrite the new first entry's pre-calculated end_time with just base_time.
The Linux kernel CVE team has assigned CVE-2026-53011 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 5.10.258 with commit a8fc396519ef4f081bc545e88f61241728bb78d7 Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 5.15.209 with commit 3471874578160a28c171a607fa069f24062634b8 Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 6.1.175 with commit 7256996e1ef553716817f3bfd077c2f3b48b582f Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 6.6.141 with commit eee072fe16c646190d33ae69c9983d8de1562bf8 Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 6.12.91 with commit 1bd286fa3e21200133478ed523cc6a2788baf38a Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 6.18.33 with commit b73235da5dde77ed1264f9767b62c28c9d71fd78 Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 7.0.10 with commit 0e62171df8ed4804d00db088f17eed06468233fa Issue introduced in 5.2 with commit a3d43c0d56f1b94e74963a2fbadfb70126d92213 and fixed in 7.1 with commit 105425b1969c5affe532713cfac1c0b320d7ac2b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53011
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/sched/sch_taprio.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a8fc396519ef4f081bc545e88f61241728bb78d7 https://git.kernel.org/stable/c/3471874578160a28c171a607fa069f24062634b8 https://git.kernel.org/stable/c/7256996e1ef553716817f3bfd077c2f3b48b582f https://git.kernel.org/stable/c/eee072fe16c646190d33ae69c9983d8de1562bf8 https://git.kernel.org/stable/c/1bd286fa3e21200133478ed523cc6a2788baf38a https://git.kernel.org/stable/c/b73235da5dde77ed1264f9767b62c28c9d71fd78 https://git.kernel.org/stable/c/0e62171df8ed4804d00db088f17eed06468233fa https://git.kernel.org/stable/c/105425b1969c5affe532713cfac1c0b320d7ac2b