7.8
CWE
193
Advisory Published
CVE Published
Updated

CVE-2024-26995: usb: typec: tcpm: Correct the PDO counting in pd_set

First published: Wed May 01 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: usb: typec: tcpm: Correct the PDO counting in pd_set Off-by-one errors happen because nr_snk_pdo and nr_src_pdo are incorrectly added one. The index of the loop is equal to the number of PDOs to be updated when leaving the loop and it doesn't need to be added one. When doing the power negotiation, TCPM relies on the "nr_snk_pdo" as the size of the local sink PDO array to match the Source capabilities of the partner port. If the off-by-one overflow occurs, a wrong RDO might be sent and unexpected power transfer might happen such as over voltage or over current (than expected). "nr_src_pdo" is used to set the Rp level when the port is in Source role. It is also the array size of the local Source capabilities when filling up the buffer which will be sent as the Source PDOs (such as in Power Negotiation). If the off-by-one overflow occurs, a wrong Rp level might be set and wrong Source PDOs will be sent to the partner port. This could potentially cause over current or port resets.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=6.8<6.8.8
Linux Kernel=6.9-rc1
Linux Kernel=6.9-rc2
Linux Kernel=6.9-rc3
Linux Kernel=6.9-rc4
debian/linux
5.10.223-1
5.10.226-1
6.1.123-1
6.1.128-1
6.12.12-1
6.12.15-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-26995?

    CVE-2024-26995 has been classified as having a moderate severity due to potential off-by-one errors in the Linux kernel.

  • How do I fix CVE-2024-26995?

    To fix CVE-2024-26995, users should upgrade to the latest stable version of the Linux kernel or apply the patches provided by their distribution.

  • Which versions of the Linux kernel are affected by CVE-2024-26995?

    CVE-2024-26995 affects Linux kernel versions from 6.8 to 6.9-rc4, including all associated release candidates.

  • Is there a patch available for CVE-2024-26995?

    Yes, patches for CVE-2024-26995 have been made available in several maintenance releases, including those found in the Debian repository.

  • Can CVE-2024-26995 lead to system exploitation?

    While CVE-2024-26995 involves an off-by-one error, its potential to lead to system exploitation depends on additional conditions and context regarding the system configuration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203