CVE-2024-50268

published 19 Nov 2024 · updated 5 Aug 2026

usb: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd()

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3a2ba841659a0f15102585120dea75d8d5209616, Kernel 604314ecd682913925980dc955caea2d036eab5f, Kernel 69e19774f15e12dda6c6c58001d059e30895009b and 3 more.

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()

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.6, >=170a6726d0e266f2c8f306e3d61715c32f4ee41e <3a2ba841659a0f15102585120dea75d8d5209616, >=170a6726d0e266f2c8f306e3d61715c32f4ee41e <604314ecd682913925980dc955caea2d036eab5f, >=170a6726d0e266f2c8f306e3d61715c32f4ee41e <69e19774f15e12dda6c6c58001d059e30895009b, >=170a6726d0e266f2c8f306e3d61715c32f4ee41e <7dd08a0b4193087976db6b3ee7807de7e8316f96, >=170a6726d0e266f2c8f306e3d61715c32f4ee41e <8f47984b35f3be0cfc652c2ca358d5768ea3456b, >=170a6726d0e266f2c8f306e3d61715c32f4ee41e <d76923164705821aa1b01b8d9d1741f20c654ab43a2ba841659a0f15102585120dea75d8d5209616, 604314ecd682913925980dc955caea2d036eab5f, 69e19774f15e12dda6c6c58001d059e30895009b, 7dd08a0b4193087976db6b3ee7807de7e8316f96, 8f47984b35f3be0cfc652c2ca358d5768ea3456b, d76923164705821aa1b01b8d9d1741f20c654ab4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-50268 severity on Zeptric[![CVE-2024-50268](https://zeptric.io/badge/cve/CVE-2024-50268.svg)](https://zeptric.io/cve/CVE-2024-50268)