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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-01T05:28:12.105Z
- Modified: 2026-06-17T07:18:53.480Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from cd099cde4ed264403b434d8344994f97ac2a4349 before f3da3192cdd3fefe213390e976eec424a8e270b5; from cd099cde4ed264403b434d8344994f97ac2a4349 before c4128304c2169b4664ed6fb6200f228cead2ab70; 6.8 (not affected: before 6.8; from 6.8.8 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.8 before 6.8.8; 6.9

## References

- <https://git.kernel.org/stable/c/f3da3192cdd3fefe213390e976eec424a8e270b5> (patch)
- <https://git.kernel.org/stable/c/c4128304c2169b4664ed6fb6200f228cead2ab70> (patch)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## Sources

- CVE List: [CVE-2024-26995](https://www.cve.org/CVERecord?id=CVE-2024-26995), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-26995](https://nvd.nist.gov/vuln/detail/CVE-2024-26995), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26995 · Whole record: https://cve.day/CVE-2024-26995.json · Rebuilt by cve.day 2026-11-25T22:58:39.760Z
