CVE-2024-50268: usb: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd()
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: fix potential out of bounds in ucsiccgupdatesetnewcamcmd()
The "cmd" variable can be controlled by the user via debugfs. That means "newcam" can be as high as 255 while the size of the uc->updated[] array is UCSIMAXALTMODES (30).
The call tree is: ucsicmd() // val comes from simpleattrwritexsigned() -> ucsisendcommand() -> ucsisendcommandcommon() -> ucsiruncommand() // calls ucsi->ops->synccontrol() -> ucsiccgsynccontrol()
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.15.173.1-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50268?
CVE-2024-50268 has a severity rating that reflects its potential impact on affected systems.
How do I fix CVE-2024-50268?
To fix CVE-2024-50268, users should upgrade to a patched version of the Linux kernel that addresses this vulnerability.
What versions of the Linux kernel are affected by CVE-2024-50268?
CVE-2024-50268 affects Linux kernel versions from 5.6 up to 6.12-rc6, excluding patched versions.
Can CVE-2024-50268 be exploited remotely?
CVE-2024-50268 may potentially be exploited locally due to user-controlled variables via debugfs.
What components are primarily involved in CVE-2024-50268?
CVE-2024-50268 primarily affects the USB Type-C component within the Linux kernel.