Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: coresight: ete: Always save state on power down System register ETMs and ETE are unlikely to be preserved on CPU power down. The ETE DT binding also never documented "arm,coresight-loses-context-with-cpu" so nobody would have legitimately been able to use that binding to fix it and ACPI has no such binding at all. Fix it by hard coding the setting for sysreg ETMs (ETE is always sysreg) or ACPI boots. Use a local variable when setting up save_state so that it's immune to concurrent probing when devices have different configurations which is an issue with modifying the global. This fixes the following error when using Coresight with ACPI on the FVP which supports CPU PM: coresight ete0: External agent took claim tag WARNING: drivers/hwtracing/coresight/coresight-core.c:248 at coresight_disclaim_device_unlocked+0xe0/0xe8, CPU#0: perf/117
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 35e1c9163e025855f23a68f2470c471509e5d779 before 31633ba13cc49017015f606d5c66eaf5052e99a8; affected 35e1c9163e025855f23a68f2470c471509e5d779 before f58d17798882a3aa3323f9d80fe85e25a38f4b93; affected 35e1c9163e025855f23a68f2470c471509e5d779 before 65d87f28daec31903fc39fee0744f7a0059c19f2; affected 35e1c9163e025855f23a68f2470c471509e5d779 before 293dacd5b6a9f1275d92ca6c4fd874e54b2c8319; affected 35e1c9163e025855f23a68f2470c471509e5d779 before 2ab4645fe4206c142a5f1491e191c906279686cf |
| Linux / Linux | affected 5.13; unaffected 0 before 5.13; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/31633ba13cc49017015f606d5c66eaf5052e99a8
- https://git.kernel.org/stable/c/f58d17798882a3aa3323f9d80fe85e25a38f4b93
- https://git.kernel.org/stable/c/65d87f28daec31903fc39fee0744f7a0059c19f2
- https://git.kernel.org/stable/c/293dacd5b6a9f1275d92ca6c4fd874e54b2c8319
- https://git.kernel.org/stable/c/2ab4645fe4206c142a5f1491e191c906279686cf