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 54CF56BFAA for ; Sun, 28 Apr 2024 13:06:45 +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=1714309605; cv=none; b=ZJqc9vRBIxKXgawS8CnORyJu4JtkQeN5PHPiQKY+K+XKvKo0wupT0yMjpo/cE5zpewBctIPwbc3zFHdenXFzDmU9k2Pvx5amwoUgQ0XWcaaxjNApJyBokOrjgmyva2+xikMpTGOj4C0ZKfRw+ZNgPAfWr7JyW9Y/z7TfFn07Cfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714309605; c=relaxed/simple; bh=8KOnVtDtbUkoKs6ms03+vZzTY6SAbH4MI4VjHnue3+Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NlAQaXZ43dJQ9Ty7dHCGHmWVKO2s+2H76wyQ9+SsNfzRgxepQl3uPIzPv3LGNOw7wA6UFI4sXuKckLeUQtte8GGka3jpU0uZQfhD+O6QTlbtaJeXf2GsPKuIvIcxRHzG812DjGB4oPrPGRqpDNcsS/OrCDgaS3pNW0QbLfA0Dos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pc/TgWhR; 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="pc/TgWhR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B5F0C113CC; Sun, 28 Apr 2024 13:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714309605; bh=8KOnVtDtbUkoKs6ms03+vZzTY6SAbH4MI4VjHnue3+Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pc/TgWhRcWNcgVj/kx3Zaf0XLZgVGPwpNeSm3xx6k+MFTkz9kLTc8JgD4EQqr06Gh l41FJuJMwlcG90X1oQ8wePhZPv75p5GOeLwiLmPrSbDueY32zy0ytYgw1PvhriLb3U HteWl8BRVvKOcXA/tWzCeimnJeK1RaDyFsVYWN8c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48668: smb3: fix temporary data corruption in collapse range Date: Sun, 28 Apr 2024 15:05:29 +0200 Message-ID: <2024042802-CVE-2022-48668-3790@gregkh> X-Mailer: git-send-email 2.44.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=1932; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8KOnVtDtbUkoKs6ms03+vZzTY6SAbH4MI4VjHnue3+Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6nnXHn2860bli68ZnwpxBNVdedcWdvtcfvvf/ykrJ7 0/bIpfGdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXFwY5ldGxDObbVEwnPc7 6kdqmu8egy72fQxzBZQ71/Me2xFUo/wg9TfX/GMbj7yfCQA= 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: smb3: fix temporary data corruption in collapse range collapse range doesn't discard the affected cached region so can risk temporarily corrupting the file data. This fixes xfstest generic/031 I also decided to merge a minor cleanup to this into the same patch (avoiding rereading inode size repeatedly unnecessarily) to make it clearer. The Linux kernel CVE team has assigned CVE-2022-48668 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 5476b5dd82c8 and fixed in 5.19.12 with commit 49523a473220 Issue introduced in 5.13 with commit 5476b5dd82c8 and fixed in 6.0 with commit fa30a81f255a 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-48668 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/cifs/smb2ops.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/49523a4732204bdacbf3941a016503ddb4ddb3b9 https://git.kernel.org/stable/c/fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4