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 94456305946 for ; Thu, 18 Sep 2025 13:34:59 +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=1758202499; cv=none; b=NAnb6SzbayuMGdydK97XL+JVhkP5ex5dkRyOUMFzQ6Ilime4ikzbXg6h1CD/ix86hWungngFGegEqwvojw4gTC3iY9QETOsId6knqI/pNAO+5BYUjvvETgi88xzspS3CbOKyJezaceDImx3a+muOZdlGTtU2AlU2iX8Jx5Fa/Ds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202499; c=relaxed/simple; bh=i5O3r9ELK8S6aaD5Dx3c90wDW98jUwH6XDW4kQamtN8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dKC7/8dfajX1aURTKd/6bgqrVu1Ar8F5rlt7p0PMeMkp/kBdyL9wr0DDDisn0BWWGgfnssoWnI8ZuBeLTBUxpNtQ0beMdNNDlm7SAVZ8iN6Kuq8mmcWSH7NVELYQqNRj/7v3QjVVQv/XEjjNN5xPlpZJfUF7HNnsMM7HJQMrIds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nh1mNMGi; 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="nh1mNMGi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13B71C4CEE7; Thu, 18 Sep 2025 13:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202499; bh=i5O3r9ELK8S6aaD5Dx3c90wDW98jUwH6XDW4kQamtN8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nh1mNMGiklr1yLjPB+4xS5s20I5We1FrHp7R17w/RbiyvMuLVfzlNS1+kgNXxtnSD sZA/NEkrlHbPHO4z3x5oamCmx7UYgk9V4E+wyaaPQy18Nvrh7nohFUS1DMBHiC4am+ Oqk6XcsUGHz9wvjW+d3NAI/O4SjTQFX66Gk3VXJc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50397: net/ieee802154: reject zero-sized raw_sendmsg() Date: Thu, 18 Sep 2025 15:34:11 +0200 Message-ID: <2025091854-CVE-2022-50397-44b6@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2893; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5gQjJoaJhNE6tU+y1tdec8PE6VrPpgft1fAIwKa2tSU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuJwi93ssCX7VpPRy8U+XLcteZDHfld9of9d6b3x5f uBUe6F9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRTewM8xRK3p3enHtrY/rZ F11pD2adXtXZMJNhwcToB15LKwTyth1zXFz04XDiV98VvgA= 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: reject zero-sized raw_sendmsg() syzbot is hitting skb_assert_len() warning at raw_sendmsg() for ieee802154 socket. What commit dc633700f00f726e ("net/af_packet: check len when min_header_len equals to 0") does also applies to ieee802154 socket. The Linux kernel CVE team has assigned CVE-2022-50397 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.212 with commit 8b68e53d56697a59b5c53893b53f508bbdf272a0 and fixed in 5.4.220 with commit 03ac583eefc9bc980213c53a79abc32a5539756e Issue introduced in 5.10.141 with commit 6204bf78b2a903b96ba43afff6abc0b04d6e0462 and fixed in 5.10.150 with commit 67cb80a9d2c83edac0e42aaa91ed4dd527cec284 Issue introduced in 5.15.65 with commit a75987714bd2d8e59840667a28e15c1fa5c47554 and fixed in 5.15.75 with commit 77bfd26cbb61a9f49ecb83729f0fd1352c17ddd8 Issue introduced in 5.19.7 with commit 72f2dc8993f10262092745a88cb2dd0fef094f23 and fixed in 5.19.17 with commit 51d4260585cf36106d29dcefeafa09d9cd5972cf Issue introduced in 6.0 with commit fd1894224407c484f652ad456e1ce423e89bb3eb and fixed in 6.0.3 with commit 55043e109f435472b0663fa2a4df1cc308a978ad Issue introduced in 6.0 with commit fd1894224407c484f652ad456e1ce423e89bb3eb and fixed in 6.1 with commit 3a4d061c699bd3eedc80dc97a4b2a2e1af83c6f5 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-50397 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/03ac583eefc9bc980213c53a79abc32a5539756e https://git.kernel.org/stable/c/67cb80a9d2c83edac0e42aaa91ed4dd527cec284 https://git.kernel.org/stable/c/77bfd26cbb61a9f49ecb83729f0fd1352c17ddd8 https://git.kernel.org/stable/c/51d4260585cf36106d29dcefeafa09d9cd5972cf https://git.kernel.org/stable/c/55043e109f435472b0663fa2a4df1cc308a978ad https://git.kernel.org/stable/c/3a4d061c699bd3eedc80dc97a4b2a2e1af83c6f5