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 785902F656C for ; Wed, 22 Oct 2025 13:24:54 +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=1761139494; cv=none; b=kE1skeDGEUhoCgcqkUYvT2fSbphwAR7aqRr/MYQVPILNGUpqhMXvbXQ8LTA3MzXZBf0FXCpA3WbPja+tHUGvsC6ieOWWJVnGntVSQwiB3V1UZ7BYknqoe7WQeSGm8BjUux4HwNmR7QqVmCdN+wNSRbYpYSs9CR8Un27s9XucUEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139494; c=relaxed/simple; bh=4Ht8V3ERWI+DJ6gBFM1GWtj+7x2DcS5pLPiIFi4DFIM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DzzrbKAMfQgRS4HouRHQgFRPWKWEJPgrjBBmLlTuSD3Y4PnOUcFTDGZSAt5qMC6NUECxTQ5Xb8gbvrGn485Bs1z7fLSSQLtTgYwPODNwPoVOErYXTGuq797TLTZpZDteJ4THCCoKLBuwJYFRa2n0/W4C51RdarHZuAe4AJ2rMX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JKx9NQTD; 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="JKx9NQTD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A159AC4CEE7; Wed, 22 Oct 2025 13:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139494; bh=4Ht8V3ERWI+DJ6gBFM1GWtj+7x2DcS5pLPiIFi4DFIM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JKx9NQTDbK7gQj88ZivOyhYCdDUDv5JtADzcPZvi57HrtP2RArg05L5+znyEqXHP4 5FlkLg8zGLFbmkwnqYE+pArBzCT0MNSN5ebLigVYiWX1XxjkJoOMIyDrnunUFSnEpS jwOWXFdrRFHUSmWprd96YthToBwmcRXSp+hsP+fk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50575: xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource() Date: Wed, 22 Oct 2025 15:24:23 +0200 Message-ID: <2025102208-CVE-2022-50575-1768@gregkh> X-Mailer: git-send-email 2.51.1 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=3290; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=agaGzTdlQwWH7BHKnRLuwyUZmDLo0OpwyMqfJss/HUw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv1gvn+3+5NmgaSP1/qdAtLR1078sH8o2JdvfidHS C/AaEpaRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk+CLDgvm113dpN4ddti6r fyN06KtikGNSJMOCKRvrd4ct7U76fyt9gn1QMLNy2PMjAA== 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: xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource() As 'kdata.num' is user-controlled data, if user tries to allocate memory larger than(>=) MAX_ORDER, then kcalloc() will fail, it creates a stack trace and messes up dmesg with a warning. Call trace: -> privcmd_ioctl --> privcmd_ioctl_mmap_resource Add __GFP_NOWARN in order to avoid too large allocation warning. This is detected by static analysis using smatch. The Linux kernel CVE team has assigned CVE-2022-50575 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 3ad0876554cafa368f574d4d408468510543e9ff and fixed in 4.19.270 with commit 5d68ae32d132ea2af73bc223fd64c46f85302a8b Issue introduced in 4.18 with commit 3ad0876554cafa368f574d4d408468510543e9ff and fixed in 5.4.229 with commit 4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5 Issue introduced in 4.18 with commit 3ad0876554cafa368f574d4d408468510543e9ff and fixed in 5.10.163 with commit 46026bb057c35f5bb111bf95e00cd8366d2e34d4 Issue introduced in 4.18 with commit 3ad0876554cafa368f574d4d408468510543e9ff and fixed in 5.15.86 with commit 0bf874183b32eae2cc20e3c5be38ec3d33e7e564 Issue introduced in 4.18 with commit 3ad0876554cafa368f574d4d408468510543e9ff and fixed in 6.0.16 with commit e0c5f1058ed96f2b7487560c4c4cbd768d13d065 Issue introduced in 4.18 with commit 3ad0876554cafa368f574d4d408468510543e9ff and fixed in 6.1.2 with commit 4da411086f5ab32f811a89ef804980ec106ebb65 Issue introduced in 4.18 with commit 3ad0876554cafa368f574d4d408468510543e9ff and fixed in 6.2 with commit 8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79 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-50575 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: drivers/xen/privcmd.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/5d68ae32d132ea2af73bc223fd64c46f85302a8b https://git.kernel.org/stable/c/4f983ee5e5de924d93a7bbb4e6f68f38c6256cd5 https://git.kernel.org/stable/c/46026bb057c35f5bb111bf95e00cd8366d2e34d4 https://git.kernel.org/stable/c/0bf874183b32eae2cc20e3c5be38ec3d33e7e564 https://git.kernel.org/stable/c/e0c5f1058ed96f2b7487560c4c4cbd768d13d065 https://git.kernel.org/stable/c/4da411086f5ab32f811a89ef804980ec106ebb65 https://git.kernel.org/stable/c/8b997b2bb2c53b76a6db6c195930e9ab8e4b0c79