# CVE-2023-54125: fs/ntfs3: Return error for inconsistent extended attributes

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.23% (percentile 8, 2026-11-28)
- **Published:** 2025-12-24T13:06:43.977Z
- **Modified:** 2026-08-05T09:17:26.458Z

## Who should check

- Anyone running Linux \>= 333feb7ba84f69f9b423422417aaac54fd9e7c84, \< 6557c4504c5a1bbbbac25d14d7dcf2a4912d1508; \>= 000a9a72efa4a9df289bab9c9e8ba1639c72e0d6, \< 486666c2c2714788705d02d98d0332c8a2328575; \>= 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b, \< 1474098b590a426d90f27bb992f17c326e0b60c1; \>= 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b, \< c9db0ff04649aa0b45f497183c957fe260f229f6; \>= 5.15.121, \< 5.15.210; \>= 6.1.40, \< 6.1.176
- Anyone running Linux 6.2

## Description

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

fs/ntfs3: Return error for inconsistent extended attributes

ntfs\_read\_ea is called when we want to read extended attributes. There
are some sanity checks for the validity of the EAs. However, it fails to
return a proper error code for the inconsistent attributes, which might
lead to unpredicted memory accesses after return.

\[  138.916927\] BUG: KASAN: use-after-free in ntfs\_set\_ea+0x453/0xbf0
\[  138.923876\] Write of size 4 at addr ffff88800205cfac by task poc/199
\[  138.931132\]
\[  138.933016\] CPU: 0 PID: 199 Comm: poc Not tainted 6.2.0-rc1+ \#4
\[  138.938070\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
\[  138.947327\] Call Trace:
\[  138.949557\]  \<TASK\>
\[  138.951539\]  dump\_stack\_lvl+0x4d/0x67
\[  138.956834\]  print\_report+0x16f/0x4a6
\[  138.960798\]  ? ntfs\_set\_ea+0x453/0xbf0
\[  138.964437\]  ? kasan\_complete\_mode\_report\_info+0x7d/0x200
\[  138.969793\]  ? ntfs\_set\_ea+0x453/0xbf0
\[  138.973523\]  kasan\_report+0xb8/0x140
\[  138.976740\]  ? ntfs\_set\_ea+0x453/0xbf0
\[  138.980578\]  \_\_asan\_store4+0x76/0xa0
\[  138.984669\]  ntfs\_set\_ea+0x453/0xbf0
\[  138.988115\]  ? \_\_pfx\_ntfs\_set\_ea+0x10/0x10
\[  138.993390\]  ? kernel\_text\_address+0xd3/0xe0
\[  138.998270\]  ? \_\_kernel\_text\_address+0x16/0x50
\[  139.002121\]  ? unwind\_get\_return\_address+0x3e/0x60
\[  139.005659\]  ? \_\_pfx\_stack\_trace\_consume\_entry+0x10/0x10
\[  139.010177\]  ? arch\_stack\_walk+0xa2/0x100
\[  139.013657\]  ? filter\_irq\_stacks+0x27/0x80
\[  139.017018\]  ntfs\_setxattr+0x405/0x440
\[  139.022151\]  ? \_\_pfx\_ntfs\_setxattr+0x10/0x10
\[  139.026569\]  ? kvmalloc\_node+0x2d/0x120
\[  139.030329\]  ? kasan\_save\_stack+0x41/0x60
\[  139.033883\]  ? kasan\_save\_stack+0x2a/0x60
\[  139.037338\]  ? kasan\_set\_track+0x29/0x40
\[  139.040163\]  ? kasan\_save\_alloc\_info+0x1f/0x30
\[  139.043588\]  ? \_\_kasan\_kmalloc+0x8b/0xa0
\[  139.047255\]  ? \_\_kmalloc\_node+0x68/0x150
\[  139.051264\]  ? kvmalloc\_node+0x2d/0x120
\[  139.055301\]  ? vmemdup\_user+0x2b/0xa0
\[  139.058584\]  \_\_vfs\_setxattr+0x121/0x170
\[  139.062617\]  ? \_\_pfx\_\_\_vfs\_setxattr+0x10/0x10
\[  139.066282\]  \_\_vfs\_setxattr\_noperm+0x97/0x300
\[  139.070061\]  \_\_vfs\_setxattr\_locked+0x145/0x170
\[  139.073580\]  vfs\_setxattr+0x137/0x2a0
\[  139.076641\]  ? \_\_pfx\_vfs\_setxattr+0x10/0x10
\[  139.080223\]  ? \_\_kasan\_check\_write+0x18/0x20
\[  139.084234\]  do\_setxattr+0xce/0x150
\[  139.087768\]  setxattr+0x126/0x140
\[  139.091250\]  ? \_\_pfx\_setxattr+0x10/0x10
\[  139.094948\]  ? \_\_virt\_addr\_valid+0xcb/0x140
\[  139.097838\]  ? \_\_call\_rcu\_common.constprop.0+0x1c7/0x330
\[  139.102688\]  ? debug\_smp\_processor\_id+0x1b/0x30
\[  139.105985\]  ? kasan\_quarantine\_put+0x5b/0x190
\[  139.109980\]  ? putname+0x84/0xa0
\[  139.113886\]  ? \_\_kasan\_slab\_free+0x11e/0x1b0
\[  139.117961\]  ? putname+0x84/0xa0
\[  139.121316\]  ? preempt\_count\_sub+0x1c/0xd0
\[  139.124427\]  ? \_\_mnt\_want\_write+0xae/0x100
\[  139.127836\]  ? mnt\_want\_write+0x8f/0x150
\[  139.130954\]  path\_setxattr+0x164/0x180
\[  139.133998\]  ? \_\_pfx\_path\_setxattr+0x10/0x10
\[  139.137853\]  ? \_\_pfx\_ksys\_pwrite64+0x10/0x10
\[  139.141299\]  ? debug\_smp\_processor\_id+0x1b/0x30
\[  139.145714\]  ? fpregs\_assert\_state\_consistent+0x6b/0x80
\[  139.150796\]  \_\_x64\_sys\_setxattr+0x71/0x90
\[  139.155407\]  do\_syscall\_64+0x3f/0x90
\[  139.159035\]  entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc
\[  139.163843\] RIP: 0033:0x7f108cae4469
\[  139.166481\] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 088
\[  139.183764\] RSP: 002b:00007fff87588388 EFLAGS: 00000286 ORIG\_RAX: 00000000000000bc
\[  139.190657\] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f108cae4469
\[  139.196586\] RDX: 00007fff875883b0 RSI: 00007fff875883d1 RDI: 00007fff875883b6
\[  139.201716\] RBP: 00007fff8758c530 R08: 0000000000000001 R09: 00007fff8758c618
\[  139.207940\] R10: 0000000000000006 R11: 0000000000000286 R12: 00000000004004c0
\[  139.214007\] R13: 00007fff8758c610 R14: 0000000000000000 R15
---truncated---

## Affected and fixed versions

- Linux: \>= 333feb7ba84f69f9b423422417aaac54fd9e7c84, \< 6557c4504c5a1bbbbac25d14d7dcf2a4912d1508; \>= 000a9a72efa4a9df289bab9c9e8ba1639c72e0d6, \< 486666c2c2714788705d02d98d0332c8a2328575; \>= 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b, \< 1474098b590a426d90f27bb992f17c326e0b60c1; \>= 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b, \< c9db0ff04649aa0b45f497183c957fe260f229f6; \>= 5.15.121, \< 5.15.210; \>= 6.1.40, \< 6.1.176 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.176 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54125.md
Affected: Linux >= 333feb7ba84f69f9b423422417aaac54fd9e7c84, < 6557c4504c5a1bbbbac25d14d7dcf2a4912d1508; >= 000a9a72efa4a9df289bab9c9e8ba1639c72e0d6, < 486666c2c2714788705d02d98d0332c8a2328575; >= 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b, < 1474098b590a426d90f27bb992f17c326e0b60c1; >= 0e8235d28f3a0e9eda9f02f…
Fixed in: Linux 6557c4504c5a1bbbbac25d14d7dcf2a4912d1508, Linux 486666c2c2714788705d02d98d0332c8a2328575, Linux 1474098b590a426d90f27bb992f17c326e0b60c1, Linux 5.15.210, Linux 6.1.176

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-2023-54125 being exploited?

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

### How serious is CVE-2023-54125?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-54125?

Linux \>= 333feb7ba84f69f9b423422417aaac54fd9e7c84, \< 6557c4504c5a1bbbbac25d14d7dcf2a4912d1508; \>= 000a9a72efa4a9df289bab9c9e8ba1639c72e0d6, \< 486666c2c2714788705d02d98d0332c8a2328575; \>= 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b, \< 1474098b590a426d90f27bb992f17c326e0b60c1; \>= 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b, \< c9db0ff04649aa0b45f497183c957fe260f229f6; \>= 5.15.121, \< 5.15.210; \>= 6.1.40, \< 6.1.176; Linux 6.2.

### Is there a fix for CVE-2023-54125?

Yes. Fixed in Linux 6557c4504c5a1bbbbac25d14d7dcf2a4912d1508, Linux 486666c2c2714788705d02d98d0332c8a2328575, Linux 1474098b590a426d90f27bb992f17c326e0b60c1, Linux 5.15.210, Linux 6.1.176. Upgrade Linux to 6.1.176 or later.

### How do I check if I'm affected by CVE-2023-54125?

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

- other: <https://git.kernel.org/stable/c/6557c4504c5a1bbbbac25d14d7dcf2a4912d1508>
- other: <https://git.kernel.org/stable/c/486666c2c2714788705d02d98d0332c8a2328575>
- other: <https://git.kernel.org/stable/c/1474098b590a426d90f27bb992f17c326e0b60c1>
- other: <https://git.kernel.org/stable/c/c9db0ff04649aa0b45f497183c957fe260f229f6>

## 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-2023-54125>

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