CVE-2023-54285: iomap: Fix possible overflow condition in iomap_write_delalloc_scan
In the Linux kernel, the following vulnerability has been resolved:
iomap: Fix possible overflow condition in iomapwritedelallocscan
folionextindex() returns an unsigned long value which left shifted by PAGESHIFT could possibly cause an overflow on 32-bit system. Instead use foliopos(folio) + foliosize(folio), which does this correctly.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.162 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.5.5 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
In iomap_write_delalloc_scan, replace the folio_next_index() value shifted by PAGE_SHIFT with folio_pos(folio) + folio_size(folio).
Event History
Frequently Asked Questions
What is the severity of CVE-2023-54285?
CVE-2023-54285 is classified as a medium-severity vulnerability affecting the Linux kernel.
How do I fix CVE-2023-54285?
To fix CVE-2023-54285, update your Linux kernel to the latest version that includes the patch for this vulnerability.
What systems are affected by CVE-2023-54285?
CVE-2023-54285 affects 32-bit systems running certain versions of the Linux kernel.
What type of vulnerability is CVE-2023-54285?
CVE-2023-54285 is a potential overflow condition vulnerability related to iomap functionality in the Linux kernel.
Is CVE-2023-54285 actively exploited?
As of now, there are no known exploits in the wild for CVE-2023-54285, but it is recommended to mitigate the risk by applying the fix.