CVE-2024-26689
"CEPH Linux Kernel Use-After-Free Vulnerability"
Description
In the Linux kernel, the following vulnerability has been resolved: ceph: prevent use-after-free in encode_cap_msg() In fs/ceph/caps.c, in encode_cap_msg(), "use after free" error was caught by KASAN at this line - 'ceph_buffer_get(arg->xattr_buf);'. This implies before the refcount could be increment here, it was freed. In same file, in "handle_cap_grant()" refcount is decremented by this line - 'ceph_buffer_put(ci->i_xattrs.blob);'. It appears that a race occurred and resource was freed by the latter line before the former line could increment it. encode_cap_msg() is called by __send_cap() and __send_cap() is called by ceph_check_caps() after calling __prep_cap(). __prep_cap() is where arg->xattr_buf is assigned to ci->i_xattrs.blob. This is the spot where the refcount must be increased to prevent "use after free" error.
INFO
Published Date :
April 3, 2024, 3:15 p.m.
Last Modified :
Jan. 14, 2025, 5:26 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
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-26689
.
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-26689
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-26689
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]
Jan. 14, 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:debian:debian_linux:10.0:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.10.210 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.149 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.79 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.18 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.6 *cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* Changed Reference Type https://git.kernel.org/stable/c/70e329b440762390258a6fe8c0de93c9fdd56c77 No Types Assigned https://git.kernel.org/stable/c/70e329b440762390258a6fe8c0de93c9fdd56c77 Patch Changed Reference Type https://git.kernel.org/stable/c/70e329b440762390258a6fe8c0de93c9fdd56c77 No Types Assigned https://git.kernel.org/stable/c/70e329b440762390258a6fe8c0de93c9fdd56c77 Patch Changed Reference Type https://git.kernel.org/stable/c/7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc No Types Assigned https://git.kernel.org/stable/c/7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc Patch Changed Reference Type https://git.kernel.org/stable/c/7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc No Types Assigned https://git.kernel.org/stable/c/7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc Patch Changed Reference Type https://git.kernel.org/stable/c/8180d0c27b93a6eb60da1b08ea079e3926328214 No Types Assigned https://git.kernel.org/stable/c/8180d0c27b93a6eb60da1b08ea079e3926328214 Patch Changed Reference Type https://git.kernel.org/stable/c/8180d0c27b93a6eb60da1b08ea079e3926328214 No Types Assigned https://git.kernel.org/stable/c/8180d0c27b93a6eb60da1b08ea079e3926328214 Patch Changed Reference Type https://git.kernel.org/stable/c/ae20db45e482303a20e56f2db667a9d9c54ac7e7 No Types Assigned https://git.kernel.org/stable/c/ae20db45e482303a20e56f2db667a9d9c54ac7e7 Patch Changed Reference Type https://git.kernel.org/stable/c/ae20db45e482303a20e56f2db667a9d9c54ac7e7 No Types Assigned https://git.kernel.org/stable/c/ae20db45e482303a20e56f2db667a9d9c54ac7e7 Patch Changed Reference Type https://git.kernel.org/stable/c/cda4672da1c26835dcbd7aec2bfed954eda9b5ef No Types Assigned https://git.kernel.org/stable/c/cda4672da1c26835dcbd7aec2bfed954eda9b5ef Patch Changed Reference Type https://git.kernel.org/stable/c/cda4672da1c26835dcbd7aec2bfed954eda9b5ef No Types Assigned https://git.kernel.org/stable/c/cda4672da1c26835dcbd7aec2bfed954eda9b5ef Patch Changed Reference Type https://git.kernel.org/stable/c/f3f98d7d84b31828004545e29fd7262b9f444139 No Types Assigned https://git.kernel.org/stable/c/f3f98d7d84b31828004545e29fd7262b9f444139 Patch Changed Reference Type https://git.kernel.org/stable/c/f3f98d7d84b31828004545e29fd7262b9f444139 No Types Assigned https://git.kernel.org/stable/c/f3f98d7d84b31828004545e29fd7262b9f444139 Patch Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Mailing List -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/70e329b440762390258a6fe8c0de93c9fdd56c77 Added Reference https://git.kernel.org/stable/c/7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc Added Reference https://git.kernel.org/stable/c/8180d0c27b93a6eb60da1b08ea079e3926328214 Added Reference https://git.kernel.org/stable/c/ae20db45e482303a20e56f2db667a9d9c54ac7e7 Added Reference https://git.kernel.org/stable/c/cda4672da1c26835dcbd7aec2bfed954eda9b5ef Added Reference https://git.kernel.org/stable/c/f3f98d7d84b31828004545e29fd7262b9f444139 Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 05, 2024
Action Type Old Value New Value Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 25, 2024
Action Type Old Value New Value Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html [No types assigned] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2024
Action Type Old Value New Value -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 14, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 03, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: ceph: prevent use-after-free in encode_cap_msg() In fs/ceph/caps.c, in encode_cap_msg(), "use after free" error was caught by KASAN at this line - 'ceph_buffer_get(arg->xattr_buf);'. This implies before the refcount could be increment here, it was freed. In same file, in "handle_cap_grant()" refcount is decremented by this line - 'ceph_buffer_put(ci->i_xattrs.blob);'. It appears that a race occurred and resource was freed by the latter line before the former line could increment it. encode_cap_msg() is called by __send_cap() and __send_cap() is called by ceph_check_caps() after calling __prep_cap(). __prep_cap() is where arg->xattr_buf is assigned to ci->i_xattrs.blob. This is the spot where the refcount must be increased to prevent "use after free" error. Added Reference kernel.org https://git.kernel.org/stable/c/8180d0c27b93a6eb60da1b08ea079e3926328214 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/70e329b440762390258a6fe8c0de93c9fdd56c77 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f3f98d7d84b31828004545e29fd7262b9f444139 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ae20db45e482303a20e56f2db667a9d9c54ac7e7 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/7958c1bf5b03c6f1f58e724dbdec93f8f60b96fc [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/cda4672da1c26835dcbd7aec2bfed954eda9b5ef [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-26689
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-26689
weaknesses.