ext2: fix ignored return value of generic_write_sync()

Summary

CVECVE-2026-74362
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-15 06:22:37 UTC
Updated2026-08-15 06:22:37 UTC
DescriptionIn 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]

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected fb5de4358e1aa4753dce73c4dc1aca73ff39cedd 8990dbb7065b0b002b1e58b9091a5b61f5e94dbe git Not specified
CNA Linux Linux affected fb5de4358e1aa4753dce73c4dc1aca73ff39cedd 8d70b3973020e59845c0bdad90e0b9c2295fd493 git Not specified
CNA Linux Linux affected fb5de4358e1aa4753dce73c4dc1aca73ff39cedd ffa974b2f50ad8b911b9066d7aed84ad0afabcdb git Not specified
CNA Linux Linux affected fb5de4358e1aa4753dce73c4dc1aca73ff39cedd b6bc07e49a5fbb335f56eb90cd63dec6584c77d3 git Not specified
CNA Linux Linux affected fb5de4358e1aa4753dce73c4dc1aca73ff39cedd a4659be0bc7cb1856ffb15b67f903229ae8891ec git Not specified
CNA Linux Linux affected 6.5 Not specified
CNA Linux Linux unaffected 6.5 semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.97 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.40 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.5 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/8d70b3973020e59845c0bdad90e0b9c2295fd493 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b6bc07e49a5fbb335f56eb90cd63dec6584c77d3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a4659be0bc7cb1856ffb15b67f903229ae8891ec 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ffa974b2f50ad8b911b9066d7aed84ad0afabcdb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8990dbb7065b0b002b1e58b9091a5b61f5e94dbe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report