В ядре Linux устранена следующая уязвимость:
net/sched: Taprio: исправлено использование после освобождения в заранее_sched() при переключении расписания
В заранее_sched(), когда метод must_change_schedules() возвращает true,
Switch_schedules() вызывается для запуска расписания администратора.
Switch_schedules() ставит в очередь старое расписание операций для освобождения RCU через
call_rcu(), но 'next' по-прежнему указывает на запись старого опера
график. Последующие 'next->end_time = end_time' и
rcu_assign_pointer(q->current_entry, next) используются после освобождения. Исправьте это, немедленно выбрав «Далее» в новом графике работы.
после switch_schedules() и с использованием заранее рассчитанного end_time.
setup_first_end_time() устанавливает для end_time первой записи значение
base_time + интервал при установке расписания, поэтому значение
уже правильно.
Удаленное назначение 'end_time = sched_base_time(admin)' также было
вреден независимо: это приведет к перезаписи новой первой записи.
предварительно рассчитанное конечное время с использованием только базового_времени.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.2
|
5.10.258
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.209
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.175
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.141
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.91
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|