# CVE-2024-50268: usb: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2024-11-19T01:30:05.437Z
- Modified: 2026-08-05T11:42:56.179Z
- Weaknesses: CWE-125
- 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: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd()

The "*cmd" variable can be controlled by the user via debugfs.  That means
"new_cam" can be as high as 255 while the size of the uc->updated[] array
is UCSI_MAX_ALTMODES (30).

The call tree is:
ucsi_cmd() // val comes from simple_attr_write_xsigned()
-> ucsi_send_command()
   -> ucsi_send_command_common()
      -> ucsi_run_command() // calls ucsi->ops->sync_control()
         -> ucsi_ccg_sync_control()

(As written by CVE List.)

## Affected

- Linux Linux: from 170a6726d0e266f2c8f306e3d61715c32f4ee41e before d76923164705821aa1b01b8d9d1741f20c654ab4; from 170a6726d0e266f2c8f306e3d61715c32f4ee41e before 8f47984b35f3be0cfc652c2ca358d5768ea3456b; from 170a6726d0e266f2c8f306e3d61715c32f4ee41e before 604314ecd682913925980dc955caea2d036eab5f; from 170a6726d0e266f2c8f306e3d61715c32f4ee41e before 69e19774f15e12dda6c6c58001d059e30895009b; from 170a6726d0e266f2c8f306e3d61715c32f4ee41e before 3a2ba841659a0f15102585120dea75d8d5209616; from 170a6726d0e266f2c8f306e3d61715c32f4ee41e before 7dd08a0b4193087976db6b3ee7807de7e8316f96; 5.6 (not affected: before 5.6; from 5.10.230 up to 5.10.*; from 5.15.172 up to 5.15.*; from 6.1.117 up to 6.1.*; from 6.6.61 up to 6.6.*; from 6.11.8 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.6 before 5.10.230; from 5.11 before 5.15.172; from 5.16 before 6.1.117; from 6.2 before 6.6.61; from 6.7 before 6.11.8; 6.12

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d76923164705821aa1b01b8d9d1741f20c654ab4> (patch)
- <https://git.kernel.org/stable/c/8f47984b35f3be0cfc652c2ca358d5768ea3456b> (patch)
- <https://git.kernel.org/stable/c/604314ecd682913925980dc955caea2d036eab5f> (patch)
- <https://git.kernel.org/stable/c/69e19774f15e12dda6c6c58001d059e30895009b> (patch)
- <https://git.kernel.org/stable/c/3a2ba841659a0f15102585120dea75d8d5209616> (patch)
- <https://git.kernel.org/stable/c/7dd08a0b4193087976db6b3ee7807de7e8316f96> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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