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

Published May 1, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: typec: tcpm: Correct the PDO counting in pdset

Off-by-one errors happen because nrsnkpdo and nrsrcpdo 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 "nrsnkpdo" 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).

"nrsrcpdo" 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.

Affected Software

6 affected componentsFixes available
Linux Linux kernel>=6.8<6.8.8
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Linux Linux kernel=6.9-rc4
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

May 1, 2024
CVE Published
via MITRE·05:28 AM
Data Sourced
via MITRE·05:28 AM
Description
Data Sourced
via NVD·06:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:45 PM
Description
Jan 3, 2025
Data Sourced
via Ubuntu·08:22 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203