CVE-2026-98551: perf/core: Fill branch entries with a single assignment

Published Oct 18, 2026
·
Updated

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

perf/core: Fill branch entries with a single assignment

perfclearbranchentrybitfields() clears the bitfields of struct perfbranchentry 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: newtype and priv were added to perfbranchentry and never added here.

Only BRBE writes those two, and neither for every record. brbesetperfentrytype() leaves newtype alone for a branch type it does not recognise, and priv is not set for source-only records. armpmuv3.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.

perfclearbranchentrybitfields() has no callers left, so remove it. perfentryfrombrberegset() assigns an empty literal instead, since it fills from/to conditionally. PERFBRSPECNA is 0, so dropping the explicit spec assignment changes nothing.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove perf_clear_branch_entry_bitfields() from your environment.

    Remove perf_clear_branch_entry_bitfields(), which has no callers left.

  2. Compensating control

    In perf/core, fill each perf_branch_entry with a single whole-struct assignment, including assigning an empty literal in perf_entry_from_brbe_regset(), so all fields are initialized before records reach userspace.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:18 PM
Data Sourced
via MITRE·03:18 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203