# CVE-2025-38558: usb: gadget: uvc: Initialize frame-based format color matching descriptor

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-08-19T17:02:36.355Z
- **Modified:** 2026-06-17T09:17:06.447Z

## Who should check

- Anyone running Linux \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 6db61c1aa23075eeee90e083ca3f6567a5635da6; \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 7f8576fc9d1a203d12474bf52710c7af68cae490; \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 323a80a1a5ace319a722909c006d5bdb2a35d273
- Anyone running Linux 6.13

## Description

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: uvc: Initialize frame-based format color matching descriptor

Fix NULL pointer crash in uvcg\_framebased\_make due to uninitialized color
matching descriptor for frame-based format which was added in
commit f5e7bdd34aca ("usb: gadget: uvc: Allow creating new color matching
descriptors") that added handling for uncompressed and mjpeg format.

Crash is seen when userspace configuration (via configfs) does not
explicitly define the color matching descriptor. If color\_matching is not
found, config\_group\_find\_item() returns NULL. The code then jumps to
out\_put\_cm, where it calls config\_item\_put(color\_matching);. If
color\_matching is NULL, this will dereference a null pointer, leading to a
crash.

\[    2.746440\] Unable to handle kernel NULL pointer dereference at virtual address 000000000000008c
\[    2.756273\] Mem abort info:
\[    2.760080\]   ESR = 0x0000000096000005
\[    2.764872\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[    2.771068\]   SET = 0, FnV = 0
\[    2.771069\]   EA = 0, S1PTW = 0
\[    2.771070\]   FSC = 0x05: level 1 translation fault
\[    2.771071\] Data abort info:
\[    2.771072\]   ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
\[    2.771073\]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
\[    2.771074\]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
\[    2.771075\] user pgtable: 4k pages, 39-bit VAs, pgdp=00000000a3e59000
\[    2.771077\] \[000000000000008c\] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
\[    2.771081\] Internal error: Oops: 0000000096000005 \[\#1\] PREEMPT SMP
\[    2.771084\] Dumping ftrace buffer:
\[    2.771085\]    (ftrace buffer empty)
\[    2.771138\] CPU: 7 PID: 486 Comm: ln Tainted: G        W   E      6.6.58-android15
\[    2.771139\] Hardware name: Qualcomm Technologies, Inc. SunP QRD HDK (DT)
\[    2.771140\] pstate: 61400005 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
\[    2.771141\] pc : \_\_uvcg\_fill\_strm+0x198/0x2cc
\[    2.771145\] lr : \_\_uvcg\_iter\_strm\_cls+0xc8/0x17c
\[    2.771146\] sp : ffffffc08140bbb0
\[    2.771146\] x29: ffffffc08140bbb0 x28: ffffff803bc81380 x27: ffffff8023bbd250
\[    2.771147\] x26: ffffff8023bbd250 x25: ffffff803c361348 x24: ffffff803d8e6768
\[    2.771148\] x23: 0000000000000004 x22: 0000000000000003 x21: ffffffc08140bc48
\[    2.771149\] x20: 0000000000000000 x19: ffffffc08140bc48 x18: ffffffe9f8cf4a00
\[    2.771150\] x17: 000000001bf64ec3 x16: 000000001bf64ec3 x15: ffffff8023bbd250
\[    2.771151\] x14: 000000000000000f x13: 004c4b40000f4240 x12: 000a2c2a00051615
\[    2.771152\] x11: 000000000000004f x10: ffffffe9f76b40ec x9 : ffffffe9f7e389d0
\[    2.771153\] x8 : ffffff803d0d31ce x7 : 000f4240000a2c2a x6 : 0005161500028b0a
\[    2.771154\] x5 : ffffff803d0d31ce x4 : 0000000000000003 x3 : 0000000000000000
\[    2.771155\] x2 : ffffffc08140bc50 x1 : ffffffc08140bc48 x0 : 0000000000000000
\[    2.771156\] Call trace:
\[    2.771157\]  \_\_uvcg\_fill\_strm+0x198/0x2cc
\[    2.771157\]  \_\_uvcg\_iter\_strm\_cls+0xc8/0x17c
\[    2.771158\]  uvcg\_streaming\_class\_allow\_link+0x240/0x290
\[    2.771159\]  configfs\_symlink+0x1f8/0x630
\[    2.771161\]  vfs\_symlink+0x114/0x1a0
\[    2.771163\]  do\_symlinkat+0x94/0x28c
\[    2.771164\]  \_\_arm64\_sys\_symlinkat+0x54/0x70
\[    2.771164\]  invoke\_syscall+0x58/0x114
\[    2.771166\]  el0\_svc\_common+0x80/0xe0
\[    2.771168\]  do\_el0\_svc+0x1c/0x28
\[    2.771169\]  el0\_svc+0x3c/0x70
\[    2.771172\]  el0t\_64\_sync\_handler+0x68/0xbc
\[    2.771173\]  el0t\_64\_sync+0x1a8/0x1ac

Initialize color matching descriptor for frame-based format to prevent
NULL pointer crash by mirroring the handling done for uncompressed and
mjpeg formats.

## Affected and fixed versions

- Linux: \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 6db61c1aa23075eeee90e083ca3f6567a5635da6; \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 7f8576fc9d1a203d12474bf52710c7af68cae490; \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 323a80a1a5ace319a722909c006d5bdb2a35d273 (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- Upgrade Linux to 323a80a1a5ace319a722909c006d5bdb2a35d273 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38558. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38558.md
Affected: Linux >= 7b5a58952fc3b51905c2963647485565df1e5e26, < 6db61c1aa23075eeee90e083ca3f6567a5635da6; >= 7b5a58952fc3b51905c2963647485565df1e5e26, < 7f8576fc9d1a203d12474bf52710c7af68cae490; >= 7b5a58952fc3b51905c2963647485565df1e5e26, < 323a80a1a5ace319a722909c006d5bdb2a35d273; Linux 6.13
Fixed in: Linux 6db61c1aa23075eeee90e083ca3f6567a5635da6, Linux 7f8576fc9d1a203d12474bf52710c7af68cae490, Linux 323a80a1a5ace319a722909c006d5bdb2a35d273

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.
```

## FAQ

### Is CVE-2025-38558 being exploited?

There is no confirmed exploitation: CVE-2025-38558 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38558?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38558?

Linux \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 6db61c1aa23075eeee90e083ca3f6567a5635da6; \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 7f8576fc9d1a203d12474bf52710c7af68cae490; \>= 7b5a58952fc3b51905c2963647485565df1e5e26, \< 323a80a1a5ace319a722909c006d5bdb2a35d273; Linux 6.13.

### Is there a fix for CVE-2025-38558?

Yes. Fixed in Linux 6db61c1aa23075eeee90e083ca3f6567a5635da6, Linux 7f8576fc9d1a203d12474bf52710c7af68cae490, Linux 323a80a1a5ace319a722909c006d5bdb2a35d273. Upgrade Linux to 323a80a1a5ace319a722909c006d5bdb2a35d273 or later.

### How do I check if I'm affected by CVE-2025-38558?

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.

## References

- patch: <https://git.kernel.org/stable/c/6db61c1aa23075eeee90e083ca3f6567a5635da6>
- patch: <https://git.kernel.org/stable/c/7f8576fc9d1a203d12474bf52710c7af68cae490>
- patch: <https://git.kernel.org/stable/c/323a80a1a5ace319a722909c006d5bdb2a35d273>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38558>

HTML: <https://flawdb.com/CVE-2025-38558> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38558>
