# CVE-2022-50057: fs/ntfs3: Fix NULL deref in ntfs\_update\_mftmirr

> 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.27% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-18T11:02:06.357Z
- **Modified:** 2026-06-17T05:22:39.463Z

## Who should check

- Anyone running Linux \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 8e8e1a84dac7a3d2b432162a70d7fb6a75960772; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< bf6089dc01ba3194ab962105d7b85690843c256f; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 321460ca3b55f48b3ba6008248264ab2bd6407d9
- Anyone running Linux 5.15

## Description

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

fs/ntfs3: Fix NULL deref in ntfs\_update\_mftmirr

If ntfs\_fill\_super() wasn't called then sbi-\>sb will be equal to NULL.
Code should check this ptr before dereferencing. Syzbot hit this issue
via passing wrong mount param as can be seen from log below

Fail log:
ntfs3: Unknown parameter 'iochvrset'
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 \[\#1\] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range \[0x0000000000000018-0x000000000000001f\]
CPU: 1 PID: 3589 Comm: syz-executor210 Not tainted 5.18.0-rc3-syzkaller-00016-gb253435746d9 \#0
...
Call Trace:
 \<TASK\>
 put\_ntfs+0x1ed/0x2a0 fs/ntfs3/super.c:463
 ntfs\_fs\_free+0x6a/0xe0 fs/ntfs3/super.c:1363
 put\_fs\_context+0x119/0x7a0 fs/fs\_context.c:469
 do\_new\_mount+0x2b4/0xad0 fs/namespace.c:3044
 do\_mount fs/namespace.c:3383 \[inline\]
 \_\_do\_sys\_mount fs/namespace.c:3591 \[inline\]

## Affected and fixed versions

- Linux: \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 8e8e1a84dac7a3d2b432162a70d7fb6a75960772; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< bf6089dc01ba3194ab962105d7b85690843c256f; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 321460ca3b55f48b3ba6008248264ab2bd6407d9 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50057.md
Affected: Linux >= 82cae269cfa953032fbb8980a7d554d60fb00b17, < 8e8e1a84dac7a3d2b432162a70d7fb6a75960772; >= 82cae269cfa953032fbb8980a7d554d60fb00b17, < bf6089dc01ba3194ab962105d7b85690843c256f; >= 82cae269cfa953032fbb8980a7d554d60fb00b17, < 321460ca3b55f48b3ba6008248264ab2bd6407d9; Linux 5.15
Fixed in: Linux 8e8e1a84dac7a3d2b432162a70d7fb6a75960772, Linux 321460ca3b55f48b3ba6008248264ab2bd6407d9

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

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

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

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

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

Linux \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 8e8e1a84dac7a3d2b432162a70d7fb6a75960772; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< bf6089dc01ba3194ab962105d7b85690843c256f; \>= 82cae269cfa953032fbb8980a7d554d60fb00b17, \< 321460ca3b55f48b3ba6008248264ab2bd6407d9; Linux 5.15.

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

Yes. Fixed in Linux 8e8e1a84dac7a3d2b432162a70d7fb6a75960772, Linux 321460ca3b55f48b3ba6008248264ab2bd6407d9. Upgrade Linux to 321460ca3b55f48b3ba6008248264ab2bd6407d9 or later.

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

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/8e8e1a84dac7a3d2b432162a70d7fb6a75960772>
- patch: <https://git.kernel.org/stable/c/bf6089dc01ba3194ab962105d7b85690843c256f>
- patch: <https://git.kernel.org/stable/c/321460ca3b55f48b3ba6008248264ab2bd6407d9>

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

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