{"id":"CVE-2022-50728","aliases":["CVE-2022-50728"],"related":[],"kind":"vulnerability","state":"published","title":"s390/lcs: Fix return type of lcs_start_xmit()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/lcs: Fix return type of lcs_start_xmit()\n\nWith clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),\nindirect call targets are validated against the expected function\npointer prototype to make sure the call target is valid to help mitigate\nROP attacks. If they are not identical, there is a failure at run time,\nwhich manifests as either a kernel panic or thread getting killed. A\nproposed warning in clang aims to catch these at compile time, which\nreveals:\n\n  drivers/s390/net/lcs.c:2090: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]\n          .ndo_start_xmit         = lcs_start_xmit,\n                                    ^~~~~~~~~~~~~~\n  drivers/s390/net/lcs.c:2097: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]\n          .ndo_start_xmit         = lcs_start_xmit,\n                                    ^~~~~~~~~~~~~~\n\n->ndo_start_xmit() in 'struct net_device_ops' expects a return type of\n'netdev_tx_t', not 'int'. Adjust the return type of lcs_start_xmit() to\nmatch the prototype's to resolve the warning and potential CFI failure,\nshould s390 select ARCH_SUPPORTS_CFI_CLANG in the future.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/lcs: Fix return type of lcs_start_xmit()\n\nWith clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),\nindirect call targets are validated against the expected function\npointer prototype to make sure the call target is valid to help mitigate\nROP attacks. If they are not identical, there is a failure at run time,\nwhich manifests as either a kernel panic or thread getting killed. A\nproposed warning in clang aims to catch these at compile time, which\nreveals:\n\n  drivers/s390/net/lcs.c:2090: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]\n          .ndo_start_xmit         = lcs_start_xmit,\n                                    ^~~~~~~~~~~~~~\n  drivers/s390/net/lcs.c:2097: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]\n          .ndo_start_xmit         = lcs_start_xmit,\n                                    ^~~~~~~~~~~~~~\n\n->ndo_start_xmit() in 'struct net_device_ops' expects a return type of\n'netdev_tx_t', not 'int'. Adjust the return type of lcs_start_xmit() to\nmatch the prototype's to resolve the warning and potential CFI failure,\nshould s390 select ARCH_SUPPORTS_CFI_CLANG in the future.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ns390/lcs: Corregir el tipo de retorno de lcs_start_xmit()\n\nCon la integridad del flujo de control del kernel de clang (kCFI, CONFIG_CFI_CLANG), los objetivos de llamadas indirectas se validan contra el prototipo de puntero de función esperado para asegurar que el objetivo de la llamada sea válido y ayudar a mitigar los ataques ROP. Si no son idénticos, hay un fallo en tiempo de ejecución, que se manifiesta como un pánico del kernel o la terminación de un hilo. Una advertencia propuesta en clang tiene como objetivo detectarlos en tiempo de compilación, lo que revela:\n\n  drivers/s390/net/lcs.c:2090:21: error: tipos de puntero de función incompatibles al inicializar ’netdev_tx_t (*)(struct sk_buff *, struct net_device *)’ (también conocido como ’enum netdev_tx (*)(struct sk_buff *, struct net_device *)’) con una expresión de tipo ’int (struct sk_buff *, struct net_device *)’ [-Werror,-Wincompatible-function-pointer-types-strict]\n          .ndo_start_xmit         = lcs_start_xmit,\n                                    ^~~~~~~~~~~~~~\n  drivers/s390/net/lcs.c:2097:21: error: tipos de puntero de función incompatibles al inicializar ’netdev_tx_t (*)(struct sk_buff *, struct net_device *)’ (también conocido como ’enum netdev_tx (*)(struct sk_buff *, struct net_device *)’) con una expresión de tipo ’int (struct sk_buff *, struct net_device *)’ [-Werror,-Wincompatible-function-pointer-types-strict]\n          .ndo_start_xmit         = lcs_start_xmit,\n                                    ^~~~~~~~~~~~~~\n\n  ->  ndo_start_xmit() en ’struct net_device_ops’ espera un tipo de retorno de ’netdev_tx_t’, no ’int’. Ajustar el tipo de retorno de lcs_start_xmit() para que coincida con el del prototipo para resolver la advertencia y el posible fallo de CFI, en caso de que s390 seleccione ARCH_SUPPORTS_CFI_CLANG en el futuro.","source":"nvd"}],"published":"2025-12-24T12:22:49.001Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"7b4da3fcd513b8e67823eb80da37aad99b3339c1","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"d49cc2b705711fb8fb849e7c660929b2100360b7","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"e684215d8a903752e2b0cc946517fb61e57a880a","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"20022d551f2064a194d8e0acb6cd7a85094a17b2","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"ebc3c77785dc8b5b626309c0032a38fbb139287a","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"5ad774fb823c24bbeb21a15a67103ea7a6f5b928","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"69669820844f81a77b6db24b86581320ae4d17af","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"cda74cdc280ba35c8993e7517bac5c257ff36f18","status":"affected"},{"type":"git","introduced":"dc1f8bf68b311b1537cb65893430b6796118498a","fixed":"bb16db8393658e0978c3f0d30ae069e878264fa3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.32","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.32","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7b4da3fcd513b8e67823eb80da37aad99b3339c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d49cc2b705711fb8fb849e7c660929b2100360b7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e684215d8a903752e2b0cc946517fb61e57a880a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/20022d551f2064a194d8e0acb6cd7a85094a17b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ebc3c77785dc8b5b626309c0032a38fbb139287a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ad774fb823c24bbeb21a15a67103ea7a6f5b928","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69669820844f81a77b6db24b86581320ae4d17af","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cda74cdc280ba35c8993e7517bac5c257ff36f18","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb16db8393658e0978c3f0d30ae069e878264fa3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50728","url":"https://www.cve.org/CVERecord?id=CVE-2022-50728","licence":"CVE Terms of Use","modified":"2026-05-11T19:24:22.183Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50728","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50728","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.336Z","epss":{"score":0.00304,"percentile":0.25016,"date":"2026-12-01T12:00:22.000Z"}}