CVE-2026-74362

ext2: fix ignored return value of generic_write_sync()

Published Aug 15, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ext2: fix ignored return value of generic_write_sync()

Fix ext2_dio_write_iter() to propagate the error returned by
generic_write_sync() instead of silently discarding it, which could
cause write(2) to return success to userspace on O_SYNC/O_DSYNC files
even when the sync failed.

The correct pattern, already used in ext2_dax_write_iter() in the same
file and in ext4, xfs, f2fs among others, is:
if (ret > 0)
ret = generic_write_sync(iocb, ret);

Found by Linux Verification Center (linuxtesting.org) with SVACE.

[JK: Reflect also filemap_write_and_wait() return value]

Analysis

AI-generated

Technical impact

The vulnerability in the Linux kernel ext2 filesystem driver arises because ext2_dio_write_iter() ignores the error returned by generic_write_sync(). When write(2) is executed on files opened with O_SYNC or O_DSYNC, the system call can falsely report success even if the underlying disk operation fails. This flaw, an instance of CWE‑252 unchecked‑return‑value, undermines the reliability of data written to ext2 volumes and can lead to inadvertent data loss or corruption.

Affected Systems

Affected systems are all Linux kernel builds that contain the ext2 filesystem module on which the flaw exists. Vendors and products are listed simply as Linux and the Linux kernel. No specific version numbers are supplied; any kernel revision that includes the unpatched ext2_dio_write_iter() prior to the fix is potentially vulnerable.

Risk and Exploitability

The CVSS score is 5.5, indicating moderate severity, while the EPSS score of less than 1% and absence from the CISA KEV catalog suggest a low probability of active exploitation. The flaw does not grant privilege escalation or arbitrary code execution; it is exploitable only when a sync operation is forced to fail through workload or hardware issues, with the attacker learning that writes are acknowledged when they are not. As a result, the risk is mainly data integrity loss rather than system compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that incorporates the ext2_dio_write_iter check for generic_write_sync() errors.
  • For workloads that require absolute synchronous behavior, avoid using O_SYNC or O_DSYNC on ext2 filesystems or migrate critical data to a filesystem that guarantees synchronous writes (e.g., ext4 with proper settings).
  • Monitor kernel logs or system messages for indications of sync failures (e.g., write errors or “DiskSync failed” warnings) and validate that applications receiving write(2) return values are correctly handling potential failures.

Generated by OpenCVE AI on August 22, 2026 at 02:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-668
Type Values Removed Values Added
Weaknesses CWE-252
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-668
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ext2: fix ignored return value of generic_write_sync() Fix ext2_dio_write_iter() to propagate the error returned by generic_write_sync() instead of silently discarding it, which could cause write(2) to return success to userspace on O_SYNC/O_DSYNC files even when the sync failed. The correct pattern, already used in ext2_dax_write_iter() in the same file and in ext4, xfs, f2fs among others, is: if (ret > 0) ret = generic_write_sync(iocb, ret); Found by Linux Verification Center (linuxtesting.org) with SVACE. [JK: Reflect also filemap_write_and_wait() return value]
Title ext2: fix ignored return value of generic_write_sync()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:17 AM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Aug 17, 2026, 6:19 AM
Severity
Low
Public date
Aug 15, 2026, 12:00 AM