# CVE-2025-37806: fs/ntfs3: Keep write operations atomic

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-08T06:26:05.689Z
- **Modified:** 2026-10-30T13:17:57.757Z

## Who should check

- Anyone running Linux \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< ad4429a5cd6b9175532d62e97262d16e60c3b166; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 7af81befc042853949982439f847e25fedef6598; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 8db49e89a7f8b48ee59fa9ad32b6ed0879747df8; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 464139e18f619aa14fb921a61721862f43421c54; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 285cec318bf5a7a6c8ba999b2b6ec96f9a20590f
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: Keep write operations atomic

syzbot reported a NULL pointer dereference in \_\_generic\_file\_write\_iter. \[1\]

Before the write operation is completed, the user executes ioctl\[2\] to clear
the compress flag of the file, which causes the is\_compressed() judgment to
return 0, further causing the program to enter the wrong process and call the
wrong ops ntfs\_aops\_cmpr, which triggers the null pointer dereference of
write\_begin.

Use inode lock to synchronize ioctl and write to avoid this case.

\[1\]
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
Mem abort info:
  ESR = 0x0000000086000006
  EC = 0x21: IABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
user pgtable: 4k pages, 48-bit VAs, pgdp=000000011896d000
\[0000000000000000\] pgd=0800000118b44403, p4d=0800000118b44403, pud=0800000117517403, pmd=0000000000000000
Internal error: Oops: 0000000086000006 \[\#1\] PREEMPT SMP
Modules linked in:
CPU: 0 UID: 0 PID: 6427 Comm: syz-executor347 Not tainted 6.13.0-rc3-syzkaller-g573067a5a685 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : 0x0
lr : generic\_perform\_write+0x29c/0x868 mm/filemap.c:4055
sp : ffff80009d4978a0
x29: ffff80009d4979c0 x28: dfff800000000000 x27: ffff80009d497bc8
x26: 0000000000000000 x25: ffff80009d497960 x24: ffff80008ba71c68
x23: 0000000000000000 x22: ffff0000c655dac0 x21: 0000000000001000
x20: 000000000000000c x19: 1ffff00013a92f2c x18: ffff0000e183aa1c
x17: 0004060000000014 x16: ffff800083275834 x15: 0000000000000001
x14: 0000000000000000 x13: 0000000000000001 x12: ffff0000c655dac0
x11: 0000000000ff0100 x10: 0000000000ff0100 x9 : 0000000000000000
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff80009d497980 x4 : ffff80009d497960 x3 : 0000000000001000
x2 : 0000000000000000 x1 : ffff0000e183a928 x0 : ffff0000d60b0fc0
Call trace:
 0x0 (P)
 \_\_generic\_file\_write\_iter+0xfc/0x204 mm/filemap.c:4156
 ntfs\_file\_write\_iter+0x54c/0x630 fs/ntfs3/file.c:1267
 new\_sync\_write fs/read\_write.c:586 \[inline\]
 vfs\_write+0x920/0xcf4 fs/read\_write.c:679
 ksys\_write+0x15c/0x26c fs/read\_write.c:731
 \_\_do\_sys\_write fs/read\_write.c:742 \[inline\]
 \_\_se\_sys\_write fs/read\_write.c:739 \[inline\]
 \_\_arm64\_sys\_write+0x7c/0x90 fs/read\_write.c:739
 \_\_invoke\_syscall arch/arm64/kernel/syscall.c:35 \[inline\]
 invoke\_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0\_svc\_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do\_el0\_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0\_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t\_64\_sync\_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762

\[2\]
ioctl$FS\_IOC\_SETFLAGS(r0, 0x40086602, &(0x7f00000000c0)=0x20)

## Affected and fixed versions

- Linux: \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< ad4429a5cd6b9175532d62e97262d16e60c3b166; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 7af81befc042853949982439f847e25fedef6598; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 8db49e89a7f8b48ee59fa9ad32b6ed0879747df8; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 464139e18f619aa14fb921a61721862f43421c54; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 285cec318bf5a7a6c8ba999b2b6ec96f9a20590f (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 285cec318bf5a7a6c8ba999b2b6ec96f9a20590f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37806. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37806.md
Affected: Linux >= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, < ad4429a5cd6b9175532d62e97262d16e60c3b166; >= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, < 7af81befc042853949982439f847e25fedef6598; >= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, < 8db49e89a7f8b48ee59fa9ad32b6ed0879747df8; >= 4534a70b7056fd4b9a1c6db…
Fixed in: Linux 7af81befc042853949982439f847e25fedef6598, Linux 8db49e89a7f8b48ee59fa9ad32b6ed0879747df8, Linux 464139e18f619aa14fb921a61721862f43421c54, Linux 285cec318bf5a7a6c8ba999b2b6ec96f9a20590f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37806 being exploited?

There is no confirmed exploitation: CVE-2025-37806 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37806?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37806?

Linux \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< ad4429a5cd6b9175532d62e97262d16e60c3b166; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 7af81befc042853949982439f847e25fedef6598; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 8db49e89a7f8b48ee59fa9ad32b6ed0879747df8; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 464139e18f619aa14fb921a61721862f43421c54; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 285cec318bf5a7a6c8ba999b2b6ec96f9a20590f; Linux 5.15.

### Is there a fix for CVE-2025-37806?

Yes. Fixed in Linux 7af81befc042853949982439f847e25fedef6598, Linux 8db49e89a7f8b48ee59fa9ad32b6ed0879747df8, Linux 464139e18f619aa14fb921a61721862f43421c54, Linux 285cec318bf5a7a6c8ba999b2b6ec96f9a20590f. Upgrade Linux to 285cec318bf5a7a6c8ba999b2b6ec96f9a20590f or later.

### How do I check if I'm affected by CVE-2025-37806?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8db49e89a7f8b48ee59fa9ad32b6ed0879747df8>
- patch: <https://git.kernel.org/stable/c/464139e18f619aa14fb921a61721862f43421c54>
- patch: <https://git.kernel.org/stable/c/285cec318bf5a7a6c8ba999b2b6ec96f9a20590f>
- other: <https://git.kernel.org/stable/c/ad4429a5cd6b9175532d62e97262d16e60c3b166>
- other: <https://git.kernel.org/stable/c/7af81befc042853949982439f847e25fedef6598>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37806>

HTML: <https://flawdb.com/CVE-2025-37806> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37806>
