{"id":"CVE-2022-50706","aliases":["CVE-2022-50706"],"related":[],"kind":"vulnerability","state":"published","title":"net/ieee802154: don't warn zero-sized raw_sendmsg()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/ieee802154: don't warn zero-sized raw_sendmsg()\n\nsyzbot is hitting skb_assert_len() warning at __dev_queue_xmit() [1],\nfor PF_IEEE802154 socket's zero-sized raw_sendmsg() request is hitting\n__dev_queue_xmit() with skb->len == 0.\n\nSince PF_IEEE802154 socket's zero-sized raw_sendmsg() request was\nable to return 0, don't call __dev_queue_xmit() if packet length is 0.\n\n  ----------\n  #include <sys/socket.h>\n  #include <netinet/in.h>\n\n  int main(int argc, char *argv[])\n  {\n    struct sockaddr_in addr = { .sin_family = AF_INET, .sin_addr.s_addr = htonl(INADDR_LOOPBACK) };\n    struct iovec iov = { };\n    struct msghdr hdr = { .msg_name = &addr, .msg_namelen = sizeof(addr), .msg_iov = &iov, .msg_iovlen = 1 };\n    sendmsg(socket(PF_IEEE802154, SOCK_RAW, 0), &hdr, 0);\n    return 0;\n  }\n  ----------\n\nNote that this might be a sign that commit fd1894224407c484 (\"bpf: Don't\nredirect packets with invalid pkt_len\") should be reverted, for\nskb->len == 0 was acceptable for at least PF_IEEE802154 socket.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/ieee802154: don't warn zero-sized raw_sendmsg()\n\nsyzbot is hitting skb_assert_len() warning at __dev_queue_xmit() [1],\nfor PF_IEEE802154 socket's zero-sized raw_sendmsg() request is hitting\n__dev_queue_xmit() with skb->len == 0.\n\nSince PF_IEEE802154 socket's zero-sized raw_sendmsg() request was\nable to return 0, don't call __dev_queue_xmit() if packet length is 0.\n\n  ----------\n  #include <sys/socket.h>\n  #include <netinet/in.h>\n\n  int main(int argc, char *argv[])\n  {\n    struct sockaddr_in addr = { .sin_family = AF_INET, .sin_addr.s_addr = htonl(INADDR_LOOPBACK) };\n    struct iovec iov = { };\n    struct msghdr hdr = { .msg_name = &addr, .msg_namelen = sizeof(addr), .msg_iov = &iov, .msg_iovlen = 1 };\n    sendmsg(socket(PF_IEEE802154, SOCK_RAW, 0), &hdr, 0);\n    return 0;\n  }\n  ----------\n\nNote that this might be a sign that commit fd1894224407c484 (\"bpf: Don't\nredirect packets with invalid pkt_len\") should be reverted, for\nskb->len == 0 was acceptable for at least PF_IEEE802154 socket.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\\n\\nnet/ieee802154: no advertir sobre raw_sendmsg() de tamaño cero\\n\\nsyzbot está activando la advertencia skb_assert_len() en __dev_queue_xmit() [1],\\npara la solicitud raw_sendmsg() de tamaño cero del socket PF_IEEE802154 que llega a\\n__dev_queue_xmit() con skb   ->   len == 0.\\n\\nDado que la solicitud raw_sendmsg() de tamaño cero del socket PF_IEEE802154\\npudo devolver 0, no se debe llamar a __dev_queue_xmit() si la longitud del paquete es 0.\\n\\n----------\\n#include <sys/socket.h>\\n#include <netinet/in.h>\\n\\nint main(int argc, char argv[])\\n{\\n  struct sockaddr_in addr = { .sin_family = AF_INET, .sin_addr.s_addr = htonl(INADDR_LOOPBACK) };\\n  struct iovec iov = { };\\n  struct msghdr hdr = { .msg_name = &addr, .msg_namelen = sizeof(addr), .msg_iov = &iov, .msg_iovlen = 1 };\\n  sendmsg(socket(PF_IEEE802154, SOCK_RAW, 0), &hdr, 0);\\n  return 0;\\n}\\n----------\\n\\nTenga en cuenta que esto podría ser una señal de que el commit fd1894224407c484 (’bpf: Don’t redirect packets with invalid pkt_len’) debería revertirse, ya que skb   ->   len == 0 era aceptable al menos para el socket PF_IEEE802154.","source":"nvd"}],"published":"2025-12-24T10:55:20.835Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8b68e53d56697a59b5c53893b53f508bbdf272a0","fixed":"4a36de8947794fa21435d1e916e089095f3246a8","status":"affected"},{"type":"git","introduced":"6204bf78b2a903b96ba43afff6abc0b04d6e0462","fixed":"791489a5c56396ddfed75fc525066d4738dace46","status":"affected"},{"type":"git","introduced":"a75987714bd2d8e59840667a28e15c1fa5c47554","fixed":"34f31a2b667914ab701ca725554a0b447809d7ef","status":"affected"},{"type":"git","introduced":"72f2dc8993f10262092745a88cb2dd0fef094f23","fixed":"df0da3fc131132b6c32a15c4da4ffa3a5aea1af2","status":"affected"},{"type":"git","introduced":"fd1894224407c484f652ad456e1ce423e89bb3eb","fixed":"9974d220c5073d035b5469d1d8ecd71da86c7afd","status":"affected"},{"type":"git","introduced":"fd1894224407c484f652ad456e1ce423e89bb3eb","fixed":"b12e924a2f5b960373459c8f8a514f887adf5cac","status":"affected"},{"type":"semver","introduced":"5.4.212","fixed":"5.4.220","status":"affected"},{"type":"semver","introduced":"5.10.141","fixed":"5.10.150","status":"affected"},{"type":"semver","introduced":"5.15.65","fixed":"5.15.75","status":"affected"},{"type":"semver","introduced":"5.19.7","fixed":"5.19.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"5.4.220","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.150","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","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/4a36de8947794fa21435d1e916e089095f3246a8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/791489a5c56396ddfed75fc525066d4738dace46","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34f31a2b667914ab701ca725554a0b447809d7ef","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df0da3fc131132b6c32a15c4da4ffa3a5aea1af2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9974d220c5073d035b5469d1d8ecd71da86c7afd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b12e924a2f5b960373459c8f8a514f887adf5cac","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50706","url":"https://www.cve.org/CVERecord?id=CVE-2022-50706","licence":"CVE Terms of Use","modified":"2026-05-23T15:24:53.997Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50706","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50706","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.327Z","epss":{"score":0.00221,"percentile":0.13441,"date":"2026-12-01T12:00:22.000Z"}}