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 2470D3E0C46 for ; Wed, 22 Apr 2026 13:57:30 +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=1776866250; cv=none; b=CfadiU15z1n+bQ9gwLqZ1GVYvfcbff+5M41ICnXu4OaLwrj9qSodQgBsgtlguzJ5uR4bX2EDdKN/COo7NDVQ3rQY4+CiZtVZXLA8lDxcMm/+x4qBTek5/Lyh7Y4EsXmgM/3b3Ck6HPTYyn4leV2nM56u84zNsHl5VJzWuxEPsQU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866250; c=relaxed/simple; bh=EUf6LcrSWP1co5mEPqv5g98XyGqbxfeTUzmjYGTAXJ0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QmidkoUW3zMjZ+TzkhkW7K30DH+kGTEBd4fW3nZYRiDZ2RW0xa4NecUK+hC6tsu2nvBCT9S4FYlb7Eca1uE7vWvE3OaKWG31x7+luAacJ5rll4Xe100yWqXCwPBtv0qxaLQGDu1EfyYIYUEJ+FvLTSvNoOhY6ntHHLtswsvlpEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cxxFLG+j; 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="cxxFLG+j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5588C19425; Wed, 22 Apr 2026 13:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866250; bh=EUf6LcrSWP1co5mEPqv5g98XyGqbxfeTUzmjYGTAXJ0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=cxxFLG+jITiqXtK8t0ijUqdG/vBKyuO58kL1D+aUFGeRs+Wc42fVEJ1ntGDy4F/Bs EOShHvk+DwcF1y0EcFT/Gjfgt+p1U/2Bb+M/wUkLMD/KPctQZVRRDzPHDmPwnR/rEJ RK5OfOSy2976Q72PE3oNcHzwnE2iPjBcZWXcJKYk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31514: erofs: set fileio bio failed in short read case Date: Wed, 22 Apr 2026 15:55:00 +0200 Message-ID: <2026042209-CVE-2026-31514-510b@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2707; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OIlsy16RKHXgMscLNjLhw6scp8ySFpCWvRRPsdkzOxo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLjMuUzdoMj/fvULfydpcSmm6UP5P7geTsxoiDty/y rtSRXtVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk9x+G+eVH4qr013ROnMzP sefpfG4JYXW/GQzzVDgvX1mrnv7o3LrfG+Y8jLRNKXiQCQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: erofs: set fileio bio failed in short read case For file-backed mount, IO requests are handled by vfs_iocb_iter_read(). However, it can be interrupted by SIGKILL, returning the number of bytes actually copied. Unused folios in bio are unexpectedly marked as uptodate. vfs_read filemap_read filemap_get_pages filemap_readahead erofs_fileio_readahead erofs_fileio_rq_submit vfs_iocb_iter_read filemap_read filemap_get_pages <= detect signal erofs_fileio_ki_complete <= set all folios uptodate This patch addresses this by setting short read bio with an error directly. The Linux kernel CVE team has assigned CVE-2026-31514 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.75 with commit 8d582d65d20bb4796db01b19e86909ad68cb337b and fixed in 6.12.80 with commit d1ba7d6b3cd1757b108d7b6856c92ae661d6c323 Issue introduced in 6.18.14 with commit e49abde0ffc382a967b24f326d1614ac3bb06a94 and fixed in 6.18.21 with commit 5cf3972c8221abdb1b464a14ccf8103d840b9085 Issue introduced in 6.19.4 with commit fe4039034dcdf584afbf763787909e28e92a4927 and fixed in 6.19.11 with commit 5a5f23ef5431639db1ac3a0b274aef3a84cc413c 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-2026-31514 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/fileio.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/d1ba7d6b3cd1757b108d7b6856c92ae661d6c323 https://git.kernel.org/stable/c/5cf3972c8221abdb1b464a14ccf8103d840b9085 https://git.kernel.org/stable/c/5a5f23ef5431639db1ac3a0b274aef3a84cc413c https://git.kernel.org/stable/c/eade54040384f54b7fb330e4b0975c5734850b3c