# CVE-2022-50057: fs/ntfs3: Fix NULL deref in ntfs_update_mftmirr

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-06-18T11:02:06.357Z
- Modified: 2026-06-17T05:22:39.463Z
- Weaknesses: CWE-476
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 82cae269cfa953032fbb8980a7d554d60fb00b17 before 8e8e1a84dac7a3d2b432162a70d7fb6a75960772; from 82cae269cfa953032fbb8980a7d554d60fb00b17 before bf6089dc01ba3194ab962105d7b85690843c256f; from 82cae269cfa953032fbb8980a7d554d60fb00b17 before 321460ca3b55f48b3ba6008248264ab2bd6407d9; 5.15 (not affected: before 5.15; from 5.15.63 up to 5.15.*; from 5.19.4 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.15 before 5.15.63; from 5.16 before 5.19.4; 6.0

## References

- <https://git.kernel.org/stable/c/8e8e1a84dac7a3d2b432162a70d7fb6a75960772> (patch)
- <https://git.kernel.org/stable/c/bf6089dc01ba3194ab962105d7b85690843c256f> (patch)
- <https://git.kernel.org/stable/c/321460ca3b55f48b3ba6008248264ab2bd6407d9> (patch)

## Sources

- CVE List: [CVE-2022-50057](https://www.cve.org/CVERecord?id=CVE-2022-50057), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50057](https://nvd.nist.gov/vuln/detail/CVE-2022-50057), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50057 · Whole record: https://cve.day/CVE-2022-50057.json · Rebuilt by cve.day 2026-11-25T22:58:21.031Z
