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 3728B199242 for ; Tue, 16 Jul 2024 11:48:12 +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=1721130492; cv=none; b=NR6JmiDURfGPGTyS6n7bqqSgoINACQJuRYlXb7X8/g1syjE6ioaaE4lF+mLH+0LhZXuD8j4N5YTY3Uuj4wDvDS7J8D07lmyum3YM1VkkpDkd8sHkw5vbSJRZjWSb50HJHzDET5nd8VH08EW/qmBPR/qKht9k0EJrBLixGVCGKAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130492; c=relaxed/simple; bh=HGttO1lrtSDgtcO3dU1NebwCIL9Con/QAfZI8F3MPlY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=itUdkOZPsClDMquwfbkgDgjztyVGUuc7MxX+BCK7oClK5B00YsiQX7rftieAjAV9JBe220xV44Zb3JCdYXXsOhneeZwR/K6C7ewePYYhrAEX1WZstxfFa7Y8S/JhAlFhKZUZcJGy7NbGqHZQ4OAPh26ZHvhLwwSX8TEz2YZ/Uf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0gFszYl4; 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="0gFszYl4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1D68C116B1; Tue, 16 Jul 2024 11:48:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130492; bh=HGttO1lrtSDgtcO3dU1NebwCIL9Con/QAfZI8F3MPlY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0gFszYl4sTEr/XG3p9Ogs2zZ7LmUwFaEzuPhKXuy3MLbC35hODNHioX4hVDGsISqa ZZSkA2xb8hC6gr67+gVcV+q3Ykibb8JojaEykcyAfZziBWvrhEygtdxQb6FMc6ZZ+r ief5kdhN5zMU5eKXYkKWbIGlPv3mJR88AoJ3v2Js= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48832: audit: don't deref the syscall args when checking the openat2 open_how::flags Date: Tue, 16 Jul 2024 13:46:24 +0200 Message-ID: <2024071653-CVE-2022-48832-1322@gregkh> X-Mailer: git-send-email 2.45.2 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=2079; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HGttO1lrtSDgtcO3dU1NebwCIL9Con/QAfZI8F3MPlY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYguvb0+4c5Hn0iPvwzcOLp7i/V22NFzxplTvm+ZX4 qcTzy/s74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJlOxmmB/y/o/kV77bNRoa p0vWynZ/8Np/UodhvpdE1AUX5nXm27Z/mWRpF7HOzKt8LgA= 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: audit: don't deref the syscall args when checking the openat2 open_how::flags As reported by Jeff, dereferencing the openat2 syscall argument in audit_match_perm() to obtain the open_how::flags can result in an oops/page-fault. This patch fixes this by using the open_how struct that we store in the audit_context with audit_openat2_how(). Independent of this patch, Richard Guy Briggs posted a similar patch to the audit mailing list roughly 40 minutes after this patch was posted. The Linux kernel CVE team has assigned CVE-2022-48832 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 1c30e3af8a79 and fixed in 5.16.10 with commit 310c9ddfdf1f Issue introduced in 5.16 with commit 1c30e3af8a79 and fixed in 5.17 with commit 7a82f89de92a 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-48832 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: kernel/auditsc.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/310c9ddfdf1f8d3c9834f02175eae79c8b254b6c https://git.kernel.org/stable/c/7a82f89de92aac5a244d3735b2bd162c1147620c