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 0D0D83376A5 for ; Wed, 24 Dec 2025 13:07:49 +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=1766581669; cv=none; b=mziIDLWMFsehn/2JBB+wEALy54MFBeSBDuRO/ZNnfTmQVh3/iiWK03xQ3WxLTFI+qu7QtWSbS+MrBeUHFEP/AEAakzMoFkbT+Rh+1bbThg6ZHTmUspIDXrXr93fTO0UDak0VS1x4+BiAO2u8+1/05y1Y4KbnX1YLfFfdwDxllgA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581669; c=relaxed/simple; bh=Qn6Z2sYWJyTrPdpTafkCNzOusre4ieZ/+HvIeNCPdro=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NgnBxCXCld3KsClJCCB31eHoin1SuaxjOifFCVCh/1+0ccIc4nLjkMAPgtIC/bqTkuFE3aj0t37WpR6H7XIDIsxz/k926LT/65Bt7WvAm27GoE751dYT2JyllcANKnlzalkm+L3tAaf/QNPaptLVDpjSFo7dTtWx2QUXd+Ganho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1TGWgVmw; 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="1TGWgVmw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 886B0C4CEFB; Wed, 24 Dec 2025 13:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581668; bh=Qn6Z2sYWJyTrPdpTafkCNzOusre4ieZ/+HvIeNCPdro=; h=From:To:Cc:Subject:Date:Reply-To:From; b=1TGWgVmw+qI1ADwOmIDoYbzhlSadVQOM8vmtVTcZfU7+X8IbmUY0fIBpoebEGgih1 hIiIP9lHZfHme83HB25Czf/BdFYRNr2Uv2WldmEoPKClu1HoE1njs9zXAkql7xN1ph 4bjtRh/IVlssJKvNGdLIXPYs83P0PaosxorHUP4Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50742: misc: ocxl: fix possible refcount leak in afu_ioctl() Date: Wed, 24 Dec 2025 14:05:53 +0100 Message-ID: <2025122449-CVE-2022-50742-e130@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=2790; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QCN/+lmdr8DHCa3n+UR4vQ0FjLh2nTYPnNSf6fMOC10=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT3UDjshmM+X7ndWXCZd6oHOr7grbTlvXCftL3pevf JcUWZDXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORMmeYX80r3nP8aeyhzPNZ 3Ude3phv9kK8lWF+1gprywK5c1aGmyyjJjDwGX86mBUJAA== 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: misc: ocxl: fix possible refcount leak in afu_ioctl() eventfd_ctx_put need to be called to put the refcount that gotten by eventfd_ctx_fdget when ocxl_irq_set_handler fails. The Linux kernel CVE team has assigned CVE-2022-50742 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 060146614643ddc5978c73ffac0329762b4651c9 and fixed in 5.4.220 with commit fc797285c40a9cc441357abb3521d3e51c743f67 Issue introduced in 5.2 with commit 060146614643ddc5978c73ffac0329762b4651c9 and fixed in 5.10.150 with commit 7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1 Issue introduced in 5.2 with commit 060146614643ddc5978c73ffac0329762b4651c9 and fixed in 5.15.75 with commit 11bd8bbdf8f6f5c1145bb158793107a57e3a1f07 Issue introduced in 5.2 with commit 060146614643ddc5978c73ffac0329762b4651c9 and fixed in 5.19.17 with commit 843433a02e344d30fbb62dfd834c60631baaa527 Issue introduced in 5.2 with commit 060146614643ddc5978c73ffac0329762b4651c9 and fixed in 6.0.3 with commit 66032c43291672bae8b93184d2806f05be3e16df Issue introduced in 5.2 with commit 060146614643ddc5978c73ffac0329762b4651c9 and fixed in 6.1 with commit c3b69ba5114c860d730870c03ab4ee45276e5e35 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-50742 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/misc/ocxl/file.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/fc797285c40a9cc441357abb3521d3e51c743f67 https://git.kernel.org/stable/c/7ba19a60c74fb0057d4daef2fa2cbfc9522f3ba1 https://git.kernel.org/stable/c/11bd8bbdf8f6f5c1145bb158793107a57e3a1f07 https://git.kernel.org/stable/c/843433a02e344d30fbb62dfd834c60631baaa527 https://git.kernel.org/stable/c/66032c43291672bae8b93184d2806f05be3e16df https://git.kernel.org/stable/c/c3b69ba5114c860d730870c03ab4ee45276e5e35