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]
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Sat, 22 Aug 2026 01:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-668

Wed, 19 Aug 2026 12:15:00 +0000

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


Sat, 15 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-668

Sat, 15 Aug 2026 06:15:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:17:56.829Z

Reserved: 2026-08-15T05:44:03.887Z

Link: CVE-2026-74362

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:37.783

Modified: 2026-08-17T06:19:30.960

Link: CVE-2026-74362

cve-icon Redhat

Severity : Low

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74362 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T03:00:12Z

Weaknesses