# CVE-2024-50056: usb: gadget: uvc: Fix ERR_PTR dereference in uvc_v4l2.c

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-10-21T19:39:47.131Z
- Modified: 2026-06-17T08:03:28.627Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

usb: gadget: uvc: Fix ERR_PTR dereference in uvc_v4l2.c

Fix potential dereferencing of ERR_PTR() in find_format_by_pix()
and uvc_v4l2_enum_format().

Fix the following smatch errors:

drivers/usb/gadget/function/uvc_v4l2.c:124 find_format_by_pix()
error: 'fmtdesc' dereferencing possible ERR_PTR()

drivers/usb/gadget/function/uvc_v4l2.c:392 uvc_v4l2_enum_format()
error: 'fmtdesc' dereferencing possible ERR_PTR()

Also, fix similar issue in uvc_v4l2_try_format() for potential
dereferencing of ERR_PTR().

(As written by CVE List.)

## Affected

- Linux Linux: from 588b9e85609bcb2f84a2be83591480aa943943b6 before 03fa71e97e9bb116993ec1d51b8a6fe776db0984; from 588b9e85609bcb2f84a2be83591480aa943943b6 before 72a68d2bede3284b95ee93a5ab3a81758bba95b0; from 588b9e85609bcb2f84a2be83591480aa943943b6 before cedeb36c3ff4acd0f3d09918dfd8ed1df05efdd6; from 588b9e85609bcb2f84a2be83591480aa943943b6 before a7bb96b18864225a694e3887ac2733159489e4b0; 6.1 (not affected: before 6.1; from 6.1.133 up to 6.1.*; from 6.6.86 up to 6.6.*; from 6.11.4 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.11 before 6.11.4

## References

- <https://git.kernel.org/stable/c/03fa71e97e9bb116993ec1d51b8a6fe776db0984>
- <https://git.kernel.org/stable/c/72a68d2bede3284b95ee93a5ab3a81758bba95b0>
- <https://git.kernel.org/stable/c/cedeb36c3ff4acd0f3d09918dfd8ed1df05efdd6> (patch)
- <https://git.kernel.org/stable/c/a7bb96b18864225a694e3887ac2733159489e4b0> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2024-50056](https://www.cve.org/CVERecord?id=CVE-2024-50056), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50056](https://nvd.nist.gov/vuln/detail/CVE-2024-50056), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50056 · Whole record: https://cve.day/CVE-2024-50056.json · Rebuilt by cve.day 2026-11-25T22:58:47.119Z
