CVE-2022-50564

Source
https://cve.org/CVERecord?id=CVE-2022-50564
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50564.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50564
Downstream
Related
Published
2025-10-22T13:23:22.703Z
Modified
2026-03-20T11:47:31.788621Z
Summary
s390/netiucv: Fix return type of netiucv_tx()
Details

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, CONFIGCFICLANG), 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 'netdevtxt (*)(struct skbuff *, struct netdevice )' (aka 'enum netdev_tx ()(struct sk_buff *, struct netdevice *)') with an expression of type 'int (struct skbuff *, struct netdevice *)' [-Werror,-Wincompatible-function-pointer-types-strict] .ndostartxmit = netiucvtx, ^~~~~~~~~~

->ndostartxmit() in 'struct netdeviceops' expects a return type of 'netdevtxt', not 'int'. Adjust the return type of netiucvtx() to match the prototype's to resolve the warning and potential CFI failure, should s390 select ARCHSUPPORTSCFICLANG in the future.

Additionally, while in the area, remove a comment block that is no longer relevant.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50564.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dc1f8bf68b311b1537cb65893430b6796118498a
Fixed
f13d870fce90f01cf930bfaffecc8185ae0be21c
Fixed
eccc88c0efe407e579291792ad07a7dedc0f63f0
Fixed
85d392710275355425df8618ccbebbc336f5acc5
Fixed
4bee3c75d5bf7c2b5dc0b520410eb40449e5da31
Fixed
3ac0217ca9186c2f9af9a0113a331a42aa847894
Fixed
dfbf0122ea1b9b3e73fa22c8ff6bd888935c54fc
Fixed
e7a849f740e3576e79cba403697e916f4c3a6f12
Fixed
d034fa43af92fc46a81d882f46d9cc3e4ffdbbcc
Fixed
88d86d18d7cf7e9137c95f9d212bb9fff8a1b4be

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50564.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.32
Fixed
4.9.337
Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
4.14.303
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50564.json"