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 578091C8FBA for ; Wed, 18 Jun 2025 11:15:38 +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=1750245338; cv=none; b=XOG00o2+VHAHmnZM1heTBPnpStVnEHdjDU7NqXkqPJTn0zokNI57yoYtpirhCPo90tQ0rmub0bpLD1Yxcl+Z8Md4ZcfPBb2Q4iVWqp20HQ8IgsfNtLarXCLILKAAfo9BNMST/zCIC/kBD8BYWNZvGRM35VWC8r9c11JruB+0SZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245338; c=relaxed/simple; bh=mjviBxqdbr0pB3iKQpMpWjQjaSLAne8IxyrzHbKhznA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CpRkXJJmnys5txV0GrMAeMBxFjokkfVWZJgHKbWaLJcJmQ+ZW89eYXC2WiUKZ9ZPyc8JAdl0XpY5iJ7ixhLc/BSGF0MAQPrBSmdkvAqYAbKXBM9+u3Qvbr1NVFgGjgDb3E03KnZBPxTrzKxwE5AHH9+0KNp+31giFctCRmJ9cjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TDg4A64w; 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="TDg4A64w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B09DFC4CEE7; Wed, 18 Jun 2025 11:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245338; bh=mjviBxqdbr0pB3iKQpMpWjQjaSLAne8IxyrzHbKhznA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TDg4A64woDEpVDfoEocgoRNehw3GyoP7iMorJv0yY8MSqxO9BuK2K3iplUeSKmvEZ KwNAUbWAswOBtiO4ZSazqC5ByfsFfyyHvta+GzE+ggdHu8Ik16UJmZrgJY3cH0Ac+v RixMXfEH6jEEv8BxcB5bsY2knBhIHbMz6CWhhSIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50200: selinux: Add boundary check in put_entry() Date: Wed, 18 Jun 2025 13:04:25 +0200 Message-ID: <2025061839-CVE-2022-50200-51f0@gregkh> X-Mailer: git-send-email 2.49.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=2567; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YtLwE8RVEpkUIwXwtOzOFQhK6/dxPILdhaqNj4rFj64=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6Z84lW4tsWGd1nx98cBsW4Fu5fKaUxyUXy7dOpnZ fuaGWyeHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRWl+GBdtV96+50ZVtafLA 3s459KdR3RymAwzzHeeGrra2N/mSe20Dyw0WxZaEWwxtAA== 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: selinux: Add boundary check in put_entry() Just like next_entry(), boundary check is necessary to prevent memory out-of-bound access. The Linux kernel CVE team has assigned CVE-2022-50200 to this issue. Affected and fixed versions =========================== Fixed in 4.14.291 with commit 2dabe6a872a5744865372eb30ea51e8ccd21305a Fixed in 4.19.256 with commit 477722f31ad73aa779154d1d7e00825538389f76 Fixed in 5.4.211 with commit 90bdf50ae70c5571a277b5601e4f5df210831e0a Fixed in 5.10.137 with commit adbfdaacde18faf6cd4e490764045375266b3fbd Fixed in 5.15.61 with commit 7363a69d8ca8f0086f8e1196c8ddaf0e168614b1 Fixed in 5.18.18 with commit 9605f50157cae00eb299e1189a6d708c84935ad8 Fixed in 5.19.2 with commit dedd558d9765b72c66e5a53948e9f5abc3ece1f6 Fixed in 6.0 with commit 15ec76fb29be31df2bccb30fc09875274cba2776 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-50200 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: security/selinux/ss/policydb.h 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/2dabe6a872a5744865372eb30ea51e8ccd21305a https://git.kernel.org/stable/c/477722f31ad73aa779154d1d7e00825538389f76 https://git.kernel.org/stable/c/90bdf50ae70c5571a277b5601e4f5df210831e0a https://git.kernel.org/stable/c/adbfdaacde18faf6cd4e490764045375266b3fbd https://git.kernel.org/stable/c/7363a69d8ca8f0086f8e1196c8ddaf0e168614b1 https://git.kernel.org/stable/c/9605f50157cae00eb299e1189a6d708c84935ad8 https://git.kernel.org/stable/c/dedd558d9765b72c66e5a53948e9f5abc3ece1f6 https://git.kernel.org/stable/c/15ec76fb29be31df2bccb30fc09875274cba2776