CVE-2022-50451

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

No CVSS score yet EPSS 0.17%

Published 1 Oct 2025 Updated 15 Aug 2026 CNA: Linux

Check your servers for CVE-2022-50451

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50451 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.02% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 78e4aebc35b3e4494a96ffe7534db7201aba869f, before 2dd9ccfb06bcdad30ad92d96c3affa38a458679e
affected from cd39981fb92adf0cc736112f87e3e61602baa415, before ff0df7d9cdbb12878155168b5234e99029e5377f
affected from cd39981fb92adf0cc736112f87e3e61602baa415, before 2600c80ea7b39f987c3fa89287e73d62e322bbbd
affected from cd39981fb92adf0cc736112f87e3e61602baa415, before 51e76a232f8c037f1d9e9922edc25b003d5f3414
affected 0fd64f062c8d1793d8d6d39fa3a4468e39880f90
affected from 5.15.63, before 5.15.87
affected from 5.19.4, before 5.20
Other versions: unaffected
Linux
affected 6.0
unaffected before 6.0
unaffected from 5.15.87 up to and including 5.15.*
unaffected from 6.0.17 up to and including 6.0.*
unaffected from 6.1.3 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50451 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50451

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50451
trivy image --scanners vuln IMAGE | grep CVE-2022-50451

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50451 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.