CVE-2022-50451

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

MEDIUM
5.5
CVSS Score
Published: October 1, 2025 at 11:45 AM UTC
Updated: August 15, 2026 at 01:36 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.19.45.15 ≤ v < 5.15.875.15.63 ≤ v < 5.15.875.16 ≤ v < 6.0.175.19.4 ≤ v < 5.206.0 ≤ v < 6.0.176.0 ≤ v < 6.1.36.0 ≤ v < 6.26.1 ≤ v < 6.1.30fd64f062c8d1793d8d6d39fa3a4468e39880f905.15.635.19.46.078e4aebc35b3e4494a96ffe7534db7201aba869fcd39981fb92adf0cc736112f87e3e61602baa415
Vendor states this is fixed in 2600c80ea7b39f987c3fa89287e73d62e322bbbd (fixed)
Vendor states this is fixed in 2dd9ccfb06bcdad30ad92d96c3affa38a458679e (fixed)
Vendor states this is fixed in 51e76a232f8c037f1d9e9922edc25b003d5f3414 (fixed)
Vendor states this is fixed in ff0df7d9cdbb12878155168b5234e99029e5377f (fixed)
Vendor states this is fixed in 5.15.87 (unaffected)
Affected range stops below 5.20, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.0 (unaffected)
Vendor states this is fixed in 6.0.17 (unaffected)
Vendor states this is fixed in 6.1.3 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card