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 7DD7B145FE4 for ; Sat, 17 Aug 2024 09:23:48 +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=1723886628; cv=none; b=iV/5Ws6rSjkJVHa1FZ7BuGPExJ3QnqVyst0coCQzhDrlLDZbOYQHOL4usPgwa/kXwjlpYkfaoXZ32fJvWxzZRxZmdfZGK3C1hlfOfz6s515Grm7b/+ihLNMKFmzOPvCXvIM48FM0jIR5j0TO8Ro0wMu1cGSHSpSjkYIT4SqhTsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886628; c=relaxed/simple; bh=T3u0ag3c7PaTs5QotrNb3NdTS+ZTZu+kYB/QlL3IiYs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P9SgPeDXFdEatgO4TJFV8vQl6mBglDbMIjneW1J7W4Ymy/iXFg9PDEOmsv/neL42w43y22q+hKGENTzCFnFFiuxqjx+pY/+Y7pTWduKeMTFcysir2mKsqd72CrS6acFBL+/JxJQyQAlCnLyfAG8+JIFBIVG20EtIYfUSfd2JNGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FFcilch7; 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="FFcilch7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01211C116B1; Sat, 17 Aug 2024 09:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886628; bh=T3u0ag3c7PaTs5QotrNb3NdTS+ZTZu+kYB/QlL3IiYs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FFcilch76xM5aFgotprqfGnHJ57C7v4iFRBivAQy6tJwBu9D4vsTAHepMSwS0XulA zf/ejetxfeBYwAewM1zUzrEed6VB9saehUns8PDkvx/4Sh6ZbxtmzRkx+XPdDuRQSP urIXF4uFAsxkxkj9ArLUhqZfjyo8YpgRVoash3aY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43845: udf: Fix bogus checksum computation in udf_rename() Date: Sat, 17 Aug 2024 11:22:49 +0200 Message-ID: <2024081731-CVE-2024-43845-a85d@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=2439; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T3u0ag3c7PaTs5QotrNb3NdTS+ZTZu+kYB/QlL3IiYs=; b=kA0DAAIRMUfUDdst+ykByyZiAGbAa9eg5eYq0jBbCFplPoGx6/OVoKSV1T7KHg1WFG7CamSlo 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmbAa9cACgkQMUfUDdst+ymO8QCgvfHb 3s0Faw1pLvXLw2cAjQMlljwAnjuGHTc5FphWlf8IhZGOrbU47nAY 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: udf: Fix bogus checksum computation in udf_rename() Syzbot reports uninitialized memory access in udf_rename() when updating checksum of '..' directory entry of a moved directory. This is indeed true as we pass on-stack diriter.fi to the udf_update_tag() and because that has only struct fileIdentDesc included in it and not the impUse or name fields, the checksumming function is going to checksum random stack contents beyond the end of the structure. This is actually harmless because the following udf_fiiter_write_fi() will recompute the checksum from on-disk buffers where everything is properly included. So all that is needed is just removing the bogus calculation. The Linux kernel CVE team has assigned CVE-2024-43845 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit e9109a92d2a9 and fixed in 6.6.44 with commit fe2ead240c31 Issue introduced in 6.3 with commit e9109a92d2a9 and fixed in 6.10.3 with commit 40d7b3ed5244 Issue introduced in 6.3 with commit e9109a92d2a9 and fixed in 6.11-rc1 with commit 27ab33854873 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-43845 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/udf/namei.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/fe2ead240c31e8d158713beca9d0681a6e6a53ab https://git.kernel.org/stable/c/40d7b3ed52449d36143bab8d3e70926aa61a60f4 https://git.kernel.org/stable/c/27ab33854873e6fb958cb074681a0107cc2ecc4c