# CVE-2022-50451: fs/ntfs3: Fix memory leak on ntfs_fill_super() error path

- 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.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-10-01T11:45:24.652Z
- Modified: 2026-08-15T13:17:38.067Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

fs/ntfs3: Fix memory leak on ntfs_fill_super() error path

syzbot reported kmemleak as below:

BUG: memory leak
unreferenced object 0xffff8880122f1540 (size 32):
  comm "a.out", pid 6664, jiffies 4294939771 (age 25.500s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 ed ff ed ff 00 00 00 00  ................
  backtrace:
    [<ffffffff81b16052>] ntfs_init_fs_context+0x22/0x1c0
    [<ffffffff8164aaa7>] alloc_fs_context+0x217/0x430
    [<ffffffff81626dd4>] path_mount+0x704/0x1080
    [<ffffffff81627e7c>] __x64_sys_mount+0x18c/0x1d0
    [<ffffffff84593e14>] do_syscall_64+0x34/0xb0
    [<ffffffff84600087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

This patch fixes this issue by freeing mount options on error path of
ntfs_fill_super().

(As written by CVE List.)

## Affected

- Linux Linux: from 78e4aebc35b3e4494a96ffe7534db7201aba869f before 2dd9ccfb06bcdad30ad92d96c3affa38a458679e; from cd39981fb92adf0cc736112f87e3e61602baa415 before ff0df7d9cdbb12878155168b5234e99029e5377f; from cd39981fb92adf0cc736112f87e3e61602baa415 before 2600c80ea7b39f987c3fa89287e73d62e322bbbd; from cd39981fb92adf0cc736112f87e3e61602baa415 before 51e76a232f8c037f1d9e9922edc25b003d5f3414; 0fd64f062c8d1793d8d6d39fa3a4468e39880f90; from 5.15.63 before 5.15.87; from 5.19.4 before 5.20; 6.0 (not affected: before 6.0; from 5.15.87 up to 5.15.*; from 6.0.17 up to 6.0.*; from 6.1.3 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.15 before 5.15.87; from 5.16 before 6.0.17; from 6.1 before 6.1.3

## References

- <https://git.kernel.org/stable/c/2dd9ccfb06bcdad30ad92d96c3affa38a458679e> (patch)
- <https://git.kernel.org/stable/c/ff0df7d9cdbb12878155168b5234e99029e5377f> (patch)
- <https://git.kernel.org/stable/c/2600c80ea7b39f987c3fa89287e73d62e322bbbd> (patch)
- <https://git.kernel.org/stable/c/51e76a232f8c037f1d9e9922edc25b003d5f3414> (patch)

## Sources

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

---

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