CVE-2024-42231
Last modified
CVE-2024-42231 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix calc_available_free_space() for zoned mode calc_available_free_space() returns the total size of metadata (or system) block groups, which can be allocated from unallocated disk space. The logic is wrong on zoned mode in two places. First, the calculation of data_chunk_size is wrong. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix calc_available_free_space() for zoned mode calc_available_free_space() returns the total size of metadata (or system) block groups, which can be allocated from unallocated disk space. The logic is wrong on zoned mode in two places. First, the calculation of data_chunk_size is wrong. We always allocate one zone as one chunk, and no partial allocation of a zone. So, we should use zone_size (= data_sinfo->chunk_size) as it is. Second, the result "avail" may not be zone aligned. Since we always allocate one zone as one chunk on zoned mode, returning non-zone size aligned bytes will result in less pressure on the async metadata reclaim process. This is serious for the nearly full state with a large zone size device. Allowing over-commit too much will result in less async reclaim work and end up in ENOSPC. We can align down to the zone size to avoid that.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.7, < 6.9.9 | — |
| Linux | Linux Kernel | 6.10 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-42231?
How severe is CVE-2024-42231?
How do I fix CVE-2024-42231?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-42226Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-42227In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-42228In the Linux kernel, the following vulnerability has been re…7
- CVE-2024-42229In the Linux kernel, the following vulnerability has been re…4.1
- CVE-2024-4223The Tutor LMS plugin for WordPress is vulnerable to unauthor…9.8
- CVE-2024-42230In the Linux kernel, the following vulnerability has been re…4.4
- CVE-2024-42232In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42233In the Linux kernel, the following vulnerability has been re…3.3
- CVE-2024-42234In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42235In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42236In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-42237In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-42231?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
