PT-2026-162703

CVE-2026-138843

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

Pontuação
N/A
Não disponível

Não há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.

In the Linux kernel, the following vulnerability has been resolved:
usb: typec: ucsi: ccg: Validate altmode index in GET CURRENT CAM response
When the PPM reports more than one DisplayPort alternate mode for a connector, ucsi ccg update altmodes() merges them into a single entry in uc->updated[] and sets uc->has multiple dp. In that case, ucsi ccg update get current cam cmd() rewrites the response of the GET CURRENT CAM command. The response is a single byte holding the index of the currently active alternate mode, and it is provided by the PPM firmware.
The function uses this byte directly as an index into uc->orig[], and then uses the linked idx read from that entry as the translated index into uc->updated[]. Both arrays have UCSI MAX ALTMODES entries, but neither index is checked against that size.
If a malicious or buggy PPM reports a value of UCSI MAX ALTMODES or larger, e.g. 0xFF, uc->orig[cam].linked idx reads over the end of uc->orig[]. The byte read from there is then used as the index for writing cam into uc->updated[new cam].active idx, so the out-of-bounds read is followed by an out-of-bounds write. This happens without any userspace action, since the UCSI core issues GET CURRENT CAM on its own when handling connector changes.
Fix this by rejecting responses whose index is out of range, printing an error and returning -EPROTO, so that the caller cannot accept this. Also check linked idx before using it as an index, so that the write into uc->updated[] is always within bounds.
The response is now only processed when the command completed without an error. ucsi sync control common() only reads the response when the CCI reports command completion, so otherwise the buffer is not filled and must not be mistaken for an invalid index.
This bug was found with a Python script that traces where firmware input is used.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾