CVE-2024-26763 dm-crypt: don't modify the data when using authenticated encryption

High 7.1 Published Updated

A local attacker can corrupt encrypted data and potentially crash the system by modifying data during O_DIRECT writes in dm-crypt authenticated encryption.

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-26763?

CVE-2024-26763 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 3 Apr 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:

dm-crypt: don't modify the data when using authenticated encryption

It was said that authenticated encryption could produce invalid tag when the data that is being encrypted is modified [1]. So, fix this problem by copying the data into the clone bio first and then encrypt them inside the clone bio.

This may reduce performance, but it is needed to prevent the user from corrupting the device by writing data with O_DIRECT and modifying them at the same time.

[1] https://lore.kernel.org/all/[email protected]/T/

Weakness: CWE-787

Which versions are affected by CVE-2024-26763?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-26763?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-26763 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-26763, DEBIAN-CVE-2024-26763, GHSA-xvjp-2q6g-h878, UBUNTU-CVE-2024-26763.

Is CVE-2024-26763 in your software?

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

Check your SBOMs for free