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 2C8EC15A4B3 for ; Fri, 12 Jul 2024 12:21:55 +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=1720786916; cv=none; b=ZJAYf6oqVKNnNBNBHRNhFSWh31oOEJQtwEkfOXNqRfnhMvh7ZerqNcBl658+Zi9E7qj96NTOU/SOivZlV7lfrqbn1WVpUZfOEW0O2eJyd1Xvs8kyRwPDPmfDEyrLCJNp1ZSdSqGwo1WUH1pUJGPRo0sTLvLGbkKFAIYzfqAw34k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720786916; c=relaxed/simple; bh=gOiWsQGacs6VG0pstkiFZ/8sYWu/exoieD8HLbMAqVw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OABA4y5ny+b7zh53K6+OYJBzJ5rInzUrpEfddsO8/xbCeNdnlho9K1495fHA6yTFAk4ZB8uPJQuQOSRjah64OQczrWJjIsp/0M/jiCFfxN0w9xU15HAXkP9BxuumiqupnF19lkbaRTZd8hmsKHKtmyLzqmiqK8aA/CxfwkVYvMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F/1SDuxn; 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="F/1SDuxn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63923C32782; Fri, 12 Jul 2024 12:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720786915; bh=gOiWsQGacs6VG0pstkiFZ/8sYWu/exoieD8HLbMAqVw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=F/1SDuxnzbEHR7113Hyn7cGITL8mpg97oKodr3C8YgOmPYzXyYEbcgH7sa9uWDvbh P7KyKvoe2V77v17vZC9rdT6HC9EyXsfM3ZxDVAgULeuxzw77vCQ1ZchKp9yZGRL6tI zg8322lQ1A6oU96YmFARl7GCvzE/8MSer2hPLVMY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40902: jfs: xattr: fix buffer overflow for invalid xattr Date: Fri, 12 Jul 2024 14:21:20 +0200 Message-ID: <2024071207-CVE-2024-40902-122a@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=2582; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gOiWsQGacs6VG0pstkiFZ/8sYWu/exoieD8HLbMAqVw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkT5bdwbPuf68/5f4fv0/BFamYloWui3HNNgww+H5i5n OlfDHtQRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEW5dhfqz7yr9/F71zbK74 yL6P3TgsY4poIMP8Ikuhn5+VNRT/LX+e4NK62chqb+tqAA== 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: jfs: xattr: fix buffer overflow for invalid xattr When an xattr size is not what is expected, it is printed out to the kernel log in hex format as a form of debugging. But when that xattr size is bigger than the expected size, printing it out can cause an access off the end of the buffer. Fix this all up by properly restricting the size of the debug hex dump in the kernel log. The Linux kernel CVE team has assigned CVE-2024-40902 to this issue. Affected and fixed versions =========================== Fixed in 4.19.317 with commit f0dedb5c511e Fixed in 5.4.279 with commit 1e84c9b18381 Fixed in 5.10.221 with commit fc745f6e83cb Fixed in 5.15.162 with commit 480e5bc21f2c Fixed in 6.1.95 with commit 33aecc5799c9 Fixed in 6.6.35 with commit 4598233d9748 Fixed in 6.9.6 with commit b537cb2f4c4a Fixed in 6.10-rc4 with commit 7c55b78818cf 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-40902 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/jfs/xattr.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/f0dedb5c511ed82cbaff4997a8decf2351ba549f https://git.kernel.org/stable/c/1e84c9b1838152a87cf453270a5fa75c5037e83a https://git.kernel.org/stable/c/fc745f6e83cb650f9a5f2c864158e3a5ea76dad0 https://git.kernel.org/stable/c/480e5bc21f2c42d90c2c16045d64d824dcdd5ec7 https://git.kernel.org/stable/c/33aecc5799c93d3ee02f853cb94e201f9731f123 https://git.kernel.org/stable/c/4598233d9748fe4db4e13b9f473588aa25e87d69 https://git.kernel.org/stable/c/b537cb2f4c4a1357479716a9c339c0bda03d873f https://git.kernel.org/stable/c/7c55b78818cfb732680c4a72ab270cc2d2ee3d0f