CVE-2022-49166

ntfs: add sanity check on allocation size

No CVSS score yet EPSS 0.27%

Published 26 Feb 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49166

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-49166 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:

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.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before bd8d7daa0e53b184a2f3c6e0d47330780d0a0650
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 21d490232f323ed4053eb9924615e6fea291f154
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 07793d2e55563124108762f4e5f811db92ffe02f
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before fe41ad8be036a3de3e4bdde709551aeb4de2fe7d
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before b230f2d9441a34c7f483d39ab78519bcf73cc2e0
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 24ab2d4ef52c2dbb62a60844b87fc8872383407a
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 115fae2c1566eacc5ad2055f72521354612e72c3
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c641087d381a08363e5f14179bc6b0a23eca7c47
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 714fbf2647b1a33d914edd695d4da92029c7e7c0
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 4.9.311 up to and including 4.9.*
unaffected from 4.14.276 up to and including 4.14.*
unaffected from 4.19.238 up to and including 4.19.*
unaffected from 5.4.189 up to and including 5.4.*
unaffected from 5.10.110 up to and including 5.10.*
unaffected from 5.15.33 up to and including 5.15.*
unaffected from 5.16.19 up to and including 5.16.*
unaffected from 5.17.2 up to and including 5.17.*
unaffected 5.18 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-49166 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49166

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-49166
trivy image --scanners vuln IMAGE | grep CVE-2022-49166

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-49166 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.