CVE-2024-50273
Linux Btrfs Poison Pointer Dereference Vulnerability
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: reinitialize delayed ref list after deleting it from the list At insert_delayed_ref() if we need to update the action of an existing ref to BTRFS_DROP_DELAYED_REF, we delete the ref from its ref head's ref_add_list using list_del(), which leaves the ref's add_list member not reinitialized, as list_del() sets the next and prev members of the list to LIST_POISON1 and LIST_POISON2, respectively. If later we end up calling drop_delayed_ref() against the ref, which can happen during merging or when destroying delayed refs due to a transaction abort, we can trigger a crash since at drop_delayed_ref() we call list_empty() against the ref's add_list, which returns false since the list was not reinitialized after the list_del() and as a consequence we call list_del() again at drop_delayed_ref(). This results in an invalid list access since the next and prev members are set to poison pointers, resulting in a splat if CONFIG_LIST_HARDENED and CONFIG_DEBUG_LIST are set or invalid poison pointer dereferences otherwise. So fix this by deleting from the list with list_del_init() instead.
INFO
Published Date :
Nov. 19, 2024, 2:16 a.m.
Last Modified :
Nov. 27, 2024, 3:58 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
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-50273
.
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).
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-50273
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-50273
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.
-
Initial Analysis by [email protected]
Nov. 27, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NIST CWE-908 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 up to (excluding) 4.19.324 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.286 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.230 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.172 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.117 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.61 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.11.8 *cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc6:*:*:*:*:*:* Changed Reference Type https://git.kernel.org/stable/c/2cb1a73d1d44a1c11b0ee5eeced765dd80ec48e6 No Types Assigned https://git.kernel.org/stable/c/2cb1a73d1d44a1c11b0ee5eeced765dd80ec48e6 Patch Changed Reference Type https://git.kernel.org/stable/c/2fd0948a483e9cb2d669c7199bc620a21c97673d No Types Assigned https://git.kernel.org/stable/c/2fd0948a483e9cb2d669c7199bc620a21c97673d Patch Changed Reference Type https://git.kernel.org/stable/c/50a3933760b427759afdd23156a7280a19357a92 No Types Assigned https://git.kernel.org/stable/c/50a3933760b427759afdd23156a7280a19357a92 Patch Changed Reference Type https://git.kernel.org/stable/c/93c5b8decc0ef39ba84f4211d2db6da0a4aefbeb No Types Assigned https://git.kernel.org/stable/c/93c5b8decc0ef39ba84f4211d2db6da0a4aefbeb Patch Changed Reference Type https://git.kernel.org/stable/c/bf0b0c6d159767c0d1c21f793950d78486690ee0 No Types Assigned https://git.kernel.org/stable/c/bf0b0c6d159767c0d1c21f793950d78486690ee0 Patch Changed Reference Type https://git.kernel.org/stable/c/c24fa427fc0ae827b2a3a07f13738cbf82c3f851 No Types Assigned https://git.kernel.org/stable/c/c24fa427fc0ae827b2a3a07f13738cbf82c3f851 Patch Changed Reference Type https://git.kernel.org/stable/c/c9a75ec45f1111ef530ab186c2a7684d0a0c9245 No Types Assigned https://git.kernel.org/stable/c/c9a75ec45f1111ef530ab186c2a7684d0a0c9245 Patch Changed Reference Type https://git.kernel.org/stable/c/f04be6d68f715c1473a8422fc0460f57b5e99931 No Types Assigned https://git.kernel.org/stable/c/f04be6d68f715c1473a8422fc0460f57b5e99931 Patch -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 19, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: btrfs: reinitialize delayed ref list after deleting it from the list At insert_delayed_ref() if we need to update the action of an existing ref to BTRFS_DROP_DELAYED_REF, we delete the ref from its ref head's ref_add_list using list_del(), which leaves the ref's add_list member not reinitialized, as list_del() sets the next and prev members of the list to LIST_POISON1 and LIST_POISON2, respectively. If later we end up calling drop_delayed_ref() against the ref, which can happen during merging or when destroying delayed refs due to a transaction abort, we can trigger a crash since at drop_delayed_ref() we call list_empty() against the ref's add_list, which returns false since the list was not reinitialized after the list_del() and as a consequence we call list_del() again at drop_delayed_ref(). This results in an invalid list access since the next and prev members are set to poison pointers, resulting in a splat if CONFIG_LIST_HARDENED and CONFIG_DEBUG_LIST are set or invalid poison pointer dereferences otherwise. So fix this by deleting from the list with list_del_init() instead. Added Reference kernel.org https://git.kernel.org/stable/c/2fd0948a483e9cb2d669c7199bc620a21c97673d [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/93c5b8decc0ef39ba84f4211d2db6da0a4aefbeb [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/bf0b0c6d159767c0d1c21f793950d78486690ee0 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/c24fa427fc0ae827b2a3a07f13738cbf82c3f851 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/2cb1a73d1d44a1c11b0ee5eeced765dd80ec48e6 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f04be6d68f715c1473a8422fc0460f57b5e99931 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/50a3933760b427759afdd23156a7280a19357a92 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/c9a75ec45f1111ef530ab186c2a7684d0a0c9245 [No types assigned]
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-50273
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-50273
weaknesses.