В ядре Linux устранена следующая уязвимость:
atm/fore200e: исправлена возможная гонка данных в fore200e_open(). Защитите доступ к fore200e->available_cell_rate с помощью блокировкиrate_mtx в
путь обработки ошибок for200e_open(), чтобы предотвратить гонку данных. Поле for200e->available_cell_rate — это общий ресурс, используемый для отслеживания
доступная полоса пропускания.
Одновременно к нему обращается функция for200e_open(),
for200e_close() и for200e_change_qos(). В for200e_open() блокировкаrate_mtx правильно удерживается при вычитании
vcc->qos.txtp.max_pcr из доступной_cell_rate, чтобы зарезервировать полосу пропускания. Однако если последующий вызов for200e_activate_vcin() завершится неудачей,
функция восстанавливает зарезервированную полосу пропускания, добавляя обратно к
доступная_ячейка_рейт без удержания блокировки.
Это приводит к возникновению состояния гонки, поскольку доступная_ячейка_рейт является глобальным.
ресурс устройства, общий для всех VCC. Если путь ошибки в
fore200e_open() выполняется одновременно с такими операциями, как
for200e_close() или for200e_change_qos() на других VCC,
происходит гонка чтения-изменения-записи. В частности, путь ошибки считывает скорость без блокировки.
Если другой
ЦП получает блокировку и изменяет скорость (например, освобождая полосу пропускания в
fore200e_close()) между этим чтением и последующей записью возникает ошибка
path перезапишет параллельное обновление устаревшим значением. Это приводит к
в неправильном учете пропускной способности.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: atm/fore200e: Fix possible data race in fore200e_open() Protect access to fore200e->available_cell_rate with rate_mtx lock in the error handling path of fore200e_open() to prevent a data race. The field fore200e->available_cell_rate is a shared resource used to track available bandwidth. It is concurrently accessed by fore200e_open(), fore200e_close(), and fore200e_change_qos(). In fore200e_open(), the lock rate_mtx is correctly held when subtracting vcc->qos.txtp.max_pcr from available_cell_rate to reserve bandwidth. However, if the subsequent call to fore200e_activate_vcin() fails, the function restores the reserved bandwidth by adding back to available_cell_rate without holding the lock. This introduces a race condition because available_cell_rate is a global device resource shared across all VCCs. If the error path in fore200e_open() executes concurrently with operations like fore200e_close() or fore200e_change_qos() on other VCCs, a read-modify-write race occurs. Specifically, the error path reads the rate without the lock. If another CPU acquires the lock and modifies the rate (e.g., releasing bandwidth in fore200e_close()) between this read and the subsequent write, the error path will overwrite the concurrent update with a stale value. This results in incorrect bandwidth accounting.
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
5.10.247
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
5.15.197
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
6.1.159
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
6.6.119
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
6.12.61
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
6.17.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
6.18
|