CVE-2024-57892

ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv

HIGH
7.8
CVSS Score
Published: January 15, 2025 at 01:05 PM UTC
Updated: June 17, 2026 at 08:14 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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. [[email protected]: coding-style cleanups]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.6 ≤ v < 5.10.2344.6 ≤ v < 5.15.1774.6 ≤ v < 5.4.2904.6 ≤ v < 6.1.1254.6 ≤ v < 6.12.94.6 ≤ v < 6.134.6 ≤ v < 6.6.706.2 ≤ v < 6.6.706.7 ≤ v < 6.12.96.13 rc16.13 rc26.13 rc36.13 rc46.13 rc58f9e8f5fcc059a3cba87ce837c88316797ef3645
Vendor states this is fixed in 2d431192486367eee03cc28d0b53b97dafcb8e63 (fixed)
Vendor states this is fixed in 2e3d203b1adede46bbba049e497765d67865be18 (fixed)
Vendor states this is fixed in 58f9e20e2a7602e1dd649a1ec4790077c251cb6c (fixed)
Vendor states this is fixed in 5f3fd772d152229d94602bca243fbb658068a597 (fixed)
Vendor states this is fixed in 8ff6f635a08c30559ded0c110c7ce03ba7747d11 (fixed)
Vendor states this is fixed in ba950a02d8d23811aa1120affd3adedcfac6153d (fixed)
Vendor states this is fixed in f44e6d70c100614c211703f065cad448050e4a0e (fixed)
Vendor states this is fixed in 4.6 (unaffected)
Vendor states this is fixed in 5.10.234 (unaffected)
Vendor states this is fixed in 5.15.177 (unaffected)
Vendor states this is fixed in 5.4.290 (unaffected)
Vendor states this is fixed in 6.1.125 (unaffected)
Vendor states this is fixed in 6.12.9 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.70 (unaffected)

References (9)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card