NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-42236
Summary

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.

Publication Date Aug. 8, 2024, 1:15 a.m.
Registration Date Aug. 8, 2024, 5 a.m.
Last Update Aug. 8, 2024, 11:54 p.m.
CVSS3.1 : MEDIUM
スコア 5.5
Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
攻撃元区分(AV) ローカル
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR)
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C) なし
完全性への影響(I) なし
可用性への影響(A)
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 6.9.10
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 6.6.41
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 6.1.100
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 5.15.163
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 5.10.222
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 5.4.280
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.19.318
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Linux の Linux Kernel における境界外書き込みに関する脆弱性
Title Linux の Linux Kernel における境界外書き込みに関する脆弱性
Summary

Linux の Linux Kernel には、境界外書き込みに関する脆弱性が存在します。

Possible impacts サービス運用妨害 (DoS) 状態にされる可能性があります。 
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date July 5, 2024, midnight
Registration Date Aug. 14, 2024, 2:41 p.m.
Last Update Sept. 2, 2025, 11:15 a.m.
Affected System
Linux
Linux Kernel 4.19.318 未満
Linux Kernel 4.20 以上 5.4.280 未満
Linux Kernel 5.11 以上 5.15.163 未満
Linux Kernel 5.16 以上 6.1.100 未満
Linux Kernel 5.5 以上 5.10.222 未満
Linux Kernel 6.2 以上 6.6.41 未満
Linux Kernel 6.7 以上 6.9.10 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2024年08月14日]   掲載 Aug. 14, 2024, 1:52 p.m.
2 [2025年08月18日]
  参考情報:JVN (JVNVU#92169998) を追加
  参考情報:ICS-CERT ADVISORY (ICSA-25-226-07) を追加
Aug. 18, 2025, 5:18 p.m.