CVE-2024-36895
usb: gadget: uvc: use correct buffer size when parsing configfs lists
Mitigation
- Upgrade Linux to 650ae71c80749fc7cb8858c8049f532eaec64410 or later.
Who should check
- Anyone running Linux >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 7a54e5052bde582fd0e7677334fe7a5be92e242c; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < a422089ce42ced73713e5032aad29a9a7cbe9528; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 650ae71c80749fc7cb8858c8049f532eaec64410
- Anyone running Linux 6.3
Vulnerability facts
- Affected
- Linux >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 7a54e5052bde582fd0e7677334fe7a5be92e242c; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < a422089ce42ced73713e5032aad29a9a7cbe9528; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 650ae71c80749fc7cb8858c8049f532eaec64410; Linux 6.3
- Fixed in
- Linux 7a54e5052bde582fd0e7677334fe7a5be92e242c, Linux 650ae71c80749fc7cb8858c8049f532eaec64410
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.33% chance of exploitation in 30 days (percentile 18, 2026-11-26)
- CWE
- CWE-787
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: use correct buffer size when parsing configfs lists This commit fixes uvc gadget support on 32-bit platforms. Commit 0df28607c5cb ("usb: gadget: uvc: Generalise helper functions for reuse") introduced a helper function __uvcg_iter_item_entries() to aid with parsing lists of items on configfs attributes stores. This function is a generalization of another very similar function, which used a stack-allocated temporary buffer of fixed size for each item in the list and used the sizeof() operator to check for potential buffer overruns. The new function was changed to allocate the now variably sized temp buffer on heap, but wasn't properly updated to also check for max buffer size using the computed size instead of sizeof() operator. As a result, the maximum item size was 7 (plus null terminator) on 64-bit platforms, and 3 on 32-bit ones. While 7 is accidentally just barely enough, 3 is definitely too small for some of UVC configfs attributes. For example, dwFrameInteval, specified in 100ns units, usually has 6-digit item values, e.g. 166666 for 60fps.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 7a54e5052bde582fd0e7677334fe7a5be92e242c; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < a422089ce42ced73713e5032aad29a9a7cbe9528; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 650ae71c80749fc7cb8858c8049f532eaec64410 | — | cvelist |
| Linux | 6.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-36895. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-36895.md Affected: Linux >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 7a54e5052bde582fd0e7677334fe7a5be92e242c; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < a422089ce42ced73713e5032aad29a9a7cbe9528; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 650ae71c80749fc7cb8858c8049f532eaec64410; Linux 6.3 Fixed in: Linux 7a54e5052bde582fd0e7677334fe7a5be92e242c, Linux 650ae71c80749fc7cb8858c8049f532eaec64410 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2024-36895 being exploited?
There is no confirmed exploitation: CVE-2024-36895 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-36895?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-36895?
Linux >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 7a54e5052bde582fd0e7677334fe7a5be92e242c; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < a422089ce42ced73713e5032aad29a9a7cbe9528; >= 0df28607c5cb4fe60bba591e9858a8f7ba39aa4a, < 650ae71c80749fc7cb8858c8049f532eaec64410; Linux 6.3.
Is there a fix for CVE-2024-36895?
Yes. Fixed in Linux 7a54e5052bde582fd0e7677334fe7a5be92e242c, Linux 650ae71c80749fc7cb8858c8049f532eaec64410. Upgrade Linux to 650ae71c80749fc7cb8858c8049f532eaec64410 or later.
How do I check if I'm affected by CVE-2024-36895?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.