Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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: [] ntfs_init_fs_context+0x22/0x1c0 [] alloc_fs_context+0x217/0x430 [] path_mount+0x704/0x1080 [] __x64_sys_mount+0x18c/0x1d0 [] do_syscall_64+0x34/0xb0 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd This patch fixes this issue by freeing mount options on error path of ntfs_fill_super().

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.87, 6.0.17, 6.1.3
CVEs
CVE-2022-50451
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 05:25 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 1 Oct 2025, 11:45 UTC

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: [] ntfs_init_fs_context+0x22/0x1c0 [] alloc_fs_context+0x217/0x430 [] path_mount+0x704/0x1080 [] __x64_sys_mount+0x18c/0x1d0 [] do_syscall_64+0x34/0xb0 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd This patch fixes this issue by freeing mount options on error path of ntfs_fill_super().

osv:CVE-2022-50451

Kernel

Fixed versions: 5.15.87, 6.0.17, 6.1.3

Complete source record
{
  "id": "dda6628f141a23fdcc961b2412e5a4a45bd406720d37e2c29f04587d2eb1e16c",
  "url": "https://osv.dev/vulnerability/CVE-2022-50451",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "fs/ntfs3: Fix memory leak on ntfs_fill_super() error path",
    "summary": "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: [] ntfs_init_fs_context+0x22/0x1c0 [] alloc_fs_context+0x217/0x430 [] path_mount+0x704/0x1080 [] __x64_sys_mount+0x18c/0x1d0 [] do_syscall_64+0x34/0xb0 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd This patch fixes this issue by freeing mount options on error path of ntfs_fill_super().",
    "evidence": "osv:CVE-2022-50451",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.87",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.17",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50451",
      "aliases": [
        "CVE-2022-50451"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "78e4aebc35b3e4494a96ffe7534db7201aba869f"
                },
                {
                  "fixed": "2dd9ccfb06bcdad30ad92d96c3affa38a458679e"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cd39981fb92adf0cc736112f87e3e61602baa415"
                },
                {
                  "fixed": "ff0df7d9cdbb12878155168b5234e99029e5377f"
                },
                {
                  "fixed": "2600c80ea7b39f987c3fa89287e73d62e322bbbd"
                },
                {
                  "fixed": "51e76a232f8c037f1d9e9922edc25b003d5f3414"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.15.63"
                },
                {
                  "fixed": "5.15.87"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.19.4"
                },
                {
                  "fixed": "5.20"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0fd64f062c8d1793d8d6d39fa3a4468e39880f90"
                }
              ]
            }
          ],
          "versions": [
            "v5.15.86",
            "v5.15.85",
            "v5.15.84",
            "v5.15.83",
            "v5.15.82",
            "v5.15.81",
            "v5.15.80",
            "v5.15.79",
            "v5.15.78",
            "v5.15.77",
            "v5.15.76",
            "v5.15.75",
            "v5.15.74",
            "v5.15.73",
            "v5.15.72",
            "v5.15.71",
            "v5.15.70",
            "v5.15.69",
            "v5.15.68",
            "v5.15.67",
            "v5.15.66",
            "v5.15.65",
            "v5.15.64",
            "v5.15.63",
            "v5.19.17",
            "v5.19.16",
            "v5.19.15",
            "v5.19.14",
            "v5.19.13",
            "v5.19.12",
            "v5.19.11",
            "v5.19.10",
            "v5.19.9",
            "v5.19.8",
            "v5.19.7",
            "v5.19.6",
            "v5.19.5",
            "v5.19.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50451.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.15.87"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.17"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.0.0"
                },
                {
                  "fixed": "6.1.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50451.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.073357367Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2600c80ea7b39f987c3fa89287e73d62e322bbbd",
        "https://git.kernel.org/stable/c/2dd9ccfb06bcdad30ad92d96c3affa38a458679e",
        "https://git.kernel.org/stable/c/51e76a232f8c037f1d9e9922edc25b003d5f3414",
        "https://git.kernel.org/stable/c/ff0df7d9cdbb12878155168b5234e99029e5377f",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50451.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50451",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50451.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50451",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 510690,
  "published_at": "2025-10-01T11:45:24.652+00:00"
}