U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2024-42236 Detail

Description

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70 Patch 
https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0 Patch 
https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce Patch 
https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0 Patch 
https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa Patch 
https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a Patch 
https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490 Patch 
https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba Patch 

Weakness Enumeration

CWE-ID CWE Name Source
CWE-787 Out-of-bounds Write cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

2 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2024-42236
NVD Published Date:
08/07/2024
NVD Last Modified:
08/08/2024
Source:
kernel.org