CVE-2024-57875 block: RCU protect disk->conv_zones_bitmap
A use-after-free vulnerability in the Linux kernel block layer allows attackers to cause denial of service or execute arbitrary code via disk revalidation.
- 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-57875?
CVE-2024-57875 is a high-severity use after free vulnerability in Linux kernel, published on 11 Jan 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:
block: RCU protect disk->conv_zones_bitmap
Ensure that a disk revalidation changing the conventional zones bitmap of a disk does not cause invalid memory references when using the disk_zone_is_conv() helper by RCU protecting the disk->conv_zones_bitmap pointer.
disk_zone_is_conv() is modified to operate under the RCU read lock and the function disk_set_conv_zones_bitmap() is added to update a disk conv_zones_bitmap pointer using rcu_replace_pointer() with the disk zone_wplugs_lock spinlock held.
disk_free_zone_resources() is modified to call disk_update_zone_resources() with a NULL bitmap pointer to free the disk conv_zones_bitmap. disk_set_conv_zones_bitmap() is also used in disk_update_zone_resources() to set the new (revalidated) bitmap and free the old one.
Weakness: CWE-416
Which versions are affected by CVE-2024-57875?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-57875?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-57875 being exploited?
There is no known exploitation of CVE-2024-57875 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-62633, AZL-68570, BELL-CVE-2024-57875, DEBIAN-CVE-2024-57875, GHSA-xr89-c9w4-g997, ROOT-OS-DEBIAN-11-CVE-2024-57875 and 4 more.