CVE-2022-50706
In the Linux kernel, the following vulnerability has been resolved: net/ieee802154: don't warn zero-sized raw_sendmsg() syzbot is hitting skb_assert_len() warning at __dev_queue_xmit() [1], for PF_IEEE802154 socket's zero-sized raw_sendmsg() request is hitting __dev_queue_xmit() with skb->len == 0. Since PF_IEEE802154 socket's zero-sized raw_sendmsg() request was able to return 0, don't call __dev_queue_xmit() if packet length is 0. ---------- #include <sys/socket.h> #include <netinet/in.h> int main(int argc, char *argv[]) { struct sockaddr_in addr = { .sin_family = AF_INET, .sin_addr.s_addr = htonl(INADDR_LOOPBACK) }; struct iovec iov = { }; struct msghdr hdr = { .msg_name = &addr, .msg_namelen = sizeof(addr), .msg_iov = &iov, .msg_iovlen = 1 }; sendmsg(socket(PF_IEEE802154, SOCK_RAW, 0), &hdr, 0); return 0; } ---------- Note that this might be a sign that commit fd1894224407c484 ("bpf: Don't redirect packets with invalid pkt_len") should be reverted, for skb->len == 0 was acceptable for at least PF_IEEE802154 socket.
Affected versions
Linux kernel versions
5.4.212,
5.10.141,
5.15.65,
5.19.7,
6.0
and later are affected. Fixed in
5.4.220,
5.10.150,
5.15.75,
5.19.17,
6.0.3,
6.1
and their respective stable series.
References
The following references provide additional information about CVE-2022-50706 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/34f31a2b667914ab701ca725554a0b447809d7ef
-
PatchKernel patch commithttps://git.kernel.org/stable/c/4a36de8947794fa21435d1e916e089095f3246a8
-
PatchKernel patch commithttps://git.kernel.org/stable/c/791489a5c56396ddfed75fc525066d4738dace46
Frequently asked questions
-
What is CVE-2022-50706?
CVE-2022-50706 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.4.212 onward and has been patched in 5.4.220, 5.10.150, 5.15.75 and others. CVE-2022-50706 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2022-50706?
Yes — CVE-2022-50706 has been patched. Fixed versions include 5.4.220, 5.10.150, 5.15.75 and others. If you are running Linux kernel 5.4.212 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50706 actively exploited?
No — CVE-2022-50706 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.