7.8high
usb: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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()
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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()
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: typec: se corrige un posible error fuera de los límites en ucsi_ccg_update_set_new_cam_cmd() La variable "*cmd" puede ser controlada por el usuario a través de debugfs. Esto significa que "new_cam" puede tener un valor de hasta 255, mientras que el tamaño de la matriz uc->updated[] es UCSI_MAX_ALTMODES (30). El árbol de llamadas es: ucsi_cmd() // val proviene de simple_attr_write_xsigned() -> ucsi_send_command() -> ucsi_send_command_common() -> ucsi_run_command() // llama a ucsi->ops->sync_control() -> ucsi_ccg_sync_control()
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-50268 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-50268 changed 2026-08-04 | Public domain |