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 9B80A1F4704 for ; Fri, 27 Dec 2024 13:56:24 +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=1735307784; cv=none; b=lAWQV+pSw/exPjcfGuNlJtv9v8QRFqAqZsV5cxXFd3yNhVwyqBZrcESC1cL4kFXb79m39Dxx6XdfdRlYFB3xyuqUdTCHovFVLJsMATGgHbqwwNIhosHNMZUsCDmPHI4J58da8W4+59DEkSSrNXqSVQNvNjV3BgkXZDB2bPFiO5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307784; c=relaxed/simple; bh=fq2QaqJ1sEpI5+PWQNyUiyEbfLDFcF+oAIV5b3BGUDs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=liJ7ZMqP1B4Rz0tQKDL1mqdOzYUXhd4//1yb/ZUxfUeVJF6Rn9TIdSZpRhlj0269/wcgISguynidd0VmeHhD49Gn5cHrI61SykupLQMW2j50hWojqvL5fF1ZzSenwyiFnojSOLa4H3kSqYfBaThNM8NutOnKbV6Bxwf+/RAR70Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FaxTjan5; 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="FaxTjan5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08442C4CED0; Fri, 27 Dec 2024 13:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307784; bh=fq2QaqJ1sEpI5+PWQNyUiyEbfLDFcF+oAIV5b3BGUDs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FaxTjan5VfqUBCoB59Cs81xwwJ4UKZsg5zuv0I+lJuhUbXI73DEO0PHqBPx1RgiPS zA3unQdUf9f/96asLfRcZKYnVE0Xj8hRTtd7zenBnEFc2NbYIdbTPhCC7+oDqsKOe0 ELVC/2BUmR2kuf5hEyEVhzAw7OGeQvl+Y3uFyw+c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53235: erofs: fix file-backed mounts over FUSE Date: Fri, 27 Dec 2024 14:53:21 +0100 Message-ID: <2024122738-CVE-2024-53235-80a9@gregkh> X-Mailer: git-send-email 2.47.1 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=2414; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fq2QaqJ1sEpI5+PWQNyUiyEbfLDFcF+oAIV5b3BGUDs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G9Wm2t5OmrdJ8FP5L6bVQZtOrru9sPuAj2R6TaheW fiOMivXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIagGGeXqc/Jcungnbfcgt aAFj46pKJcnmToYFe++7RBsUzHrD/i3y828ZwX5Vh8+JAA== 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: erofs: fix file-backed mounts over FUSE syzbot reported a null-ptr-deref in fuse_read_args_fill: fuse_read_folio+0xb0/0x100 fs/fuse/file.c:905 filemap_read_folio+0xc6/0x2a0 mm/filemap.c:2367 do_read_cache_folio+0x263/0x5c0 mm/filemap.c:3825 read_mapping_folio include/linux/pagemap.h:1011 [inline] erofs_bread+0x34d/0x7e0 fs/erofs/data.c:41 erofs_read_superblock fs/erofs/super.c:281 [inline] erofs_fc_fill_super+0x2b9/0x2500 fs/erofs/super.c:625 Unlike most filesystems, some network filesystems and FUSE need unavoidable valid `file` pointers for their read I/Os [1]. Anyway, those use cases need to be supported too. [1] https://docs.kernel.org/filesystems/vfs.html The Linux kernel CVE team has assigned CVE-2024-53235 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit fb176750266a3d7f42ebdcf28e8ba40350b27847 and fixed in 6.12.2 with commit 5036f2f024cac40a02ea6ea70de2c3a4407d16bc Issue introduced in 6.12 with commit fb176750266a3d7f42ebdcf28e8ba40350b27847 and fixed in 6.13-rc1 with commit 3a23787ca8756920d65fda39f41353a4be1d1642 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-53235 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/erofs/data.c fs/erofs/internal.h 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/5036f2f024cac40a02ea6ea70de2c3a4407d16bc https://git.kernel.org/stable/c/3a23787ca8756920d65fda39f41353a4be1d1642