CVE-2021-47434

xhci: Fix command ring pointer corruption while aborting a command

published May 22, 2024

CVSS
—
EPSS
0%
Percentile
13.8
In the wild
Unconfirmed
What it is

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

xhci: Fix command ring pointer corruption while aborting a command

The command ring pointer is located at [6:63] bits of the command

ring control register (CRCR). All the control bits like command stop,

abort are located at [0:3] bits. While aborting a command, we read the

CRCR and set the abort bit and write to the CRCR. The read will always

give command ring pointer as all zeros. So we essentially write only

the control bits. Since we split the 64 bit write into two 32 bit writes,

there is a possibility of xHC command ring stopped before the upper

dword (all zeros) is written. If that happens, xHC updates the upper

dword of its internal command ring pointer with all zeros. Next time,

when the command ring is restarted, we see xHC memory access failures.

Fix this issue by only writing to the lower dword of CRCR where all

control bits are located.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00236 · 13.8th percentile
Published
2024-05-22T06:19Z
EPSS history
Timeline
  • 22 MAY 06:19Z
    xhci: Fix command ring pointer corruption while aborting a command
    cvelistv5