Vulnerability Details : CVE-2024-42236
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()
Userspace provided string 's' could trivially have the length zero. Left
unchecked this will firstly result in an OOB read in the form
`if (str[0 - 1] == '\n') followed closely by an OOB write in the form
`str[0 - 1] = '\0'`.
There is already a validating check to catch strings that are too long.
Let's supply an additional check for invalid strings that are too short.
Products affected by CVE-2024-42236
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2024-42236
0.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 16 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2024-42236
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
1.8
|
3.6
|
NIST | 2024-08-08 |
CWE ids for CVE-2024-42236
-
The product writes data past the end, or before the beginning, of the intended buffer.Assigned by: nvd@nist.gov (Primary)
References for CVE-2024-42236
-
https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
-
https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
-
https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
-
https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
-
https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
-
https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
-
https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
-
https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() - kernel/git/stable/linux.git - Linux kernel stable treePatch
Jump to