# CVE-2022-50451: fs/ntfs3: Fix memory leak on ntfs\_fill\_super() error path

> 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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-01T11:45:24.652Z
- **Modified:** 2026-08-15T13:17:38.067Z

## Who should check

- Anyone running Linux \>= 78e4aebc35b3e4494a96ffe7534db7201aba869f, \< 2dd9ccfb06bcdad30ad92d96c3affa38a458679e; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< ff0df7d9cdbb12878155168b5234e99029e5377f; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< 2600c80ea7b39f987c3fa89287e73d62e322bbbd; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< 51e76a232f8c037f1d9e9922edc25b003d5f3414; 0fd64f062c8d1793d8d6d39fa3a4468e39880f90; \>= 5.15.63, \< 5.15.87; \>= 5.19.4, \< 5.20
- Anyone running Linux 6.0

## 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().

## Affected and fixed versions

- Linux: \>= 78e4aebc35b3e4494a96ffe7534db7201aba869f, \< 2dd9ccfb06bcdad30ad92d96c3affa38a458679e; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< ff0df7d9cdbb12878155168b5234e99029e5377f; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< 2600c80ea7b39f987c3fa89287e73d62e322bbbd; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< 51e76a232f8c037f1d9e9922edc25b003d5f3414; 0fd64f062c8d1793d8d6d39fa3a4468e39880f90; \>= 5.15.63, \< 5.15.87; \>= 5.19.4, \< 5.20 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50451.md
Affected: Linux >= 78e4aebc35b3e4494a96ffe7534db7201aba869f, < 2dd9ccfb06bcdad30ad92d96c3affa38a458679e; >= cd39981fb92adf0cc736112f87e3e61602baa415, < ff0df7d9cdbb12878155168b5234e99029e5377f; >= cd39981fb92adf0cc736112f87e3e61602baa415, < 2600c80ea7b39f987c3fa89287e73d62e322bbbd; >= cd39981fb92adf0cc736112…
Fixed in: Linux 2dd9ccfb06bcdad30ad92d96c3affa38a458679e, Linux 2600c80ea7b39f987c3fa89287e73d62e322bbbd, Linux 51e76a232f8c037f1d9e9922edc25b003d5f3414, Linux 5.15.87, Linux 5.20

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

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

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

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

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

Linux \>= 78e4aebc35b3e4494a96ffe7534db7201aba869f, \< 2dd9ccfb06bcdad30ad92d96c3affa38a458679e; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< ff0df7d9cdbb12878155168b5234e99029e5377f; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< 2600c80ea7b39f987c3fa89287e73d62e322bbbd; \>= cd39981fb92adf0cc736112f87e3e61602baa415, \< 51e76a232f8c037f1d9e9922edc25b003d5f3414; 0fd64f062c8d1793d8d6d39fa3a4468e39880f90; \>= 5.15.63, \< 5.15.87; \>= 5.19.4, \< 5.20; Linux 6.0.

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

Yes. Fixed in Linux 2dd9ccfb06bcdad30ad92d96c3affa38a458679e, Linux 2600c80ea7b39f987c3fa89287e73d62e322bbbd, Linux 51e76a232f8c037f1d9e9922edc25b003d5f3414, Linux 5.15.87, Linux 5.20. Upgrade Linux to 5.20 or later.

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

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/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>

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

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