CVE-2026-53165
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
25/06/2026
Last modified:
07/07/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
iomap: avoid potential null folio->mapping deref during error reporting<br />
<br />
When a buffered read fails, iomap_finish_folio_read() reports the error<br />
with fserror_report_io(folio->mapping->host, ...). This is called after<br />
ifs->read_bytes_pending has been decremented by the bytes attempted to<br />
be read.<br />
<br />
For a folio split across multiple read completions, the folio is only<br />
guaranteed to stay locked while read_bytes_pending > 0. Once<br />
iomap_finish_folio_read() decrements read_bytes_pending, another<br />
in-flight read can complete and end the read on the folio, which unlocks<br />
it. This allows truncate logic to run and detach the folio (set<br />
folio->mapping to NULL). The error reporting path then can dereference a<br />
NULL folio->mapping. As reported by Sam Sun, this is the race that can<br />
occur:<br />
<br />
CPU0: failed completion CPU1: final completion CPU2: truncate<br />
----------------------- ---------------------- --------------<br />
read_bytes_pending -= len<br />
finished = false<br />
/* preempted before<br />
fserror_report_io() */<br />
read_bytes_pending -= len<br />
finished = true<br />
folio_end_read()<br />
truncate clears<br />
folio->mapping<br />
fserror_report_io(<br />
folio->mapping->host, ...)<br />
^ NULL deref<br />
<br />
Fix this by reporting the error first before decrementing<br />
ifs->read_bytes_pending.
Impact
Base Score 3.x
7.50
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 7.0 (including) | 7.0.13 (excluding) |
| cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



