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

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

AI Predicted 7.8 Difficulty: Easy EPSS 0.23% · P14

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinux88af8bbe4ef781031ad3370847553f3b42ba0076< a444c3fc264119801575ab086e03fb4952f23fd0affected
88af8bbe4ef781031ad3370847553f3b42ba0076< c95fbdde87e39e5e0ae27f28bf6711edfb985caaaffected
88af8bbe4ef781031ad3370847553f3b42ba0076< e8474a10c535e6a2024c3b06e37e4a3a23beb490affected
88af8bbe4ef781031ad3370847553f3b42ba0076< 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ceaffected
88af8bbe4ef781031ad3370847553f3b42ba0076< 2d16f63d8030903e5031853e79d731ee5d474e70affected
88af8bbe4ef781031ad3370847553f3b42ba0076< d1205033e912f9332c1dbefa812e6ceb0575ce0aaffected
88af8bbe4ef781031ad3370847553f3b42ba0076< eecfefad0953b2f31aaefa058f7f348ff39c4bbaaffected
88af8bbe4ef781031ad3370847553f3b42ba0076< 6d3c721e686ea6c59e18289b400cc95c76e927e0affected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog 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
N/A
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 88af8bbe4ef781031ad3370847553f3b42ba0076 ~ a444c3fc264119801575ab086e03fb4952f23fd0 -
LinuxLinux 3.10 -

II. Public POCs for CVE-2024-42236

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-42236

No comments yet


Leave a comment