{"id":"CVE-2025-71311","state":"PUBLISHED","title":"fs/ntfs3: Initialize new folios before use","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: Initialize new folios before use\n\nKMSAN reports an uninitialized value in longest_match_std(), invoked\nfrom ntfs_compress_write(). When new folios are allocated without being\nmarked uptodate and ni_read_frame() is skipped because the caller expects\nthe frame to be completely overwritten, some reserved folios may remain\nonly partially filled, leaving the rest memory uninitialized.","publishedAt":"2026-05-27T12:24:02.532Z","updatedAt":"2026-08-05T12:12:45.568Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"dd6c81527d097b3b0bf5a15c2fdc9657d045144c","versionType":"git"},{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"5a30cc03bde169ad558695b26da6ea7e55f6194a","versionType":"git"},{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"41d79f8e2a36622d148719bf7c18b46ac1264284","versionType":"git"},{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"f223ebffa185cc8da934333c5a31ff2d4f992dc9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]}],"references":["https://git.kernel.org/stable/c/dd6c81527d097b3b0bf5a15c2fdc9657d045144c","https://git.kernel.org/stable/c/5a30cc03bde169ad558695b26da6ea7e55f6194a","https://git.kernel.org/stable/c/41d79f8e2a36622d148719bf7c18b46ac1264284","https://git.kernel.org/stable/c/f223ebffa185cc8da934333c5a31ff2d4f992dc9"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71311.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71311","state":"PUBLISHED","datePublished":"2026-05-27T12:24:02.532Z","dateUpdated":"2026-08-05T12:12:45.568Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-27T12:23:27.414Z"},"containers":{"cna":{"title":"fs/ntfs3: Initialize new folios before use","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: Initialize new folios before use\n\nKMSAN reports an uninitialized value in longest_match_std(), invoked\nfrom ntfs_compress_write(). When new folios are allocated without being\nmarked uptodate and ni_read_frame() is skipped because the caller expects\nthe frame to be completely overwritten, some reserved folios may remain\nonly partially filled, leaving the rest memory uninitialized."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"dd6c81527d097b3b0bf5a15c2fdc9657d045144c","versionType":"git"},{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"5a30cc03bde169ad558695b26da6ea7e55f6194a","versionType":"git"},{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"41d79f8e2a36622d148719bf7c18b46ac1264284","versionType":"git"},{"version":"584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2","status":"affected","lessThan":"f223ebffa185cc8da934333c5a31ff2d4f992dc9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dd6c81527d097b3b0bf5a15c2fdc9657d045144c"},{"url":"https://git.kernel.org/stable/c/5a30cc03bde169ad558695b26da6ea7e55f6194a"},{"url":"https://git.kernel.org/stable/c/41d79f8e2a36622d148719bf7c18b46ac1264284"},{"url":"https://git.kernel.org/stable/c/f223ebffa185cc8da934333c5a31ff2d4f992dc9"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","baseScore":8.2,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - A remote SMB or NFS client can reach ntfs3's write path when a compressed NTFS volume is exported by ksmbd or nfsd. Writable NTFS-backed network shares are a reasonable NAS/server deployment.\nAC:L - No race is required; the attacker controls the write offset and length and can reliably end a write inside a newly allocated compression frame.\nPR:N - ksmbd supports anonymous guest-writable shares, including compressed directories whose new files inherit compression, so exploitation can require no credentials.\nUI:N - Once the share and filesystem are available, the attacker can perform the write, EOF extension, and read without victim interaction.\nS:U - The disclosure and limited data corruption remain within the host kernel and its filesystem security authority.\nC:H - Unfilled portions of an 8–64 KiB frame contain stale allocator data but are compressed, persisted, and marked uptodate. Extending EOF and reading can expose substantial kernel or cross-process memory, and the process can be repeated.\nI:L - Uninitialized bytes can become file contents instead of the required zero-filled extension, causing limited and value-uncontrolled data modification. The bug does not provide an arbitrary kernel write or control-flow primitive.\nA:N - The compression code keeps pointers, indexes, and output sizes bounded, so the uninitialized values do not crash a normal kernel. A KMSAN diagnostic on specially instrumented kernels is not a production availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:12:45.568Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}