CVE-2022-50564
Published: Oct 22, 2025
Modified: May 11, 2026
Description
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.
| Vendor | Product | Versions |
|---|---|---|
Linux | Linux | affected dc1f8bf68b311b1537cb65893430b6796118498a - < f13d870fce90f01cf930bfaffecc8185ae0be21caffected dc1f8bf68b311b1537cb65893430b6796118498a - < eccc88c0efe407e579291792ad07a7dedc0f63f0affected dc1f8bf68b311b1537cb65893430b6796118498a - < 85d392710275355425df8618ccbebbc336f5acc5affected dc1f8bf68b311b1537cb65893430b6796118498a - < 4bee3c75d5bf7c2b5dc0b520410eb40449e5da31affected dc1f8bf68b311b1537cb65893430b6796118498a - < 3ac0217ca9186c2f9af9a0113a331a42aa847894+4 more versions |
Linux | Linux | affected 2.6.32unaffected 0 - < 2.6.32unaffected 4.9.337 - <= 4.9.*unaffected 4.14.303 - <= 4.14.*unaffected 4.19.270 - <= 4.19.*+6 more versions |
References
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now