# CVE-2026-31514: erofs: set fileio bio failed in short read case

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-04-22T13:54:31.531Z
- Modified: 2026-11-11T23:10:00.263Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ce63cb62d794c98c7631c2296fa845f2a8d0a4a1 before d1ba7d6b3cd1757b108d7b6856c92ae661d6c323; from ce63cb62d794c98c7631c2296fa845f2a8d0a4a1 before 5cf3972c8221abdb1b464a14ccf8103d840b9085; from ce63cb62d794c98c7631c2296fa845f2a8d0a4a1 before 5a5f23ef5431639db1ac3a0b274aef3a84cc413c; from ce63cb62d794c98c7631c2296fa845f2a8d0a4a1 before eade54040384f54b7fb330e4b0975c5734850b3c; 6.12 (not affected: before 6.12; from 6.12.80 up to 6.12.*; from 6.18.21 up to 6.18.*; from 6.19.11 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.12.75 before 6.12.80; from 6.18.14 before 6.18.21; from 6.19.4 before 6.19.11

## References

- <https://git.kernel.org/stable/c/d1ba7d6b3cd1757b108d7b6856c92ae661d6c323> (patch)
- <https://git.kernel.org/stable/c/5cf3972c8221abdb1b464a14ccf8103d840b9085> (patch)
- <https://git.kernel.org/stable/c/5a5f23ef5431639db1ac3a0b274aef3a84cc413c> (patch)
- <https://git.kernel.org/stable/c/eade54040384f54b7fb330e4b0975c5734850b3c> (patch)

## Sources

- CVE List: [CVE-2026-31514](https://www.cve.org/CVERecord?id=CVE-2026-31514), CVE Terms of Use, modified 2026-10-23
- NVD: [CVE-2026-31514](https://nvd.nist.gov/vuln/detail/CVE-2026-31514), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31514 · Whole record: https://cve.day/CVE-2026-31514.json · Rebuilt by cve.day 2026-11-25T22:59:19.305Z
