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

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-28)
- **Published:** 2026-10-18T15:18:19.008Z
- **Modified:** 2026-10-19T10:19:11.363Z

## Who should check

- Anyone running Linux \>= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, \< c7de8521947a521b766979ff5c09f66fe905a5bd; \>= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, \< 24b620729e53d978b3e425f55bc66efd3bab1f59
- Anyone running Linux 6.1

## Description

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.

## Affected and fixed versions

- Linux: \>= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, \< c7de8521947a521b766979ff5c09f66fe905a5bd; \>= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, \< 24b620729e53d978b3e425f55bc66efd3bab1f59 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 24b620729e53d978b3e425f55bc66efd3bab1f59 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98551.md
Affected: Linux >= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, < c7de8521947a521b766979ff5c09f66fe905a5bd; >= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, < 24b620729e53d978b3e425f55bc66efd3bab1f59; Linux 6.1
Fixed in: Linux 24b620729e53d978b3e425f55bc66efd3bab1f59

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-2026-98551 being exploited?

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

### How serious is CVE-2026-98551?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98551?

Linux \>= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, \< c7de8521947a521b766979ff5c09f66fe905a5bd; \>= b190bc4ac9e6d9763b61654c5a0c085ff77d7a09, \< 24b620729e53d978b3e425f55bc66efd3bab1f59; Linux 6.1.

### Is there a fix for CVE-2026-98551?

Yes. Fixed in Linux 24b620729e53d978b3e425f55bc66efd3bab1f59. Upgrade Linux to 24b620729e53d978b3e425f55bc66efd3bab1f59 or later.

### How do I check if I'm affected by CVE-2026-98551?

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

- other: <https://git.kernel.org/stable/c/c7de8521947a521b766979ff5c09f66fe905a5bd>
- other: <https://git.kernel.org/stable/c/24b620729e53d978b3e425f55bc66efd3bab1f59>

## 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-2026-98551>

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