PT-2026-116770 · Linux · Linux

CVE-2026-98551

·

Publicado

2026-10-18

·

Atualizado

2026-10-18

Nenhuma

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:
perf/core: Fill branch entries with a single assignment
perf clear branch entry bitfields() clears the bitfields of struct perf branch entry one by one and leaves from/to alone, since callers overwrite those straight away. The list has to be kept in sync with the struct by hand and has already fallen behind: new type and priv were added to perf branch entry and never added here.
Only BRBE writes those two, and neither for every record. brbe set perf entry type() leaves new type alone for a branch type it does not recognise, and priv is not set for source-only records. arm pmuv3.c allocates the per-CPU branch stack with kmalloc(), so such a record reaches userspace with whatever the slot held: uninitialised kmalloc() data on the first pass over the buffer, the previous record's values after that. Nothing under arch/x86/events/ writes either field, so only arm64 is affected.
Assign the whole entry at each site instead. Everything not named is then zero, and there is no list to keep in sync. The bitfields add up to exactly 64 bits, so the struct has no padding to leave undefined.
perf clear branch entry bitfields() has no callers left, so remove it. perf entry from brbe regset() assigns an empty literal instead, since it fills from/to conditionally. PERF BR SPEC NA is 0, so dropping the explicit spec assignment changes nothing.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Identificadores relacionados

CVE-2026-98551

Produtos afetados

Linux