Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A2E731AA82 for ; Wed, 24 Dec 2025 10:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573852; cv=none; b=uTbW7fE21Q+vrVDwtnBAwH30KnB2HrOG06iF+U0q8uQ/l/9/1qnajakhJQyWqykj9XuYtzO2dAr7nQWNyuzq1Nq0DGb4PweLx6Wkm16o6IlYKenM9FcHmu8bzuupWsS+ZHgiJkBWoulGewM3oCGbB1Cqd5NOFX6P6fNy+UqM6uI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573852; c=relaxed/simple; bh=ybgEL48ok2eCGUGNEcPS2sV9u+M0skqHz1hqqYfXF6o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aN90IyqwUoE5YMaBlhw98slGrUrkAzSGocLB3avezwSypFB5oWo/YV/qhOij3vxhM+ZOvIUF5nut0v0XN/Oa8XhIN1p3hR7qFHpt/f9Qqx+Q0tSv5vNxmrYgt2X9o8rEzz/4p7PHnYjFI+DErpbK1MuIQ/FjEc+T8wKjIILiaG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UPP1PKXq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UPP1PKXq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A076C4CEFB; Wed, 24 Dec 2025 10:57:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573851; bh=ybgEL48ok2eCGUGNEcPS2sV9u+M0skqHz1hqqYfXF6o=; h=From:To:Cc:Subject:Date:Reply-To:From; b=UPP1PKXqc9YRR2HttSXz9qj+d1zNds/zeOxpuxbp4pPV3JXaaPkHAqUVcVKqRfso5 nVEUTL3U6eGjdl3JnimtlyL5YV4aWg5mMO8DOTVkiBXWgSI0/cmA8ALiXljv6pYRgV huOA8Kc58MApsMvIem0XG4G/XaCwy9EH2SzYu3W4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50706: net/ieee802154: don't warn zero-sized raw_sendmsg() Date: Wed, 24 Dec 2025 11:56:23 +0100 Message-ID: <2025122420-CVE-2022-50706-930a@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3658; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ADWzoUnLl0Yq7V+DxlJJgrRLBX0EpEMJx0S7KjK7Ipw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex67kLLL4/V1zwaMNhzlVc47k8QRZHzroO1vZqzE67 syh70+vdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjoUzzJUPd2iX3x1X7Vrw cM2dFKsv1w2f+zIsWGLzzupV4pwluSfUzW/kLZimm+PaDgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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 #include 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. The Linux kernel CVE team has assigned CVE-2022-50706 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.212 with commit 8b68e53d56697a59b5c53893b53f508bbdf272a0 and fixed in 5.4.220 with commit 4a36de8947794fa21435d1e916e089095f3246a8 Issue introduced in 5.10.141 with commit 6204bf78b2a903b96ba43afff6abc0b04d6e0462 and fixed in 5.10.150 with commit 791489a5c56396ddfed75fc525066d4738dace46 Issue introduced in 5.15.65 with commit a75987714bd2d8e59840667a28e15c1fa5c47554 and fixed in 5.15.75 with commit 34f31a2b667914ab701ca725554a0b447809d7ef Issue introduced in 5.19.7 with commit 72f2dc8993f10262092745a88cb2dd0fef094f23 and fixed in 5.19.17 with commit df0da3fc131132b6c32a15c4da4ffa3a5aea1af2 Issue introduced in 6.0 with commit fd1894224407c484f652ad456e1ce423e89bb3eb and fixed in 6.0.3 with commit 9974d220c5073d035b5469d1d8ecd71da86c7afd Issue introduced in 6.0 with commit fd1894224407c484f652ad456e1ce423e89bb3eb and fixed in 6.1 with commit b12e924a2f5b960373459c8f8a514f887adf5cac Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50706 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/ieee802154/socket.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/4a36de8947794fa21435d1e916e089095f3246a8 https://git.kernel.org/stable/c/791489a5c56396ddfed75fc525066d4738dace46 https://git.kernel.org/stable/c/34f31a2b667914ab701ca725554a0b447809d7ef https://git.kernel.org/stable/c/df0da3fc131132b6c32a15c4da4ffa3a5aea1af2 https://git.kernel.org/stable/c/9974d220c5073d035b5469d1d8ecd71da86c7afd https://git.kernel.org/stable/c/b12e924a2f5b960373459c8f8a514f887adf5cac