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 8A335147C71 for ; Sat, 17 Aug 2024 09:23:42 +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=1723886622; cv=none; b=BFnWGJlzWGn60m2h6F6B5Rj++Ge03t6asT4rl3Lp8t9CQcFpi5se0JU+kQc+QLFBKiluluWBX6MvRejaVUZVJMnc8GPgbBUgZcV3w6GuJosdUGstYVpLf1w5lcIuNe6d16uk1UhLxS0DD0mfJA2UOqFT4OLyTHA+GOQSBr/+SgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886622; c=relaxed/simple; bh=5TyB1ZQl0cf2wYVd0dakp79qipPoUXr3IJeejycvLZ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SDXYrasTxy3XJ06hZVSlf/sDgjTAQ1xRMjdRzrBQowlOGknc1RJ9vKKgDidWeH7HSZdLfGyiyu0Vg79cUy2my28hETCaz7/fYn/34ttbgUgRiH4M3ueF389cT54JPDlsHIpX5N5+1nBTdM34buT5kA7R8KJAHqbOgiHnLOADSmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Cz7RQw9v; 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="Cz7RQw9v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B009BC116B1; Sat, 17 Aug 2024 09:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886622; bh=5TyB1ZQl0cf2wYVd0dakp79qipPoUXr3IJeejycvLZ4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Cz7RQw9v9D1SyCPWj1Ti/nZ3F+HkuieWr1entYSmiT2ehdxggWXpP+0X3AgNNb3c1 IsJTHRL3mHaihYTkuxWB0FAoxWaAmP06RI3YIStahjQxhi77MEfPt41PT/P1qOmKT8 0WOtVFMo5+kLd9eS4SbqhF67TO+e1UbOfMn3S9ro= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43826: nfs: pass explicit offset/count to trace events Date: Sat, 17 Aug 2024 11:22:30 +0200 Message-ID: <2024081726-CVE-2024-43826-2a5f@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=2142; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5TyB1ZQl0cf2wYVd0dakp79qipPoUXr3IJeejycvLZ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsi9VX7JXNLSXsWuI7X7xMFN5dqTGzPrrz2bUNqxv6 DH/MfNXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk2luGBYfeC6eqZef++7st M+jGf8aHjncMhRjmKX18F9MVfdaoUv+aonxh6bq/06NeAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: nfs: pass explicit offset/count to trace events nfs_folio_length is unsafe to use without having the folio locked and a check for a NULL ->f_mapping that protects against truncations and can lead to kernel crashes. E.g. when running xfstests generic/065 with all nfs trace points enabled. Follow the model of the XFS trace points and pass in an explŃ–cit offset and length. This has the additional benefit that these values can be more accurate as some of the users touch partial folio ranges. The Linux kernel CVE team has assigned CVE-2024-43826 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit eb5654b3b89d and fixed in 6.10.3 with commit 387e6e9d1102 Issue introduced in 6.3 with commit eb5654b3b89d and fixed in 6.11-rc1 with commit fada32ed6dbc 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-43826 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/nfs/file.c fs/nfs/nfstrace.h fs/nfs/read.c fs/nfs/write.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/387e6e9d110250946df4d4ebef9c2def5c7a4722 https://git.kernel.org/stable/c/fada32ed6dbc748f447c8d050a961b75d946055a