CVE-2024-57892
Last modified
CVE-2024-57892 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv When mounting ocfs2 and then remounting it as read-only, a slab-use-after-free occurs after the user uses a syscall to quota_getnextquota. Specifically, sb_dqinfo(sb, type)->dqi_priv is the dangling pointer. During the remounting process, the pointer dqi_priv is freed but is never set as null leaving it to be accessed. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv When mounting ocfs2 and then remounting it as read-only, a slab-use-after-free occurs after the user uses a syscall to quota_getnextquota. Specifically, sb_dqinfo(sb, type)->dqi_priv is the dangling pointer. During the remounting process, the pointer dqi_priv is freed but is never set as null leaving it to be accessed. Additionally, the read-only option for remounting sets the DQUOT_SUSPENDED flag instead of setting the DQUOT_USAGE_ENABLED flags. Moreover, later in the process of getting the next quota, the function ocfs2_get_next_id is called and only checks the quota usage flags and not the quota suspended flags. To fix this, I set dqi_priv to null when it is freed after remounting with read-only and put a check for DQUOT_SUSPENDED in ocfs2_get_next_id. [akpm@linux-foundation.org: coding-style cleanups]
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.6, < 6.1.125 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.70 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.9 | — |
| Linux | Linux Kernel | 6.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-57892?
How severe is CVE-2024-57892?
How do I fix CVE-2024-57892?
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-57887In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-57888In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-57889In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-5789The Triton Lite theme for WordPress is vulnerable to Stored …5.4
- CVE-2024-57890In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-57891In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-57893In the Linux kernel, the following vulnerability has been re…6.3
- CVE-2024-57894Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-57895In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-57896In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-57897In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-57898In the Linux kernel, the following vulnerability has been re…3.3
Are you affected by CVE-2024-57892?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
