В ядре Linux устранена следующая уязвимость: pinctrl: bcm2835: Don't удалить незарегистрированный чип GPIO If функция devm_pinctrl_register() выходит из строя, bcm2835_pinctrl_probe() вызывает gpiochip_remove() до того, как gpiochip_add_data() зарегистрировал чип GPIO. Это означает, что после неудачи gpio_chip.gpiodev является NULL, что приводит к нулевому удалению указателя внутри функции gpiochip_remove (). Удалите ненужный вызов функции в gpiochip_remove().
Очистка GPIO не требуется, потому что чип GPIO еще не зарегистрирован. Без этого изменения существует вероятность возникновения паники ядра при отказе регистрации
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: pinctrl: bcm2835: Don't remove an unregistered GPIO chip If the devm_pinctrl_register() function fails, bcm2835_pinctrl_probe() calls gpiochip_remove() before gpiochip_add_data() has registered the GPIO chip. This means that upon failure the gpio_chip.gpiodev is NULL resulting in a null pointer dereference inside the gpiochip_remove() function. Remove the unnecessary function call to gpiochip_remove(). No GPIO cleanup is required because the GPIO chip has not yet been registered. Without this change there is potential for a kernel panic upon registration failure