CVE-2026-53165: iomap: avoid potential null folio->mapping deref during error reporting

Published Jun 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

iomap: avoid potential null folio->mapping deref during error reporting

When a buffered read fails, iomapfinishfolioread() reports the error with fserrorreportio(folio->mapping->host, ...). This is called after ifs->readbytespending has been decremented by the bytes attempted to be read.

For a folio split across multiple read completions, the folio is only guaranteed to stay locked while readbytespending > 0. Once iomapfinishfolioread() decrements readbytespending, another in-flight read can complete and end the read on the folio, which unlocks it. This allows truncate logic to run and detach the folio (set folio->mapping to NULL). The error reporting path then can dereference a NULL folio->mapping. As reported by Sam Sun, this is the race that can occur:

CPU0: failed completion CPU1: final completion CPU2: truncate ----------------------- ---------------------- -------------- readbytespending -= len finished = false / preempted before fserrorreportio() / readbytespending -= len finished = true folioendread() truncate clears folio->mapping fserrorreportio( folio->mapping->host, ...) ^ NULL deref

Fix this by reporting the error first before decrementing ifs->readbytespending.

Affected Software

8 affected components
Linux Linux kernel
Linux Linux kernel>=7.0<7.0.13
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5
Linux Linux kernel=7.1-rc6

Event History

Jun 25, 2026
CVE Published
via MITRE·08:38 AM
Data Sourced
via MITRE·08:38 AM
DescriptionSeverity
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-53165?

CVE-2026-53165 has a risk rating of 34.

2

How do I fix CVE-2026-53165?

To fix CVE-2026-53165, update your Linux kernel to the patched version released on or after June 25, 2026.

3

What component of the Linux kernel is affected by CVE-2026-53165?

CVE-2026-53165 affects the iomap functionality within the Linux kernel.

4

What type of vulnerability is CVE-2026-53165?

CVE-2026-53165 is a type of null pointer dereference vulnerability that occurs during error reporting.

5

When was CVE-2026-53165 published?

CVE-2026-53165 was published on June 25, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203