# CVE-2022-49565: perf/x86/intel/lbr: Fix unchecked MSR access error on HSW

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2025-02-26T02:23:11.213Z
- **Modified:** 2026-06-17T05:18:27.970Z

## Who should check

- Anyone running Linux \>= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, \< 625bcd0685a1612225df83468c83412fc0edb3d7; \>= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, \< b0380e13502adf7dd8be4c47d622c3522aae6c63
- Anyone running Linux 5.17

## Description

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

perf/x86/intel/lbr: Fix unchecked MSR access error on HSW

The fuzzer triggers the below trace.

\[ 7763.384369\] unchecked MSR access error: WRMSR to 0x689
(tried to write 0x1fffffff8101349e) at rIP: 0xffffffff810704a4
(native\_write\_msr+0x4/0x20)
\[ 7763.397420\] Call Trace:
\[ 7763.399881\]  \<TASK\>
\[ 7763.401994\]  intel\_pmu\_lbr\_restore+0x9a/0x1f0
\[ 7763.406363\]  intel\_pmu\_lbr\_sched\_task+0x91/0x1c0
\[ 7763.410992\]  \_\_perf\_event\_task\_sched\_in+0x1cd/0x240

On a machine with the LBR format LBR\_FORMAT\_EIP\_FLAGS2, when the TSX is
disabled, a TSX quirk is required to access LBR from registers.
The lbr\_from\_signext\_quirk\_needed() is introduced to determine whether
the TSX quirk should be applied. However, the
lbr\_from\_signext\_quirk\_needed() is invoked before the
intel\_pmu\_lbr\_init(), which parses the LBR format information. Without
the correct LBR format information, the TSX quirk never be applied.

Move the lbr\_from\_signext\_quirk\_needed() into the intel\_pmu\_lbr\_init().
Checking x86\_pmu.lbr\_has\_tsx in the lbr\_from\_signext\_quirk\_needed() is
not required anymore.

Both LBR\_FORMAT\_EIP\_FLAGS2 and LBR\_FORMAT\_INFO have LBR\_TSX flag, but
only the LBR\_FORMAT\_EIP\_FLAGS2 requirs the quirk. Update the comments
accordingly.

## Affected and fixed versions

- Linux: \>= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, \< 625bcd0685a1612225df83468c83412fc0edb3d7; \>= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, \< b0380e13502adf7dd8be4c47d622c3522aae6c63 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49565.md
Affected: Linux >= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, < 625bcd0685a1612225df83468c83412fc0edb3d7; >= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, < b0380e13502adf7dd8be4c47d622c3522aae6c63; Linux 5.17
Fixed in: Linux 625bcd0685a1612225df83468c83412fc0edb3d7

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-2022-49565 being exploited?

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

### How serious is CVE-2022-49565?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49565?

Linux \>= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, \< 625bcd0685a1612225df83468c83412fc0edb3d7; \>= 1ac7fd8159a842b3aa51f0b46a351fa3eeb8fbf3, \< b0380e13502adf7dd8be4c47d622c3522aae6c63; Linux 5.17.

### Is there a fix for CVE-2022-49565?

Yes. Fixed in Linux 625bcd0685a1612225df83468c83412fc0edb3d7. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49565?

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

- patch: <https://git.kernel.org/stable/c/625bcd0685a1612225df83468c83412fc0edb3d7>
- patch: <https://git.kernel.org/stable/c/b0380e13502adf7dd8be4c47d622c3522aae6c63>

## 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-2022-49565>

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