CVE-2022-49762 ntfs: check overflow when iterating ATTR_RECORDs

Medium 5.5 Published Updated

An integer overflow in the Linux kernel NTFS driver can cause an infinite loop, leading to a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49762?

CVE-2022-49762 is a medium-severity vulnerability in Linux kernel, published on 1 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

ntfs: check overflow when iterating ATTR_RECORDs

Kernel iterates over ATTR_RECORDs in mft record in ntfs_attr_find(). Because the ATTR_RECORDs are next to each other, kernel can get the next ATTR_RECORD from end address of current ATTR_RECORD, through current ATTR_RECORD length field.

The problem is that during iteration, when kernel calculates the end address of current ATTR_RECORD, kernel may trigger an integer overflow bug in executing `a = (ATTR_RECORD*)((u8*)a + le32_to_cpu(a->length))`. This may wrap, leading to a forever iteration on 32bit systems.

This patch solves it by adding some checks on calculating end address of current ATTR_RECORD during iteration.

Which versions are affected by CVE-2022-49762?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49762?

Apply the vendor's patch.

Is CVE-2022-49762 being exploited?

There is no known exploitation of CVE-2022-49762 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49762, GHSA-5573-9qmv-c9ph, UBUNTU-CVE-2022-49762.

Is CVE-2022-49762 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free