CVE-2024-42299 fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed

High 7.8 Published Updated

A logic error in the Linux kernel NTFS3 driver causes a system panic when mounting an NTFS filesystem on a system with a different page size.

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-2024-42299?

CVE-2024-42299 is a high-severity vulnerability in Linux kernel, published on 17 Aug 2024. 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:

fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed

If an NTFS file system is mounted to another system with different PAGE_SIZE from the original system, log->page_size will change in log_replay(), but log->page_{mask,bits} don't change correspondingly. This will cause a panic because "u32 bytes = log->page_size - page_off" will get a negative value in the later read_log_page().

Which versions are affected by CVE-2024-42299?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42299?

Apply the vendor's patch.

Is CVE-2024-42299 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-42299, DEBIAN-CVE-2024-42299, GHSA-pmc4-69mh-84gv, UBUNTU-CVE-2024-42299.

Is CVE-2024-42299 in your software?

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

Check your SBOMs for free