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 0E3F219DF75 for ; Wed, 26 Feb 2025 01:57:43 +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=1740535063; cv=none; b=iKsGgjlv54fR0zoTIgJpESOVP6e2g13wCN9gpn8bd386xQvDLoShA/IKgj7kSunyq6+kHWwc//KlGUKc0EW9qwc9ku0q1Ixqi7pTQgTiZ/iSUjtVtUaLUWZCHp/s3XxsR+IG2pkwgtyuuwW5xupmXtv2+QF2AsP2j0cT/kDOYhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535063; c=relaxed/simple; bh=9e3lZm5NF/vRXHM4DBrWWTsa+cJHqyEnegGDYQHzoUo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O14fminHloIpbOiURv1j8IbRUQ3bw184qdJ1T1l9nstSijDuFEQlwnQui/dluK9JlafZg85CvF1jLIQOTcSPg+6o/l01cxJyPKzKnMg9t30bMt5DuqNLsqu6g7YlWl9CUt1ykpPEwx2/R+ux23i+QpLdK+tKFitKs6CMGlDdEaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f9K/k+6j; 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="f9K/k+6j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5AE7C4CEE6; Wed, 26 Feb 2025 01:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535062; bh=9e3lZm5NF/vRXHM4DBrWWTsa+cJHqyEnegGDYQHzoUo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f9K/k+6j6+HqAiqO6++obN2GGhaZihoIa+Av0yecviD6QvEPsG9DRolovDTadiHts iCgjbaySmdzZmIVgbylGsQklgkPuxYmSXQmTn53okBOmNdG3fQ0tLY1UbEMbo0/G4g dbmhdC5sxOTdbbHh8sAIloTk5oy+aQSzy1UD83mE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49056: io_uring: abort file assignment prior to assigning creds Date: Wed, 26 Feb 2025 02:54:21 +0100 Message-ID: <2025022652-CVE-2022-49056-f882@gregkh> X-Mailer: git-send-email 2.48.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=1817; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9e3lZm5NF/vRXHM4DBrWWTsa+cJHqyEnegGDYQHzoUo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SgzaAm4vPcsxS57r+pH9bXXXNmks8mGbuddYx+dof /PmmgWiHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARt1UM83P1moQj7qSdk+2U 4sq7Hhvk/K1pO8OCiWJdXgkamZ7ddnPX+Yvc9pp+5tEdAA== 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: io_uring: abort file assignment prior to assigning creds We need to either restore creds properly if we fail on the file assignment, or just do the file assignment first instead. Let's do the latter as it's simpler, should make no difference here for file assignment. The Linux kernel CVE team has assigned CVE-2022-49056 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17.3 with commit 2c443b22756cf75dc594d4d32bf64505bf4ce84b and fixed in 5.17.4 with commit 262960775e0d2cdf97a3e33993e95e13175df4bb 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-49056 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: fs/io_uring.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/262960775e0d2cdf97a3e33993e95e13175df4bb https://git.kernel.org/stable/c/701521403cfb228536b3947035c8a6eca40d8e58