{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-64058",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-07-19T07:54:57.030Z",
        "datePublished": "2026-07-19T15:39:38.978Z",
        "dateUpdated": "2026-08-05T12:38:47.933Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:38:47.933Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix netfs_read_folio() to wait on writeback\n\nFix netfs_read_folio() to wait for an ongoing writeback to complete so that\nit can trust the dirty flag and whatever is attached to folio->private\n(folio->private may get cleaned up by the collector before it clears the\nwriteback flag)."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The bug is in the netfs client page-cache path (`netfs_read_folio()`), reached only through local VFS operations (read/mmap/page fault) on mounted network filesystems (CIFS, Ceph, AFS, 9p, NFS+fscache), not from remote packet handling.\nAC:L - An attacker can reliably trigger the race by concurrently performing streaming writes and reads on the same folio from threads they control, forcing writeback while reads hit the vulnerable dirty-folio path.\nPR:L - Exploitation requires only unprivileged access to read/write files on an already-mounted netfs-backed filesystem; no CAP_SYS_ADMIN, real root, or user-namespace capability is needed.\nUI:N - No victim interaction is required beyond the attacker (or any local process with file access) issuing the concurrent read/write operations that trigger the race.\nS:U - The vulnerability corrupts kernel heap memory during local filesystem I/O in the same kernel security domain; it does not inherently cross VM, container, or IOMMU boundaries.\nC:H - The race frees `struct netfs_folio` in `folio->private` before writeback completes, creating a use-after-free that can expose or leak kernel heap contents when `netfs_read_gaps()` dereferences stale metadata.\nI:H - UAF on the kmalloc'd `netfs_folio` object can be leveraged for heap manipulation; corrupted `dirty_offset`/`dirty_len` values drive subsequent I/O vector setup and pagecache writes in `netfs_read_gaps()`.\nA:H - Winning the race causes kernel oops/panic via NULL dereference or use-after-free during `netfs_read_gaps()`, and a malicious local user can repeat the trigger to deny availability on shared servers with CIFS/NFS/Ceph mounts."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/netfs/buffered_read.c"
                    ],
                    "versions": [
                        {
                            "version": "ee4cdf7ba857a894ad1650d6ab77669cbbfa329e",
                            "lessThan": "f17b9121bb99f88188ec9be2db5da1d561f4c01b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ee4cdf7ba857a894ad1650d6ab77669cbbfa329e",
                            "lessThan": "b8271cccdd5e43cc8d738afb8b51f6ad05b1cb4b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ee4cdf7ba857a894ad1650d6ab77669cbbfa329e",
                            "lessThan": "ded0c6f1606061148c202825f7e53d711f9f84cf",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/netfs/buffered_read.c"
                    ],
                    "versions": [
                        {
                            "version": "6.12",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.12",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.34",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0.11",
                            "lessThanOrEqual": "7.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "6.18.34"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "7.0.11"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "7.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/f17b9121bb99f88188ec9be2db5da1d561f4c01b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b8271cccdd5e43cc8d738afb8b51f6ad05b1cb4b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ded0c6f1606061148c202825f7e53d711f9f84cf"
                }
            ],
            "title": "netfs: Fix netfs_read_folio() to wait on writeback",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}