Skip to content
Heist/ feed
Back to feed
UnratedFix available

ext2: fix ignored return value of generic_write_sync()

Type: advisorySources: OSV

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]

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.97, 6.18.40, 6.6.145, 7.1.5
CVEs
CVE-2026-74362
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 01:33 UTC · Revision 1

Source evidence

ext2: fix ignored return value of generic_write_sync()

core-osv · Original source

Published 15 Aug 2026, 05:58 UTC

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]

osv:CVE-2026-74362

Kernel

Fixed versions: 6.6.145, 6.12.97, 6.18.40, 7.1.5

Complete source record
{
  "id": "e793a3de025519ca27ef578a33ffbe7d0fbbfb8eefc9dabd04c38362e679ba68",
  "url": "https://osv.dev/vulnerability/CVE-2026-74362",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ext2: fix ignored return value of generic_write_sync()",
    "summary": "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]",
    "evidence": "osv:CVE-2026-74362",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.145",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.97",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.40",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-74362",
      "aliases": [
        "CVE-2026-74362"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fb5de4358e1aa4753dce73c4dc1aca73ff39cedd"
                },
                {
                  "fixed": "8990dbb7065b0b002b1e58b9091a5b61f5e94dbe"
                },
                {
                  "fixed": "8d70b3973020e59845c0bdad90e0b9c2295fd493"
                },
                {
                  "fixed": "ffa974b2f50ad8b911b9066d7aed84ad0afabcdb"
                },
                {
                  "fixed": "b6bc07e49a5fbb335f56eb90cd63dec6584c77d3"
                },
                {
                  "fixed": "a4659be0bc7cb1856ffb15b67f903229ae8891ec"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74362.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.5.0"
                },
                {
                  "fixed": "6.6.145"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.97"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.40"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74362.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.045506437Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/8990dbb7065b0b002b1e58b9091a5b61f5e94dbe",
        "https://git.kernel.org/stable/c/8d70b3973020e59845c0bdad90e0b9c2295fd493",
        "https://git.kernel.org/stable/c/a4659be0bc7cb1856ffb15b67f903229ae8891ec",
        "https://git.kernel.org/stable/c/b6bc07e49a5fbb335f56eb90cd63dec6584c77d3",
        "https://git.kernel.org/stable/c/ffa974b2f50ad8b911b9066d7aed84ad0afabcdb",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74362.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-74362",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74362.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-74362",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 491667,
  "published_at": "2026-08-15T05:58:45.553+00:00"
}