Skip to main content
Network Thinking Solutions Logo

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.

All CVEs
CVE-2024-42236Published 8/7/2024

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.

Vendor advisory
CVSS7.8High

Overview

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.

Published
8/7/2024
Last modified
8/4/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
< 4.19.318

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.280

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.222

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.163

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.100

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.41

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.9.10

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < a444c3fc264119801575ab086e03fb4952f23fd0

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < c95fbdde87e39e5e0ae27f28bf6711edfb985caa

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < e8474a10c535e6a2024c3b06e37e4a3a23beb490

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < 2d16f63d8030903e5031853e79d731ee5d474e70

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < d1205033e912f9332c1dbefa812e6ceb0575ce0a

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < eecfefad0953b2f31aaefa058f7f348ff39c4bba

Verify advisory

Source
Linux
Linux
≥ 88af8bbe4ef781031ad3370847553f3b42ba0076, < 6d3c721e686ea6c59e18289b400cc95c76e927e0

Verify advisory

Source
Linux
Linux
3.10

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.