CVE-2025-40122
publishedperf/x86/intel: Fix IA32_PMC_x_CFG_B MSRs access error
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxec980e4facef8110f6fce27e5b6344660117f01f to < c6cca4213b618c92e4972919ee568f0fb87313b1 · ec980e4facef8110f6fce27e5b6344660117f01f to < 43796f30507802d93ead2dc44fc9637f34671a89 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-buildinfo-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-headers-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-image-unsigned-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-modules-evdi-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-ipu6-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-ipu7-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-usbio-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-vision-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-oem-6.17 | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-oem-6.17-headers-6.17.0-1011 | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-oem-6.17-tools-6.17.0-1011 | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-tools-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | questing | bpftool | Advisory build | 7.7.0+6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-aws-cloud-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-aws-headers-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-aws-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-azure-cloud-tools-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-azure-headers-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-azure-tools-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-14 | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-common | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-gcp-headers-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-gcp-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-headers-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-headers-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-headers-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-headers-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-14 | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-image-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-image-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-lib-rust-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-modules-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-modules-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-modules-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-ipu6-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-ipu7-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-iwlwifi-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-modules-iwlwifi-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-usbio-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-vision-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-oracle-headers-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-oracle-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-perf | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-raspi-headers-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-raspi-tools-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-realtime-cloud-tools-6.17.0-1006 | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-realtime-headers-6.17.0-1006 | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-realtime-tools-6.17.0-1006 | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-source-6.17.0 | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-tools-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: perf/x86/intel: Fix IA32_PMC_x_CFG_B MSRs access error When running perf_fuzzer on PTL, sometimes the below "unchecked MSR access error" is seen when accessing IA32_PMC_x_CFG_B MSRs. [ 55.611268] unchecked MSR access error: WRMSR to 0x1986 (tried to write 0x0000000200000001) at rIP: 0xffffffffac564b28 (native_write_msr+0x8/0x30) [ 55.611280] Call Trace: [ 55.611282] <TASK> [ 55.611284] ? intel_pmu_config_acr+0x87/0x160 [ 55.611289] intel_pmu_enable_acr+0x6d/0x80 [ 55.611291] intel_pmu_enable_event+0xce/0x460 [ 55.611293] x86_pmu_start+0x78/0xb0 [ 55.611297] x86_pmu_enable+0x218/0x3a0 [ 55.611300] ? x86_pmu_enable+0x121/0x3a0 [ 55.611302] perf_pmu_enable+0x40/0x50 [ 55.611307] ctx_resched+0x19d/0x220 [ 55.611309] __perf_install_in_context+0x284/0x2f0 [ 55.611311] ? __pfx_remote_function+0x10/0x10 [ 55.611314] remote_function+0x52/0x70 [ 55.611317] ? __pfx_remote_function+0x10/0x10 [ 55.611319] generic_exec_single+0x84/0x150 [ 55.611323] smp_call_function_single+0xc5/0x1a0 [ 55.611326] ? __pfx_remote_function+0x10/0x10 [ 55.611329] perf_install_in_context+0xd1/0x1e0 [ 55.611331] ? __pfx___perf_install_in_context+0x10/0x10 [ 55.611333] __do_sys_perf_event_open+0xa76/0x1040 [ 55.611336] __x64_sys_perf_event_open+0x26/0x30 [ 55.611337] x64_sys_call+0x1d8e/0x20c0 [ 55.611339] do_syscall_64+0x4f/0x120 [ 55.611343] entry_SYSCALL_64_after_hwframe+0x76/0x7e On PTL, GP counter 0 and 1 doesn't support auto counter reload feature, thus it would trigger a #GP when trying to write 1 on bit 0 of CFG_B MSR which requires to enable auto counter reload on GP counter 0. The root cause of causing this issue is the check for auto counter reload (ACR) counter mask from user space is incorrect in intel_pmu_acr_late_setup() helper. It leads to an invalid ACR counter mask from user space could be set into hw.config1 and then written into CFG_B MSRs and trigger the MSR access warning. e.g., User may create a perf event with ACR counter mask (config2=0xcb), and there is only 1 event created, so "cpuc->n_events" is 1. The correct check condition should be "i + idx >= cpuc->n_events" instead of "i + idx > cpuc->n_events" (it looks a typo). Otherwise, the counter mask would traverse twice and an invalid "cpuc->assign[1]" bit (bit 0) is set into hw.config1 and cause MSR accessing error. Besides, also check if the ACR counter mask corresponding events are ACR events. If not, filter out these counter mask. If a event is not a ACR event, it could be scheduled to an HW counter which doesn't support ACR. It's invalid to add their counter index in ACR counter mask. Furthermore, remove the WARN_ON_ONCE() since it's easily triggered as user could set any invalid ACR counter mask and the warning message could mislead users.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ec980e4facef8110f6fce27e5b6344660117f01f to < c6cca4213b618c92e4972919ee568f0fb87313b1 (affected · git)ec980e4facef8110f6fce27e5b6344660117f01f to < 43796f30507802d93ead2dc44fc9637f34671a89 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
perf/x86/intel: Fix IA32_PMC_x_CFG_B MSRs access error
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 896b9e14ca0aebeb3a9c3c2d6abf5e3c5e55bcaaff0403cbe88b8db4ac75fa51
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record