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 B4B7116DEA5 for ; Wed, 18 Sep 2024 07:19:05 +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=1726643945; cv=none; b=F5KF0e5FcQnt2VaZ21IqnnAt/a1CD+4bHDZfsMHK4tk2OEzkaRXBvsH4A2aF2d/WZxo8m3V/8+4QnybVHqtIw7p0zXMFsge2khSY6JHsjxV6C3ScQO3o5RlPq6JUo1cV2wBZ9spTJJEDSaAWKKECJjyDt7vdQJdZFGPMr9sJa8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643945; c=relaxed/simple; bh=PIkMQnyDgdcpnCni0O0l3vjNLHHzS9ymqZIfbvSl6co=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DBBBSrT2ZtZ1L9AAqa7fR/oQhyO0bCIE/hEQotkOwU6+8THwTgEl7cLHyjmlRhqLwBK4zcO9GlucwPgwksMD2weG9d1SdBJiLJChXC0HL1Oq9Zl9wa5IA3YpZcco7h+3qRvZ/QPjabonrj1UnxUENkbIxa3NKDlQH6sblhLtFq4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TTjhjReP; 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="TTjhjReP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB0E8C4CEC3; Wed, 18 Sep 2024 07:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643945; bh=PIkMQnyDgdcpnCni0O0l3vjNLHHzS9ymqZIfbvSl6co=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TTjhjRePb7r4LdGFpdNRxfqPk6wcBEtKQIMlGhMkoiUN/kABTxCQ6EAPVlPPgxxr4 5T3of0fG9LpqObuGXeU4AWJ0H/bMlvxAHWY2WFowAjiB5L+A5FxJwKzt7aqCwoAT4S 0ET6jQQXtj35wemP/SVBn6AUvBb5FvsUxJdCVHwA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46762: xen: privcmd: Fix possible access to a freed kirqfd instance Date: Wed, 18 Sep 2024 09:16:57 +0200 Message-ID: <2024091843-CVE-2024-46762-6512@gregkh> X-Mailer: git-send-email 2.46.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=2208; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PIkMQnyDgdcpnCni0O0l3vjNLHHzS9ymqZIfbvSl6co=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6qKrq7ayCcfMefawYH7D0e1FoXMrc43VlZbOjcl7I /XIxm1SRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE05RhftSk9AePp0pMUVCJ nnlnuuHiBwElLQzz3QQrW39tf39pQuvdp9LN/zZ4eETzAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: xen: privcmd: Fix possible access to a freed kirqfd instance Nothing prevents simultaneous ioctl calls to privcmd_irqfd_assign() and privcmd_irqfd_deassign(). If that happens, it is possible that a kirqfd created and added to the irqfds_list by privcmd_irqfd_assign() may get removed by another thread executing privcmd_irqfd_deassign(), while the former is still using it after dropping the locks. This can lead to a situation where an already freed kirqfd instance may be accessed and cause kernel oops. Use SRCU locking to prevent the same, as is done for the KVM implementation for irqfds. The Linux kernel CVE team has assigned CVE-2024-46762 to this issue. Affected and fixed versions =========================== Fixed in 6.6.51 with commit e997b357b13a Fixed in 6.10.10 with commit 112fd2f02b30 Fixed in 6.11 with commit 611ff1b1ae98 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-2024-46762 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/e997b357b13a7d95de31681fc54fcc34235fa527 https://git.kernel.org/stable/c/112fd2f02b308564724b8e81006c254d20945c4b https://git.kernel.org/stable/c/611ff1b1ae989a7bcce3e2a8e132ee30e968c557