# CVE-2021-46980: usb: typec: ucsi: Retrieve all the PDOs instead of just the first 4

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-02-28T08:13:10.357Z
- **Modified:** 2026-06-17T04:16:03.770Z

## Who should check

- Anyone running Linux \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< e5366bea0277425e1868ba20eeb27c879d5a6e2d; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< a453bfd7ef15fd9d524004d3ca7b05353a302911; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< 5e9c6f58b01e6fdfbc740390c01f542a35c97e57; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< 1f4642b72be79757f050924a9b9673b6a02034bc
- Anyone running Linux 5.8

## Description

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

usb: typec: ucsi: Retrieve all the PDOs instead of just the first 4

commit 4dbc6a4ef06d ("usb: typec: ucsi: save power data objects
in PD mode") introduced retrieval of the PDOs when connected to a
PD-capable source. But only the first 4 PDOs are received since
that is the maximum number that can be fetched at a time given the
MESSAGE\_IN length limitation (16 bytes). However, as per the PD spec
a connected source may advertise up to a maximum of 7 PDOs.

If such a source is connected it's possible the PPM could have
negotiated a power contract with one of the PDOs at index greater
than 4, and would be reflected in the request data object's (RDO)
object position field. This would result in an out-of-bounds access
when the rdo\_index() is used to index into the src\_pdos array in
ucsi\_psy\_get\_voltage\_now().

With the help of the UBSAN -fsanitize=array-bounds checker enabled
this exact issue is revealed when connecting to a PD source adapter
that advertise 5 PDOs and the PPM enters a contract having selected
the 5th one.

\[  151.545106\]\[   T70\] Unexpected kernel BRK exception at EL1
\[  151.545112\]\[   T70\] Internal error: BRK handler: f2005512 \[\#1\] PREEMPT SMP
...
\[  151.545499\]\[   T70\] pc : ucsi\_psy\_get\_prop+0x208/0x20c
\[  151.545507\]\[   T70\] lr : power\_supply\_show\_property+0xc0/0x328
...
\[  151.545542\]\[   T70\] Call trace:
\[  151.545544\]\[   T70\]  ucsi\_psy\_get\_prop+0x208/0x20c
\[  151.545546\]\[   T70\]  power\_supply\_uevent+0x1a4/0x2f0
\[  151.545550\]\[   T70\]  dev\_uevent+0x200/0x384
\[  151.545555\]\[   T70\]  kobject\_uevent\_env+0x1d4/0x7e8
\[  151.545557\]\[   T70\]  power\_supply\_changed\_work+0x174/0x31c
\[  151.545562\]\[   T70\]  process\_one\_work+0x244/0x6f0
\[  151.545564\]\[   T70\]  worker\_thread+0x3e0/0xa64

We can resolve this by instead retrieving and storing up to the
maximum of 7 PDOs in the con-\>src\_pdos array. This would involve
two calls to the GET\_PDOS command.

## Affected and fixed versions

- Linux: \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< e5366bea0277425e1868ba20eeb27c879d5a6e2d; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< a453bfd7ef15fd9d524004d3ca7b05353a302911; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< 5e9c6f58b01e6fdfbc740390c01f542a35c97e57; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< 1f4642b72be79757f050924a9b9673b6a02034bc (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 1f4642b72be79757f050924a9b9673b6a02034bc or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-46980. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46980.md
Affected: Linux >= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, < e5366bea0277425e1868ba20eeb27c879d5a6e2d; >= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, < a453bfd7ef15fd9d524004d3ca7b05353a302911; >= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, < 5e9c6f58b01e6fdfbc740390c01f542a35c97e57; >= 4dbc6a4ef06d6a79ff91be6…
Fixed in: Linux 5e9c6f58b01e6fdfbc740390c01f542a35c97e57, Linux 1f4642b72be79757f050924a9b9673b6a02034bc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-46980 being exploited?

There is no confirmed exploitation: CVE-2021-46980 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-46980?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-46980?

Linux \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< e5366bea0277425e1868ba20eeb27c879d5a6e2d; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< a453bfd7ef15fd9d524004d3ca7b05353a302911; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< 5e9c6f58b01e6fdfbc740390c01f542a35c97e57; \>= 4dbc6a4ef06d6a79ff91be6fc2e90f8660031ce0, \< 1f4642b72be79757f050924a9b9673b6a02034bc; Linux 5.8.

### Is there a fix for CVE-2021-46980?

Yes. Fixed in Linux 5e9c6f58b01e6fdfbc740390c01f542a35c97e57, Linux 1f4642b72be79757f050924a9b9673b6a02034bc. Upgrade Linux to 1f4642b72be79757f050924a9b9673b6a02034bc or later.

### How do I check if I'm affected by CVE-2021-46980?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e5366bea0277425e1868ba20eeb27c879d5a6e2d>
- patch: <https://git.kernel.org/stable/c/a453bfd7ef15fd9d524004d3ca7b05353a302911>
- patch: <https://git.kernel.org/stable/c/5e9c6f58b01e6fdfbc740390c01f542a35c97e57>
- patch: <https://git.kernel.org/stable/c/1f4642b72be79757f050924a9b9673b6a02034bc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46980>

HTML: <https://flawdb.com/CVE-2021-46980> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46980>
