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 5FFCA1A4F21 for ; Wed, 26 Feb 2025 01:58:46 +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=1740535126; cv=none; b=WHvsfciLkrxbH8VlgokQpa8HEdBrMA3r2fO/0dt+ZmqexstRDMrnud13BYo3TGYz+ltFI82rd7iTEMlj5c7zSnj/4daiGDUUvpZUf0Riy/iGovb+IspWRBI6BoZS/rjQFGb2zbudifnd9s0GR1KqoK0Br+bt1lA/yn0jWAuP8GQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535126; c=relaxed/simple; bh=EUq05n0vN9NENd/6qKVS3DjpPJWtTomAhAEIgcC1ZKw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PqBENBkjOYOR9cM3Nc6KnuOTPEnzDNvWi8Oh4emjnGg2ZdIr6Nn1f+3qdlEuYir/3rpMqS7lRLoKnaqGtdeeZwSg+jNLON1pjkzUPBYgBeVAw72oUXWNvnzwJ2xAPwig3n4bh4b+G0q3phlEsDhtgRoWyj1o/Qfy7mU3MuvfwRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t77Vk2NU; 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="t77Vk2NU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3756EC4CEDD; Wed, 26 Feb 2025 01:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535126; bh=EUq05n0vN9NENd/6qKVS3DjpPJWtTomAhAEIgcC1ZKw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=t77Vk2NUnOVNZotmZZfAVPzFy71kzpnsvMqgysc17XdAyU5bS0RcbacNW7+S9GKG7 QStmMCzGM/iU9GlRTUvWbooICsR1Tx/qmmO5m67aZMMXioArAa+GnigYKbg4g8bwF+ gfZxgXf5GOadZGdF0O+/IVZ5IGL9t4talKPMQUuE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49144: io_uring: fix memory leak of uid in files registration Date: Wed, 26 Feb 2025 02:55:49 +0100 Message-ID: <2025022608-CVE-2022-49144-0d56@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=2574; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EUq05n0vN9NENd/6qKVS3DjpPJWtTomAhAEIgcC1ZKw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Shze7t+QuG2JzbkALVOFNqY9C+u8z2xw0PUPdlrft il3+/YpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRDf4MCzYtko7x8jecbXfr 4cHJtskmaf9ONzAsWL/OSi6Tj6fx1vnyuCs8Bwr7wwTdAQ== 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: fix memory leak of uid in files registration When there are no files for __io_sqe_files_scm() to process in the range, it'll free everything and return. However, it forgets to put uid. The Linux kernel CVE team has assigned CVE-2022-49144 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 08a451739a9b5783f67de51e84cb6d9559bb9dc4 and fixed in 5.10.110 with commit b27de7011cb3ba14b047be2cee0ed8278368665b Issue introduced in 5.5 with commit 08a451739a9b5783f67de51e84cb6d9559bb9dc4 and fixed in 5.15.33 with commit 0853bd6885c2f293d88aaa7f7f1702c959b31680 Issue introduced in 5.5 with commit 08a451739a9b5783f67de51e84cb6d9559bb9dc4 and fixed in 5.16.19 with commit d6d7a517e81accf6ed22d55684baea763d2dbe43 Issue introduced in 5.5 with commit 08a451739a9b5783f67de51e84cb6d9559bb9dc4 and fixed in 5.17.2 with commit 7fa8b228c3f30060b9f4b24bb9aaaf41b0ae83fe Issue introduced in 5.5 with commit 08a451739a9b5783f67de51e84cb6d9559bb9dc4 and fixed in 5.18 with commit c86d18f4aa93e0e66cda0e55827cd03eea6bc5f8 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-49144 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/b27de7011cb3ba14b047be2cee0ed8278368665b https://git.kernel.org/stable/c/0853bd6885c2f293d88aaa7f7f1702c959b31680 https://git.kernel.org/stable/c/d6d7a517e81accf6ed22d55684baea763d2dbe43 https://git.kernel.org/stable/c/7fa8b228c3f30060b9f4b24bb9aaaf41b0ae83fe https://git.kernel.org/stable/c/c86d18f4aa93e0e66cda0e55827cd03eea6bc5f8