Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-42236— usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 usb:gadget:configfs 模块用户空间提供的字符串可能长度为零,未检查这将导致在usb_string_copy中发生越界读写。

CVSS 7.8 · High EPSS 0.24% · P14

Affected Version Matrix 18

VendorProduct Version RangeStatus
Linux Linux 88af8bbe4ef781031ad3370847553f3b42ba0076< a444c3fc264119801575ab086e03fb4952f23fd0 affected
88af8bbe4ef781031ad3370847553f3b42ba0076< c95fbdde87e39e5e0ae27f28bf6711edfb985caa affected
88af8bbe4ef781031ad3370847553f3b42ba0076< e8474a10c535e6a2024c3b06e37e4a3a23beb490 affected
88af8bbe4ef781031ad3370847553f3b42ba0076< 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce affected
88af8bbe4ef781031ad3370847553f3b42ba0076< 2d16f63d8030903e5031853e79d731ee5d474e70 affected
88af8bbe4ef781031ad3370847553f3b42ba0076< d1205033e912f9332c1dbefa812e6ceb0575ce0a affected
88af8bbe4ef781031ad3370847553f3b42ba0076< eecfefad0953b2f31aaefa058f7f348ff39c4bba affected
88af8bbe4ef781031ad3370847553f3b42ba0076< 6d3c721e686ea6c59e18289b400cc95c76e927e0 affected
… +10 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-42236

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 usb:gadget:configfs 模块用户空间提供的字符串可能长度为零,未检查这将导致在usb_string_copy中发生越界读写。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 88af8bbe4ef781031ad3370847553f3b42ba0076 ~ a444c3fc264119801575ab086e03fb4952f23fd0 -
Linux Linux 3.10 -

II. Public POCs for CVE-2024-42236

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-42236

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-42236 (5)

Same Patch Batch · Linux · 2024-08-07 · 19 CVEs total

CVE-2024-42232 9.8 CRITICAL libceph: fix race between delayed_work() and ceph_monc_stop()
CVE-2024-42249 7.8 HIGH spi: don't unoptimize message in spi_async()
CVE-2024-42234 7.8 HIGH mm: fix crashes from deferred split racing folio migration
CVE-2024-42233 7.8 HIGH filemap: replace pte_offset_map() with pte_offset_map_nolock()
CVE-2024-42235 7.8 HIGH s390/mm: Add NULL pointer check to crst_table_free() base_crst_free()
CVE-2024-42250 7.8 HIGH cachefiles: add missing lock protection when polling
CVE-2024-42247 7.5 HIGH wireguard: allowedips: avoid unaligned 64-bit memory accesses
CVE-2024-42242 mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE
CVE-2024-42237 firmware: cs_dsp: Validate payload length before processing block
CVE-2024-42238 firmware: cs_dsp: Return error if block header overflows file
CVE-2024-42239 bpf: Fail bpf_timer_cancel when callback is being cancelled
CVE-2024-42240 x86/bhi: Avoid warning in #DB handler due to BHI mitigation
CVE-2024-42241 mm/shmem: disable PMD-sized page cache if needed
CVE-2024-42244 USB: serial: mos7840: fix crash on resume
CVE-2024-42243 mm/filemap: make MAX_PAGECACHE_ORDER acceptable to xarray
CVE-2024-42245 Revert "sched/fair: Make sure to try to detach at least one movable task"
CVE-2024-42246 net, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket
CVE-2024-42248 tty: serial: ma35d1: Add a NULL check for of_node

IV. Related Vulnerabilities

V. Comments for CVE-2024-42236

No comments yet


Leave a comment