В ядре Linux устранена следующая уязвимость:
xen: исправлена проблема с неправильным освобождением ресурса в xenbus_dev_probe(). Этот патч исправляет проблему в функции xenbus_dev_probe(). В
Функция xenbus_dev_probe() в ветке if (err) в строке 313,
программа неправильно возвращает ошибку напрямую, не освобождая ресурсы
выделяется с помощью err = drv->probe(dev, id).
Поскольку возвращаемое значение не равно нулю, верхние уровни предполагают, что логика обработки дала сбой. Тем не менее, зонд операция была выполнена ранее без соответствующей операции удаления. Поскольку зонд фактически выделяет ресурсы, невозможно выполнить удаление. эксплуатация может привести к проблемам.
Чтобы устранить эту проблему, мы следовали логике освобождения ресурсов
xenbus_dev_remove(), добавив новый блокfail_remove перед
блок fail_put. После входа в ветку, если (ошибка) в строке 313,
функция будет использовать оператор goto для перехода к блокуfail_remove,
обеспечение правильного высвобождения ранее приобретенных ресурсов,
тем самым предотвращая утечку счетчика ссылок. Эта ошибка была обнаружена с помощью экспериментального инструмента статического анализа, разработанного
нашей командой.
Инструмент специализируется на анализе операций подсчета ссылок. и обнаружение потенциальных проблем, связанных с неправильным управлением ресурсами. В этом случае инструмент пометил отсутствующую операцию выпуска как потенциальная проблема, которая привела к разработке этого патча.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: xen: Fix the issue of resource not being properly released in xenbus_dev_probe() This patch fixes an issue in the function xenbus_dev_probe(). In the xenbus_dev_probe() function, within the if (err) branch at line 313, the program incorrectly returns err directly without releasing the resources allocated by err = drv->probe(dev, id). As the return value is non-zero, the upper layers assume the processing logic has failed. However, the probe operation was performed earlier without a corresponding remove operation. Since the probe actually allocates resources, failing to perform the remove operation could lead to problems. To fix this issue, we followed the resource release logic of the xenbus_dev_remove() function by adding a new block fail_remove before the fail_put block. After entering the branch if (err) at line 313, the function will use a goto statement to jump to the fail_remove block, ensuring that the previously acquired resources are correctly released, thus preventing the reference count leak. This bug was identified by an experimental static analysis tool developed by our team. The tool specializes in analyzing reference count operations and detecting potential issues where resources are not properly managed. In this case, the tool flagged the missing release operation as a potential problem, which led to the development of this patch.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.23
|
5.4.287
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.231
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.174
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.120
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.64
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.11.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12
|
6.12.2
|