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

CVE-2024-50268
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.26 % · percentile 18 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 170a6726d0e266f2c8f306e3d61715c32f4ee41e < d76923164705821aa1b01b8d9d1741f20c654ab4 ; affected 170a6726d0e266f2c8f306e3d61715c32f4ee41e < 8f47984b35f3be0cfc652c2ca358d5768ea3456b ; affected 170a6726d0e266f2c8f306e3d61715c32f4ee41e < 604314ecd682913925980dc955caea2d036eab5f ; affected 170a6726d0e266f2c8f306e3d61715c32f4ee41e < 69e19774f15e12dda6c6c58001d059e30895009b ; affected 170a6726d0e266f2c8f306e3d61715c32f4ee41e < 3a2ba841659a0f15102585120dea75d8d5209616 ; affected 170a6726d0e266f2c8f306e3d61715c32f4ee41e < 7dd08a0b4193087976db6b3ee7807de7e8316f96
Linux · Linuxaffected 5.6 ; unaffected 0 < 5.6 ; unaffected 5.10.230 ≤ 5.10.* ; unaffected 5.15.172 ≤ 5.15.* ; unaffected 6.1.117 ≤ 6.1.* ; unaffected 6.6.61 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD