# CVE-2024-57892: ocfs2: fix slab-use-after-free due to dangling pointer dqi\_priv

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-01-15 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-57892, DEBIAN-CVE-2024-57892
- Record: https://cvemate.com/vulnerability/CVE-2024-57892 · JSON: https://cvemate.com/vulnerability/CVE-2024-57892/json

## Description

```text
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]
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.22%, percentile 13.381%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 138)

- debian linux (Debian): \< 6.1.128-1 \| \< 6.12.9-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-211.231 \| \< 5.15.0-135.146 \| \< 6.8.0-60.63
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1142.152 \| \< 5.15.0-1080.87 \| \< 6.8.0-1029.31
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1080.87~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1142.152~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1029.31~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1142.153+fips1 \| \< 5.15.0-1080.87+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1147.154 \| \< 5.15.0-1084.93 \| \< 6.8.0-1029.34
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 51)

- <https://git.kernel.org/stable/c/58f9e20e2a7602e1dd649a1ec4790077c251cb6c>
- <https://git.kernel.org/stable/c/8ff6f635a08c30559ded0c110c7ce03ba7747d11>
- <https://git.kernel.org/stable/c/f44e6d70c100614c211703f065cad448050e4a0e>
- <https://git.kernel.org/stable/c/2d431192486367eee03cc28d0b53b97dafcb8e63>
- <https://git.kernel.org/stable/c/2e3d203b1adede46bbba049e497765d67865be18>
- <https://git.kernel.org/stable/c/ba950a02d8d23811aa1120affd3adedcfac6153d>
- <https://git.kernel.org/stable/c/5f3fd772d152229d94602bca243fbb658068a597>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://ubuntu.com/security/CVE-2024-57892>
- <https://www.cve.org/CVERecord?id=CVE-2024-57892>
- <https://git.kernel.org/linus/5f3fd772d152229d94602bca243fbb658068a597>
- <https://ubuntu.com/security/notices/USN-7379-1>
- <https://ubuntu.com/security/notices/USN-7380-1>
- <https://ubuntu.com/security/notices/USN-7381-1>
- <https://ubuntu.com/security/notices/USN-7382-1>
- <https://ubuntu.com/security/notices/USN-7387-1>
- <https://ubuntu.com/security/notices/USN-7388-1>
- <https://ubuntu.com/security/notices/USN-7389-1>
- <https://ubuntu.com/security/notices/USN-7390-1>

---

Data as of 2026-12-05T04:20:53.639Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
