CVE-2024-57875 Details
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.
A vulnerability in the Linux kernel's handling of disk zone management has been addressed. The issue arose from improper management of the conventional zones bitmap during disk revalidation, which could lead to invalid memory references. This vulnerability has been mitigated by implementing RCU protection for the disk's conventional zones bitmap pointer. The helper function 'disk_zone_is_conv()' has been updated to operate under the RCU read lock, and a new function, 'disk_set_conv_zones_bitmap()', has been introduced to safely update the conventional zones bitmap pointer using 'rcu_replace_pointer()' while holding the 'disk_zone_wplugs_lock' spinlock. Additionally, 'disk_free_zone_resources()' has been modified to call 'disk_update_zone_resources()' with a NULL bitmap pointer to release the conventional zones bitmap. The 'disk_set_conv_zones_bitmap()' function is also utilized in 'disk_update_zone_resources()' to apply the new (revalidated) bitmap and free the previous one.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/493326c4f10cc71a42c27fdc97ce112182ee4cbc | kernel.org | Patch |
| https://git.kernel.org/stable/c/d7cb6d7414ea1b33536fa6d11805cb8dceec1f97 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 6.12.5 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 17, 2025 | Initial Analysis | [email protected] |
| Jan 11, 2025 | New CVE Received | kernel.org |