CVE-2024-26995
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
01/05/2024
Last modified:
04/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: typec: tcpm: Correct the PDO counting in pd_set<br />
<br />
Off-by-one errors happen because nr_snk_pdo and nr_src_pdo are<br />
incorrectly added one. The index of the loop is equal to the number of<br />
PDOs to be updated when leaving the loop and it doesn&#39;t need to be added<br />
one.<br />
<br />
When doing the power negotiation, TCPM relies on the "nr_snk_pdo" as<br />
the size of the local sink PDO array to match the Source capabilities<br />
of the partner port. If the off-by-one overflow occurs, a wrong RDO<br />
might be sent and unexpected power transfer might happen such as over<br />
voltage or over current (than expected).<br />
<br />
"nr_src_pdo" is used to set the Rp level when the port is in Source<br />
role. It is also the array size of the local Source capabilities when<br />
filling up the buffer which will be sent as the Source PDOs (such as<br />
in Power Negotiation). If the off-by-one overflow occurs, a wrong Rp<br />
level might be set and wrong Source PDOs will be sent to the partner<br />
port. This could potentially cause over current or port resets.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.8.8 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/c4128304c2169b4664ed6fb6200f228cead2ab70
- https://git.kernel.org/stable/c/f3da3192cdd3fefe213390e976eec424a8e270b5
- https://git.kernel.org/stable/c/c4128304c2169b4664ed6fb6200f228cead2ab70
- https://git.kernel.org/stable/c/f3da3192cdd3fefe213390e976eec424a8e270b5
- 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/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/



