perf: arm_pmuv3: Zero initialize hw_id branch stack field
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: perf: arm_pmuv3: Zero initialize hw_id branch stack field PERF_SAMPLE_BRANCH_HW_INDEX is supported by BRBE so hw_id is passed to userspace, but it's never set by the BRBE driver. Zero initialize it as it should be according to the docs: • For the architectures whose raw branch records are • already stored in age order, the hw_idx should be 0. It's probably too risky to remove PERF_SAMPLE_BRANCH_HW_INDEX from BRBE now in case anyone is setting it and reading the value, but zero initializing the whole struct also protects against the same issue with new fields that are added in the future.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 58074a0fce66c6c97b35ce8a28ed4e7b780f9a8f · fixed in 57b72442c1672963fd51ab441ca1b71f6dc79b66; From 58074a0fce66c6c97b35ce8a28ed4e7b780f9a8f · fixed in 988e11b69ef9d4034e19c64407030fa948580c3d; From 58074a0fce66c6c97b35ce8a28ed4e7b780f9a8f · fixed in 7c3b63386c27bed8d59a4b4c283d02860420eb0a
- Linux Linux
6.17
- KernelLinux
From 6.17.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6