# CVE-2022-50442: fs/ntfs3: Validate buffer length while parsing index

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

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; 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.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-10-01T11:42:18.012Z
- **Modified:** 2026-08-15T13:17:37.867Z

## Who should check

- Anyone running Linux \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 3cd9e5b41b83bb57ac3cf9888f9fef2a6ef8ed96; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< b15374365c9d10445ea7d66cdf885457a0223fc2; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 3f6f75e8863f41c8b3dbfd9d99e3963aaca42601; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 4d42ecda239cc13738d6fd84d098a32e67b368b9
- Anyone running Linux 5.15

## Description

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

fs/ntfs3: Validate buffer length while parsing index

indx\_read is called when we have some NTFS directory operations that
need more information from the index buffers. This adds a sanity check
to make sure the returned index buffer length is legit, or we may have
some out-of-bound memory accesses.

\[  560.897595\] BUG: KASAN: slab-out-of-bounds in hdr\_find\_e.isra.0+0x10c/0x320
\[  560.898321\] Read of size 2 at addr ffff888009497238 by task exp/245
\[  560.898760\]
\[  560.899129\] CPU: 0 PID: 245 Comm: exp Not tainted 6.0.0-rc6 \#37
\[  560.899505\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
\[  560.900170\] Call Trace:
\[  560.900407\]  \<TASK\>
\[  560.900732\]  dump\_stack\_lvl+0x49/0x63
\[  560.901108\]  print\_report.cold+0xf5/0x689
\[  560.901395\]  ? hdr\_find\_e.isra.0+0x10c/0x320
\[  560.901716\]  kasan\_report+0xa7/0x130
\[  560.901950\]  ? hdr\_find\_e.isra.0+0x10c/0x320
\[  560.902208\]  \_\_asan\_load2+0x68/0x90
\[  560.902427\]  hdr\_find\_e.isra.0+0x10c/0x320
\[  560.902846\]  ? cmp\_uints+0xe0/0xe0
\[  560.903363\]  ? cmp\_sdh+0x90/0x90
\[  560.903883\]  ? ntfs\_bread\_run+0x190/0x190
\[  560.904196\]  ? rwsem\_down\_read\_slowpath+0x750/0x750
\[  560.904969\]  ? ntfs\_fix\_post\_read+0xe0/0x130
\[  560.905259\]  ? \_\_kasan\_check\_write+0x14/0x20
\[  560.905599\]  ? up\_read+0x1a/0x90
\[  560.905853\]  ? indx\_read+0x22c/0x380
\[  560.906096\]  indx\_find+0x2ef/0x470
\[  560.906352\]  ? indx\_find\_buffer+0x2d0/0x2d0
\[  560.906692\]  ? \_\_kasan\_kmalloc+0x88/0xb0
\[  560.906977\]  dir\_search\_u+0x196/0x2f0
\[  560.907220\]  ? ntfs\_nls\_to\_utf16+0x450/0x450
\[  560.907464\]  ? \_\_kasan\_check\_write+0x14/0x20
\[  560.907747\]  ? mutex\_lock+0x8f/0xe0
\[  560.907970\]  ? \_\_mutex\_lock\_slowpath+0x20/0x20
\[  560.908214\]  ? kmem\_cache\_alloc+0x143/0x4b0
\[  560.908459\]  ntfs\_lookup+0xe0/0x100
\[  560.908788\]  \_\_lookup\_slow+0x116/0x220
\[  560.909050\]  ? lookup\_fast+0x1b0/0x1b0
\[  560.909309\]  ? lookup\_fast+0x13f/0x1b0
\[  560.909601\]  walk\_component+0x187/0x230
\[  560.909944\]  link\_path\_walk.part.0+0x3f0/0x660
\[  560.910285\]  ? handle\_lookup\_down+0x90/0x90
\[  560.910618\]  ? path\_init+0x642/0x6e0
\[  560.911084\]  ? percpu\_counter\_add\_batch+0x6e/0xf0
\[  560.912559\]  ? \_\_alloc\_file+0x114/0x170
\[  560.913008\]  path\_openat+0x19c/0x1d10
\[  560.913419\]  ? getname\_flags+0x73/0x2b0
\[  560.913815\]  ? kasan\_save\_stack+0x3a/0x50
\[  560.914125\]  ? kasan\_save\_stack+0x26/0x50
\[  560.914542\]  ? \_\_kasan\_slab\_alloc+0x6d/0x90
\[  560.914924\]  ? kmem\_cache\_alloc+0x143/0x4b0
\[  560.915339\]  ? getname\_flags+0x73/0x2b0
\[  560.915647\]  ? getname+0x12/0x20
\[  560.916114\]  ? \_\_x64\_sys\_open+0x4c/0x60
\[  560.916460\]  ? path\_lookupat.isra.0+0x230/0x230
\[  560.916867\]  ? \_\_isolate\_free\_page+0x2e0/0x2e0
\[  560.917194\]  do\_filp\_open+0x15c/0x1f0
\[  560.917448\]  ? may\_open\_dev+0x60/0x60
\[  560.917696\]  ? expand\_files+0xa4/0x3a0
\[  560.917923\]  ? \_\_kasan\_check\_write+0x14/0x20
\[  560.918185\]  ? \_raw\_spin\_lock+0x88/0xdb
\[  560.918409\]  ? \_raw\_spin\_lock\_irqsave+0x100/0x100
\[  560.918783\]  ? \_find\_next\_bit+0x4a/0x130
\[  560.919026\]  ? \_raw\_spin\_unlock+0x19/0x40
\[  560.919276\]  ? alloc\_fd+0x14b/0x2d0
\[  560.919635\]  do\_sys\_openat2+0x32a/0x4b0
\[  560.920035\]  ? file\_open\_root+0x230/0x230
\[  560.920336\]  ? \_\_rcu\_read\_unlock+0x5b/0x280
\[  560.920813\]  do\_sys\_open+0x99/0xf0
\[  560.921208\]  ? filp\_open+0x60/0x60
\[  560.921482\]  ? exit\_to\_user\_mode\_prepare+0x49/0x180
\[  560.921867\]  \_\_x64\_sys\_open+0x4c/0x60
\[  560.922128\]  do\_syscall\_64+0x3b/0x90
\[  560.922369\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[  560.923030\] RIP: 0033:0x7f7dff2e4469
\[  560.923681\] 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
\[  560.924451\] RSP: 002b:00007ffd41a210b8 EFLAGS: 00000206 ORIG\_RAX: 0000000000000002
\[  560.925168\] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7dff2e4469
\[  560.925655\] RDX: 0000000000000000 RSI: 0000000000000002 RDI:
---truncated---

## Affected and fixed versions

- Linux: \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 3cd9e5b41b83bb57ac3cf9888f9fef2a6ef8ed96; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< b15374365c9d10445ea7d66cdf885457a0223fc2; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 3f6f75e8863f41c8b3dbfd9d99e3963aaca42601; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 4d42ecda239cc13738d6fd84d098a32e67b368b9 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 4d42ecda239cc13738d6fd84d098a32e67b368b9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50442.md
Affected: Linux >= 82cae269cfa953032fbb8980a7d554d60fb00b17, < 3cd9e5b41b83bb57ac3cf9888f9fef2a6ef8ed96; >= 82cae269cfa953032fbb8980a7d554d60fb00b17, < b15374365c9d10445ea7d66cdf885457a0223fc2; >= 82cae269cfa953032fbb8980a7d554d60fb00b17, < 3f6f75e8863f41c8b3dbfd9d99e3963aaca42601; >= 82cae269cfa953032fbb898…
Fixed in: Linux 3cd9e5b41b83bb57ac3cf9888f9fef2a6ef8ed96, Linux 3f6f75e8863f41c8b3dbfd9d99e3963aaca42601, Linux 4d42ecda239cc13738d6fd84d098a32e67b368b9

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-2022-50442 being exploited?

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

### How serious is CVE-2022-50442?

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

### Which versions are affected by CVE-2022-50442?

Linux \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 3cd9e5b41b83bb57ac3cf9888f9fef2a6ef8ed96; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< b15374365c9d10445ea7d66cdf885457a0223fc2; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 3f6f75e8863f41c8b3dbfd9d99e3963aaca42601; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 4d42ecda239cc13738d6fd84d098a32e67b368b9; Linux 5.15.

### Is there a fix for CVE-2022-50442?

Yes. Fixed in Linux 3cd9e5b41b83bb57ac3cf9888f9fef2a6ef8ed96, Linux 3f6f75e8863f41c8b3dbfd9d99e3963aaca42601, Linux 4d42ecda239cc13738d6fd84d098a32e67b368b9. Upgrade Linux to 4d42ecda239cc13738d6fd84d098a32e67b368b9 or later.

### How do I check if I'm affected by CVE-2022-50442?

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/3cd9e5b41b83bb57ac3cf9888f9fef2a6ef8ed96>
- patch: <https://git.kernel.org/stable/c/b15374365c9d10445ea7d66cdf885457a0223fc2>
- patch: <https://git.kernel.org/stable/c/3f6f75e8863f41c8b3dbfd9d99e3963aaca42601>
- patch: <https://git.kernel.org/stable/c/4d42ecda239cc13738d6fd84d098a32e67b368b9>

## 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-2022-50442>

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