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

Published Feb 26, 2025
·
Updated

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 (nativewritemsr+0x4/0x20) [ 7763.397420] Call Trace: [ 7763.399881] <TASK> [ 7763.401994] intelpmulbrrestore+0x9a/0x1f0 [ 7763.406363] intelpmulbrschedtask+0x91/0x1c0 [ 7763.410992] perfeventtaskschedin+0x1cd/0x240

On a machine with the LBR format LBRFORMATEIPFLAGS2, when the TSX is disabled, a TSX quirk is required to access LBR from registers. The lbrfromsignextquirkneeded() is introduced to determine whether the TSX quirk should be applied. However, the lbrfromsignextquirkneeded() is invoked before the intelpmulbrinit(), which parses the LBR format information. Without the correct LBR format information, the TSX quirk never be applied.

Move the lbrfromsignextquirkneeded() into the intelpmulbrinit(). Checking x86pmu.lbrhastsx in the lbrfromsignextquirkneeded() is not required anymore.

Both LBRFORMATEIPFLAGS2 and LBRFORMATINFO have LBRTSX flag, but only the LBRFORMATEIPFLAGS2 requirs the quirk. Update the comments accordingly.

Affected Software

21 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.17.1<5.18.15
Linux Linux kernel=5.17
Linux Linux kernel=5.17-rc2
Linux Linux kernel=5.17-rc3
Linux Linux kernel=5.17-rc4
Linux Linux kernel=5.17-rc5
Linux Linux kernel=5.17-rc6
Linux Linux kernel=5.17-rc7
Linux Linux kernel=5.17-rc8
Linux Linux kernel=5.19-rc1
Linux Linux kernel=5.19-rc2
Linux Linux kernel=5.19-rc3
Linux Linux kernel=5.19-rc4
Linux Linux kernel=5.19-rc5
Linux Linux kernel=5.19-rc6
Linux Linux kernel=5.19-rc7
debian/linux<5.18.16-1
5.18.16-1
debian/linux<5.18.16-1
5.18.16-1
debian/linux<5.18.16-1
5.18.16-1
debian/linux
5.18.16-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.18.16-1
  2. Compensating control

    Move lbr_from_signext_quirk_needed() into intel_pmu_lbr_init(), after the LBR format information is parsed, so the TSX quirk is determined using the correct LBR format.

Event History

Feb 26, 2025
CVE Published
via MITRE·02:23 AM
Data Sourced
via MITRE·02:23 AM
Description
Data Sourced
via Red Hat·03:06 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:01 AM
Description
Data Sourced
via OSV·07:01 AM
DescriptionSeverityAffected Software
Oct 22, 2025
Data Sourced
via NVD·07:10 PM
RemedySeverityAffected Software

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