CVE-2022-49166

ntfs: add sanity check on allocation size

State
Published
Severity
Not scored
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

Description

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

ntfs: add sanity check on allocation size

ntfs_read_inode_mount invokes ntfs_malloc_nofs with zero allocation size. It triggers one BUG in the __ntfs_malloc function.

Fix this by adding sanity check on ni->attr_list_size.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before bd8d7daa0e53b184a2f3c6e0d47330780d0a0650Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 21d490232f323ed4053eb9924615e6fea291f154Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 07793d2e55563124108762f4e5f811db92ffe02fAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before fe41ad8be036a3de3e4bdde709551aeb4de2fe7dAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before b230f2d9441a34c7f483d39ab78519bcf73cc2e0Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 24ab2d4ef52c2dbb62a60844b87fc8872383407aAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 115fae2c1566eacc5ad2055f72521354612e72c3Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c641087d381a08363e5f14179bc6b0a23eca7c47Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 714fbf2647b1a33d914edd695d4da92029c7e7c0Affected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 4.9.311 through 4.9.*Not affected
  • 4.14.276 through 4.14.*Not affected
  • 4.19.238 through 4.19.*Not affected
  • 5.4.189 through 5.4.*Not affected
  • 5.10.110 through 5.10.*Not affected
  • 5.15.33 through 5.15.*Not affected
  • 5.16.19 through 5.16.*Not affected
  • 5.17.2 through 5.17.*Not affected
  • 5.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.