Ad

CVE-2022-50564

NONE EPSS 0.25%
Обновлено 22 октября 2025
In
Параметр Значение
Поставщик In
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: s390/netiucv: исправлен тип возвращаемого значения netiucv_tx(). Благодаря целостности потока управления ядром clang (kCFI, CONFIG_CFI_CLANG), цели косвенного вызова проверяются на соответствие ожидаемой функции прототип указателя, чтобы убедиться, что цель вызова действительна, чтобы помочь смягчить последствия РОП-атаки. Если они не идентичны, во время выполнения произошел сбой. что проявляется либо в панике ядра, либо в уничтожении потока.

А предлагаемое предупреждение в clang направлено на то, чтобы уловить их во время компиляции, что показывает: driver/s390/net/netiucv.c:1854:21: ошибка: несовместимые типы указателей функций, инициализирующие 'netdev_tx_t (*)(struct sk_buff *, struct net_device *)' (также известный как 'enum netdev_tx (*)(struct sk_buff *, struct net_device *)') с выражением типа 'int (struct sk_buff *, struct net_device) *)' [-Werror,-Winсовместимая-функция-указатель-типы-строго] .ndo_start_xmit = netiucv_tx, ^~~~~~~~~~ ->ndo_start_xmit() в «struct net_device_ops» ожидает тип возвращаемого значения «netdev_tx_t», а не «int». Измените тип возвращаемого значения netiucv_tx() на сопоставить прототип, чтобы устранить предупреждение и потенциальный сбой CFI, следует s390 выбрать ARCH_SUPPORTS_CFI_CLANG в будущем. Кроме того, находясь в этом районе, удалите блок комментариев, который не является более актуально.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: s390/netiucv: Fix return type of netiucv_tx() With clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG), indirect call targets are validated against the expected function pointer prototype to make sure the call target is valid to help mitigate ROP attacks. If they are not identical, there is a failure at run time, which manifests as either a kernel panic or thread getting killed. A proposed warning in clang aims to catch these at compile time, which reveals: drivers/s390/net/netiucv.c:1854:21: error: incompatible function pointer types initializing 'netdev_tx_t (*)(struct sk_buff *, struct net_device *)' (aka 'enum netdev_tx (*)(struct sk_buff *, struct net_device *)') with an expression of type 'int (struct sk_buff *, struct net_device *)' [-Werror,-Wincompatible-function-pointer-types-strict] .ndo_start_xmit = netiucv_tx, ^~~~~~~~~~ ->ndo_start_xmit() in 'struct net_device_ops' expects a return type of 'netdev_tx_t', not 'int'. Adjust the return type of netiucv_tx() to match the prototype's to resolve the warning and potential CFI failure, should s390 select ARCH_SUPPORTS_CFI_CLANG in the future. Additionally, while in the area, remove a comment block that is no longer relevant.