CVE-2024-36931
Linux kernel s390 cio Use-After-Free Buffer Overflow
Description
In the Linux kernel, the following vulnerability has been resolved: s390/cio: Ensure the copied buf is NUL terminated Currently, we allocate a lbuf-sized kernel buffer and copy lbuf from userspace to that buffer. Later, we use scanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using scanf. Fix this issue by using memdup_user_nul instead.
INFO
Published Date :
May 30, 2024, 4:15 p.m.
Last Modified :
Jan. 15, 2025, 6:39 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.2
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-36931
.
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-36931
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-36931
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. 15, 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:N/A:H Added CWE NIST CWE-125 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.13 up to (excluding) 5.15.159 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.91 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.31 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.10 *cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:* Changed Reference Type https://git.kernel.org/stable/c/06759ebaf75c19c87b2453a5e130e9e61e9b5d65 No Types Assigned https://git.kernel.org/stable/c/06759ebaf75c19c87b2453a5e130e9e61e9b5d65 Patch Changed Reference Type https://git.kernel.org/stable/c/06759ebaf75c19c87b2453a5e130e9e61e9b5d65 No Types Assigned https://git.kernel.org/stable/c/06759ebaf75c19c87b2453a5e130e9e61e9b5d65 Patch Changed Reference Type https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c No Types Assigned https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c Patch Changed Reference Type https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c No Types Assigned https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c Patch Changed Reference Type https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2 No Types Assigned https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2 Patch Changed Reference Type https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2 No Types Assigned https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2 Patch Changed Reference Type https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5 No Types Assigned https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5 Patch Changed Reference Type https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5 No Types Assigned https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5 Patch Changed Reference Type https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784 No Types Assigned https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784 Patch Changed Reference Type https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784 No Types Assigned https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784 Patch -
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/06759ebaf75c19c87b2453a5e130e9e61e9b5d65 Added Reference https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c Added Reference https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2 Added Reference https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5 Added Reference https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 30, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: s390/cio: Ensure the copied buf is NUL terminated Currently, we allocate a lbuf-sized kernel buffer and copy lbuf from userspace to that buffer. Later, we use scanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using scanf. Fix this issue by using memdup_user_nul instead. Added Reference kernel.org https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/06759ebaf75c19c87b2453a5e130e9e61e9b5d65 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784 [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-36931
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-36931
weaknesses.