{"id":"CVE-2024-50268","summary":"usb: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd()\n\nThe \"*cmd\" variable can be controlled by the user via debugfs.  That means\n\"new_cam\" can be as high as 255 while the size of the uc-\u003eupdated[] array\nis UCSI_MAX_ALTMODES (30).\n\nThe call tree is:\nucsi_cmd() // val comes from simple_attr_write_xsigned()\n-\u003e ucsi_send_command()\n   -\u003e ucsi_send_command_common()\n      -\u003e ucsi_run_command() // calls ucsi-\u003eops-\u003esync_control()\n         -\u003e ucsi_ccg_sync_control()","modified":"2026-03-20T12:39:40.165389Z","published":"2024-11-19T01:30:05.437Z","related":["SUSE-SU-2024:4314-1","SUSE-SU-2024:4315-1","SUSE-SU-2024:4316-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4376-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50268.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3a2ba841659a0f15102585120dea75d8d5209616"},{"type":"WEB","url":"https://git.kernel.org/stable/c/604314ecd682913925980dc955caea2d036eab5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/69e19774f15e12dda6c6c58001d059e30895009b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7dd08a0b4193087976db6b3ee7807de7e8316f96"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f47984b35f3be0cfc652c2ca358d5768ea3456b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d76923164705821aa1b01b8d9d1741f20c654ab4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50268.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50268"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"170a6726d0e266f2c8f306e3d61715c32f4ee41e"},{"fixed":"d76923164705821aa1b01b8d9d1741f20c654ab4"},{"fixed":"8f47984b35f3be0cfc652c2ca358d5768ea3456b"},{"fixed":"604314ecd682913925980dc955caea2d036eab5f"},{"fixed":"69e19774f15e12dda6c6c58001d059e30895009b"},{"fixed":"3a2ba841659a0f15102585120dea75d8d5209616"},{"fixed":"7dd08a0b4193087976db6b3ee7807de7e8316f96"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50268.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}