{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-42236","published":"2024-08-07T16:15:46.530000Z","last_modified":"2026-08-04T11:19:41.077000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-787"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_end_excluding":"4.19.318"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.20","version_end_excluding":"5.4.280"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.222"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.15.163"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.16","version_end_excluding":"6.1.100"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.2","version_end_excluding":"6.6.41"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.7","version_end_excluding":"6.9.10"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00336,"percentile":0.19481,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2024-42236/","html_en":"/en/cve/CVE-2024-42236/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-42236","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-42236"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: configfs: Prevent OOB read/write in usb_string_copy()\n\nUserspace provided string 's' could trivially have the length zero. Left\nunchecked this will firstly result in an OOB read in the form\n`if (str[0 - 1] == '\\n') followed closely by an OOB write in the form\n`str[0 - 1] = '\\0'`.\n\nThere is already a validating check to catch strings that are too long.\nLet's supply an additional check for invalid strings that are too short.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba","tags":["Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}]}}