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 BF65A2EC563 for ; Tue, 30 Dec 2025 12:24: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=1767097472; cv=none; b=fzWz7UBzLf0GVqZeza/stTZBjLZJudforLatYnbJeqZOjGkmZXnvcKo8Aj3t8IYUjSv3PowOxjkHmO/GwK2IOT2f8zgpw3NBcFCLK2ofKnPd38OeV/MHf/SSyENb6R/dzTkfRX9aiiB8dUA56aA2lxpJoTQKQbuoStF0cLIMbC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097472; c=relaxed/simple; bh=ySUJmi3+B7AUL1/baXEUY9C2uTmigQBorJfwyJVgESQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=toqCFXT6IUu4LKpuRTdNboYdchUVf6jPm9wnSHq0SlgKeboD3ZDsNNGTeUHPpCgXoJcupbf3FK9iUp+5i8H3ORUXjDhcfZ0vue2NtXpHjRw/VqfW+8VzdVuo51WbiQv1t+obTLUf5HswQoff1+dnzkHfAk4zvvtfSqsPGMuCOII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cmia5+3D; 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="cmia5+3D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9EFBC4CEFB; Tue, 30 Dec 2025 12:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097472; bh=ySUJmi3+B7AUL1/baXEUY9C2uTmigQBorJfwyJVgESQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=cmia5+3DRc53eRf6SKlpRllXIO3GdBDnw+j5M/RfeWqWvxoyenVV1/uH4uB7Y/vYR xj8p7eXNq0nI0voUXcAlGgSoDu53MC7/cArDQw4j891Tddh2zpafyVfh2xVl89ZEyv wJecti6nXzWW3kTu+gBFga6RhpfS3Mh8Y+y+76tw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50883: bpf: Prevent decl_tag from being referenced in func_proto arg Date: Tue, 30 Dec 2025 13:23:32 +0100 Message-ID: <2025123025-CVE-2022-50883-09fa@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=2934; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6Yatp6s2oWwo3dC0XmjuKL6WoLgFuNnPXW4AFLY9aOk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBR2y9T2SURUzydmV49E9Z9NW6SZzpu6bmBJ0wmW9ld riubfq/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIHD2G+YFT3ofoz1NRWXB1 9fFAt82bKi89yWGYH/L7wC4GowiTCZ6C+m6lC0VTVy8PAAA= 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: bpf: Prevent decl_tag from being referenced in func_proto arg Syzkaller managed to hit another decl_tag issue: btf_func_proto_check kernel/bpf/btf.c:4506 [inline] btf_check_all_types kernel/bpf/btf.c:4734 [inline] btf_parse_type_sec+0x1175/0x1980 kernel/bpf/btf.c:4763 btf_parse kernel/bpf/btf.c:5042 [inline] btf_new_fd+0x65a/0xb00 kernel/bpf/btf.c:6709 bpf_btf_load+0x6f/0x90 kernel/bpf/syscall.c:4342 __sys_bpf+0x50a/0x6c0 kernel/bpf/syscall.c:5034 __do_sys_bpf kernel/bpf/syscall.c:5093 [inline] __se_sys_bpf kernel/bpf/syscall.c:5091 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5091 do_syscall_64+0x54/0x70 arch/x86/entry/common.c:48 This seems similar to commit ea68376c8bed ("bpf: prevent decl_tag from being referenced in func_proto") but for the argument. The Linux kernel CVE team has assigned CVE-2022-50883 to this issue. Affected and fixed versions =========================== Fixed in 5.4.229 with commit 89357aa97b521fca76e39d81e2b1ac5edb3d0b96 Fixed in 5.10.163 with commit 329a76635548ee8fceb3b78c7d54d96524e80925 Fixed in 5.15.86 with commit b327c68ace71ba9cb3105ae6a5955a229e9bdca3 Fixed in 6.0.16 with commit 3f3d54962a032581996edda8e6bcbf7a30371234 Fixed in 6.1.2 with commit e6d276dcc9204f95632580c43d66c52ca502d7ec Fixed in 6.2 with commit f17472d4599697d701aa239b4c475a506bccfd19 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-50883 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: kernel/bpf/btf.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/89357aa97b521fca76e39d81e2b1ac5edb3d0b96 https://git.kernel.org/stable/c/329a76635548ee8fceb3b78c7d54d96524e80925 https://git.kernel.org/stable/c/b327c68ace71ba9cb3105ae6a5955a229e9bdca3 https://git.kernel.org/stable/c/3f3d54962a032581996edda8e6bcbf7a30371234 https://git.kernel.org/stable/c/e6d276dcc9204f95632580c43d66c52ca502d7ec https://git.kernel.org/stable/c/f17472d4599697d701aa239b4c475a506bccfd19