CVE-2024-57892
Linux Kernel Ocfs2 Slab-Use-After-Free Vulnerability
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]
INFO
Published Date :
Jan. 15, 2025, 1:15 p.m.
Last Modified :
Feb. 13, 2025, 2:16 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2024-57892 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-57892
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
DSA and DLA for Debian last 14 days
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-57892
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-57892
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Feb. 13, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-416 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Feb. 02, 2025
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/58f9e20e2a7602e1dd649a1ec4790077c251cb6c Added Reference https://git.kernel.org/stable/c/8ff6f635a08c30559ded0c110c7ce03ba7747d11 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jan. 23, 2025
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/f44e6d70c100614c211703f065cad448050e4a0e -
Initial Analysis by [email protected]
Jan. 21, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE NIST CWE-416 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.6 up to (excluding) 6.1.125 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.70 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.9 *cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:* Changed Reference Type https://git.kernel.org/stable/c/2d431192486367eee03cc28d0b53b97dafcb8e63 No Types Assigned https://git.kernel.org/stable/c/2d431192486367eee03cc28d0b53b97dafcb8e63 Patch Changed Reference Type https://git.kernel.org/stable/c/2e3d203b1adede46bbba049e497765d67865be18 No Types Assigned https://git.kernel.org/stable/c/2e3d203b1adede46bbba049e497765d67865be18 Patch Changed Reference Type https://git.kernel.org/stable/c/5f3fd772d152229d94602bca243fbb658068a597 No Types Assigned https://git.kernel.org/stable/c/5f3fd772d152229d94602bca243fbb658068a597 Patch Changed Reference Type https://git.kernel.org/stable/c/ba950a02d8d23811aa1120affd3adedcfac6153d No Types Assigned https://git.kernel.org/stable/c/ba950a02d8d23811aa1120affd3adedcfac6153d Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jan. 17, 2025
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/2d431192486367eee03cc28d0b53b97dafcb8e63 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jan. 15, 2025
Action Type Old Value New Value Added 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] Added Reference https://git.kernel.org/stable/c/2e3d203b1adede46bbba049e497765d67865be18 Added Reference https://git.kernel.org/stable/c/5f3fd772d152229d94602bca243fbb658068a597 Added Reference https://git.kernel.org/stable/c/ba950a02d8d23811aa1120affd3adedcfac6153d
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-57892
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-57892
weaknesses.