# CVE-2022-50336: fs/ntfs3: Add null pointer check to attr\_load\_runs\_vcn

> 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.23% (percentile 8, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-09-15T14:49:51.195Z
- **Modified:** 2026-08-15T13:17:32.093Z

## Who should check

- Anyone running Linux \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< ea6b3598406c58c5d09b6f4328e09616c077597f; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 26425414bfe5d302413b956ab2469176d4ff53aa; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 1621734cd3047f7979da1d7d5c5444d583d8b0ed; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 2681631c29739509eec59cc0b34e977bb04c6cf1
- Anyone running Linux 5.15

## Description

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

fs/ntfs3: Add null pointer check to attr\_load\_runs\_vcn

Some metadata files are handled before MFT. This adds a null pointer
check for some corner cases that could lead to NPD while reading these
metadata files for a malformed NTFS image.

\[  240.190827\] BUG: kernel NULL pointer dereference, address: 0000000000000158
\[  240.191583\] \#PF: supervisor read access in kernel mode
\[  240.191956\] \#PF: error\_code(0x0000) - not-present page
\[  240.192391\] PGD 0 P4D 0
\[  240.192897\] Oops: 0000 \[\#1\] PREEMPT SMP KASAN NOPTI
\[  240.193805\] CPU: 0 PID: 242 Comm: mount Tainted: G    B             5.19.0+ \#17
\[  240.194477\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
\[  240.195152\] RIP: 0010:ni\_find\_attr+0xae/0x300
\[  240.195679\] Code: c8 48 c7 45 88 c0 4e 5e 86 c7 00 f1 f1 f1 f1 c7 40 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 e2 d9f
\[  240.196642\] RSP: 0018:ffff88800812f690 EFLAGS: 00000286
\[  240.197019\] RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff85ef037a
\[  240.197523\] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff88e95f60
\[  240.197877\] RBP: ffff88800812f738 R08: 0000000000000001 R09: fffffbfff11d2bed
\[  240.198292\] R10: ffffffff88e95f67 R11: fffffbfff11d2bec R12: 0000000000000000
\[  240.198647\] R13: 0000000000000080 R14: 0000000000000000 R15: 0000000000000000
\[  240.199410\] FS:  00007f233c33be40(0000) GS:ffff888058200000(0000) knlGS:0000000000000000
\[  240.199895\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  240.200314\] CR2: 0000000000000158 CR3: 0000000004d32000 CR4: 00000000000006f0
\[  240.200839\] Call Trace:
\[  240.201104\]  \<TASK\>
\[  240.201502\]  ? ni\_load\_mi+0x80/0x80
\[  240.202297\]  ? \_\_\_slab\_alloc+0x465/0x830
\[  240.202614\]  attr\_load\_runs\_vcn+0x8c/0x1a0
\[  240.202886\]  ? \_\_kasan\_slab\_alloc+0x32/0x90
\[  240.203157\]  ? attr\_data\_write\_resident+0x250/0x250
\[  240.203543\]  mi\_read+0x133/0x2c0
\[  240.203785\]  mi\_get+0x70/0x140
\[  240.204012\]  ni\_load\_mi\_ex+0xfa/0x190
\[  240.204346\]  ? ni\_std5+0x90/0x90
\[  240.204588\]  ? \_\_kasan\_kmalloc+0x88/0xb0
\[  240.204859\]  ni\_enum\_attr\_ex+0xf1/0x1c0
\[  240.205107\]  ? ni\_fname\_type.part.0+0xd0/0xd0
\[  240.205600\]  ? ntfs\_load\_attr\_list+0xbe/0x300
\[  240.205864\]  ? ntfs\_cmp\_names\_cpu+0x125/0x180
\[  240.206157\]  ntfs\_iget5+0x56c/0x1870
\[  240.206510\]  ? ntfs\_get\_block\_bmap+0x70/0x70
\[  240.206776\]  ? \_\_kasan\_kmalloc+0x88/0xb0
\[  240.207030\]  ? set\_blocksize+0x95/0x150
\[  240.207545\]  ntfs\_fill\_super+0xb8f/0x1e20
\[  240.207839\]  ? put\_ntfs+0x1d0/0x1d0
\[  240.208069\]  ? vsprintf+0x20/0x20
\[  240.208467\]  ? mutex\_unlock+0x81/0xd0
\[  240.208846\]  ? set\_blocksize+0x95/0x150
\[  240.209221\]  get\_tree\_bdev+0x232/0x370
\[  240.209804\]  ? put\_ntfs+0x1d0/0x1d0
\[  240.210519\]  ntfs\_fs\_get\_tree+0x15/0x20
\[  240.210991\]  vfs\_get\_tree+0x4c/0x130
\[  240.211455\]  path\_mount+0x645/0xfd0
\[  240.211806\]  ? putname+0x80/0xa0
\[  240.212112\]  ? finish\_automount+0x2e0/0x2e0
\[  240.212559\]  ? kmem\_cache\_free+0x110/0x390
\[  240.212906\]  ? putname+0x80/0xa0
\[  240.213329\]  do\_mount+0xd6/0xf0
\[  240.213829\]  ? path\_mount+0xfd0/0xfd0
\[  240.214246\]  ? \_\_kasan\_check\_write+0x14/0x20
\[  240.214774\]  \_\_x64\_sys\_mount+0xca/0x110
\[  240.215080\]  do\_syscall\_64+0x3b/0x90
\[  240.215442\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[  240.215811\] RIP: 0033:0x7f233b4e948a
\[  240.216104\] Code: 48 8b 0d 11 fa 2a 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 008
\[  240.217615\] RSP: 002b:00007fff02211ec8 EFLAGS: 00000202 ORIG\_RAX: 00000000000000a5
\[  240.218718\] RAX: ffffffffffffffda RBX: 0000561cdc35b060 RCX: 00007f233b4e948a
\[  240.219556\] RDX: 0000561cdc35b260 RSI: 0000561cdc35b2e0 RDI: 0000561cdc363af0
\[  240.219975\] RBP: 0000000000000000 R08: 0000561cdc35b280 R09: 0000000000000020
\[  240.220403\] R10: 00000000c0ed0000 R11: 0000000000000202 R12: 0000561cdc363af0
\[  240.220803\] R13: 000
---truncated---

## Affected and fixed versions

- Linux: \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< ea6b3598406c58c5d09b6f4328e09616c077597f; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 26425414bfe5d302413b956ab2469176d4ff53aa; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 1621734cd3047f7979da1d7d5c5444d583d8b0ed; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 2681631c29739509eec59cc0b34e977bb04c6cf1 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 2681631c29739509eec59cc0b34e977bb04c6cf1 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-50336. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50336.md
Affected: Linux >= 4342306f0f0d5ff4315a204d315c1b51b914fca5, < ea6b3598406c58c5d09b6f4328e09616c077597f; >= 4342306f0f0d5ff4315a204d315c1b51b914fca5, < 26425414bfe5d302413b956ab2469176d4ff53aa; >= 4342306f0f0d5ff4315a204d315c1b51b914fca5, < 1621734cd3047f7979da1d7d5c5444d583d8b0ed; >= 4342306f0f0d5ff4315a204…
Fixed in: Linux 26425414bfe5d302413b956ab2469176d4ff53aa, Linux 1621734cd3047f7979da1d7d5c5444d583d8b0ed, Linux 2681631c29739509eec59cc0b34e977bb04c6cf1

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-50336 being exploited?

There is no confirmed exploitation: CVE-2022-50336 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-2022-50336?

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

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

Linux \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< ea6b3598406c58c5d09b6f4328e09616c077597f; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 26425414bfe5d302413b956ab2469176d4ff53aa; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 1621734cd3047f7979da1d7d5c5444d583d8b0ed; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 2681631c29739509eec59cc0b34e977bb04c6cf1; Linux 5.15.

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

Yes. Fixed in Linux 26425414bfe5d302413b956ab2469176d4ff53aa, Linux 1621734cd3047f7979da1d7d5c5444d583d8b0ed, Linux 2681631c29739509eec59cc0b34e977bb04c6cf1. Upgrade Linux to 2681631c29739509eec59cc0b34e977bb04c6cf1 or later.

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

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/ea6b3598406c58c5d09b6f4328e09616c077597f>
- patch: <https://git.kernel.org/stable/c/26425414bfe5d302413b956ab2469176d4ff53aa>
- patch: <https://git.kernel.org/stable/c/1621734cd3047f7979da1d7d5c5444d583d8b0ed>
- patch: <https://git.kernel.org/stable/c/2681631c29739509eec59cc0b34e977bb04c6cf1>

## 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-50336>

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